Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2011/data/levels/underAttack.oxw @ 8981

Last change on this file since 8981 was 8977, checked in by smerkli, 13 years ago

Merged menue

  • Property svn:eol-style set to native
File size: 6.0 KB
Line 
1<LevelInfo
2 name = "Under Attack"
3 description = "Fight the transporter."
4 tags = "gametype"
5 screenshot = "underattack.png"
6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
11  include("underAttackHUD.oxo")
12  include("templates/spaceshipAssff.oxt")
13  include("templates/lodInformation.oxt")
14?>
15
16<Level
17 gametype = "UnderAttack"
18>
19  <templates>
20    <Template link=lodtemplate_default />
21  </templates>
22  <?lua include("includes/notifications.oxi") ?>
23
24  <Scene
25   ambientlight = "0.5, 0.5, 0.5"
26   skybox       = "Orxonox/skypanoramagen1"
27  >
28    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
29
30    <?lua for i = 1, 30, 1 do ?>
31      <MovableEntity
32          position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
33          velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
34      >
35        <attached>
36          <Model
37              <?lua x = math.random() * 150 + 30 ?>
38              scale="<?lua print(x) ?>"
39              mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
40              position="0,0,0"
41          />
42        </attached>
43          <collisionShapes>
44            <SphereCollisionShape radius="<?lua print(x) ?>" position="0,0,0" />
45          </collisionShapes>
46      </MovableEntity>
47    <?lua end ?>
48
49    <Destroyer
50      position          = "100,150,0"
51      collisionType     = dynamic
52      mass              = 100000
53      velocity          = "-35,0,0"
54      angularDamping    = 0.9999999
55      health            = 10000
56      maxhealth         = 10000
57      initialhealth     = 10000
58    >
59
60      <attached>
61        <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
62        <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
63        <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
64        <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
65        <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
66        <?lua for i = 1, 100, 1 do ?>
67          <TeamSpawnPoint
68            team=0
69            position="<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>"
70            lookat="0,0,0"
71            spawnclass=SpaceShip
72            pawndesign=spaceshipassff
73          />
74
75          <!--more spawnpoints for team1-->
76          <!--
77          <TeamSpawnPoint
78            team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
79            lookat="0,0,0"
80            spawnclass=SpaceShip
81            pawndesign=spaceshipassff
82          />-->
83        <?lua end ?>
84
85        <Model mesh="Carrier.mesh" scale="5" />
86        <Backlight
87          mainstate=activity
88          active=false
89          scale=0.4
90          name=bltest
91          position=" 7.6, 0, 6"
92          colour="0.2, 0.65, 1.0, 1.0"
93          width=15
94          length=1500
95          lifetime=2
96          elements=50
97          trailmaterial="Trail/backlighttrail"
98          turnontime=1
99          turnofftime=1
100          material="Flares/ThrusterFlare1"
101        />
102        <?lua for i=0,8,1 do ?>
103          <BlinkingBillboard
104            position="<?lua print(200-270/8*i)?> ,15,2"
105            material="Examples/Flare"
106            colour="1.0, 0.5, 0.3"
107            phase="<?lua print(-360/8*i)?>"
108            amplitude=0.1
109            frequency=0.5
110            quadratic=1
111          />
112
113          <BlinkingBillboard
114            position="<?lua print(200-270/8*i)?>,-15,2"
115            material="Examples/Flare"
116            colour="1.0, 0.5, 0.3"
117            phase="<?lua print(-360/8*i)?>"
118            amplitude=0.1
119            frequency=0.5
120            quadratic=1
121          />
122        <?lua end ?>
123
124        <Backlight
125          scale=1
126          position=" 169, 75, -15"
127          colour="1, 0.85, 0.5, 0.5"
128          width=40
129          length=1000
130          lifetime=5
131          elements=15
132          trailmaterial="Trail/backlighttrail"
133          material="Examples/Flare"
134        />
135        <Backlight
136          scale=1
137          position=" 169, -75, -15"
138          colour="1, 0.85, 0.5, 0.5"
139          width=40
140          length=1000
141          lifetime=5
142          elements=15
143          trailmaterial="Trail/backlighttrail"
144          material="Examples/Flare" />
145      </attached>
146      <collisionShapes>
147        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
148        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
149        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
150        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
151        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
152        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
153        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
154      </collisionShapes>
155    </Destroyer>
156
157    <GlobalShader compositor="Bloom" visible=false>
158      <events>
159        <visibility>
160          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
161        </visibility>
162      </events>
163    </GlobalShader>
164
165    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
166    <StaticEntity position="0,0,0" collisionType=static>
167      <collisionShapes>
168        <SphereCollisionShape radius="20" />
169      </collisionShapes>
170    </StaticEntity>
171   
172  </Scene>
173</Level>
Note: See TracBrowser for help on using the repository browser.