Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/gametype_asteroids.oxw @ 5567

Last change on this file since 5567 was 5556, checked in by Aurelian, 16 years ago

Gametype Asteroids: Pirates added. Version for presentation ready.

  • Property svn:eol-style set to native
File size: 12.3 KB
Line 
1<?lua
2  include("overlay/hudtemplates3.oxo")
3  include("overlay/stats.oxo")
4  include("levels/templates/spaceship_assff.oxt")
5?>
6
7<Level
8 name         = "Asteroids Race"
9 description  = "testmap for gametype asteroid race"
10 gametype     =  Asteroids
11>
12<Scene
13 ambientlight = "0.5, 0.5, 0.5"
14 skybox       = "Orxonox/Starbox"
15>
16
17<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" />
18
19
20
21<SpawnPoint position="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
22
23
24<?lua
25for i = 1, 250, 1
26do
27j = math.random()
28?>
29
30    <MovableEntity
31     position="<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>"        collisionType=dynamic
32     linearDamping=0.8
33     angularDamping=0
34     scale=<?lua print(j * 150)?>
35     collisiondamage=1
36     enablecollisiondamage=true>
37      <attached>
38        <Model mass=<?lua print(j * 1000) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
39      </attached>
40      <collisionShapes>
41        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
42      </collisionShapes>
43    </MovableEntity>
44<?lua
45end
46?>
47
48<!--
49<MovableEntity position="0,0,0" collisionType=dynamic scale=5 linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
50  <attached>
51    <Model mass=100 mesh="ast1.mesh" />
52  </attached>
53    <collisionShapes>
54      <SphereCollisionShape radius=11.75 />
55    </collisionShapes>
56</MovableEntity>
57
58
59<MovableEntity position="0,300,0" scale=10 collisionType=dynamic linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
60  <attached>
61    <Model mass=100 mesh="ast1.mesh" />
62  </attached>
63    <collisionShapes>
64      <SphereCollisionShape radius=22.5 />
65    </collisionShapes>
66</MovableEntity>
67
68
69<MovableEntity position="0,600,0"  scale=34  collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
70  <attached>
71    <Model mass=100 mesh="ast1.mesh" />
72  </attached>
73    <collisionShapes>
74      <SphereCollisionShape radius=76.5 />
75    </collisionShapes>
76</MovableEntity>
77
78<MovableEntity position="0,1200,0" scale=80 collisionType=dynamic linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
79  <attached>
80    <Model mass=100 mesh="ast1.mesh" />
81  </attached>
82    <collisionShapes>
83      <SphereCollisionShape radius=200 />
84    </collisionShapes>
85</MovableEntity>
86-->
87
88<SpaceShip position="2000,200,0" lookat="0,0,0" >
89  <templates>
90    <Template link=spaceshipassff />
91  </templates>
92  <controller>
93    <AIController />
94  </controller>
95</SpaceShip>
96
97<SpaceShip position="8000,300,700" lookat="0,0,0" >
98  <templates>
99    <Template link=spaceshipassff />
100  </templates>
101  <controller>
102    <AIController />
103  </controller>
104</SpaceShip>
105
106<SpaceShip position="10200,400,-600" lookat="0,0,0" >
107  <templates>
108    <Template link=spaceshipassff />
109  </templates>
110  <controller>
111    <AIController />
112  </controller>
113</SpaceShip>
114
115<ForceField position="200,300,-500" direction="0,0,1" diameter=500 velocity=120>
116  <attached>
117    <ParticleEmitter source="Orxonox/ForceFieldPurpleSmall" startdelay=0 />
118  </attached>
119</ForceField>
120
121 <ForceField position="2200,-300,1200" direction="1,0.3,-0.7" diameter=800 velocity=200>
122  <attached>
123    <ParticleEmitter source="Orxonox/ForceFieldBlueBig" startdelay=0 />
124  </attached>
125</ForceField>
126
127 <ForceField position="8600,1400,500" direction="-1,-1,-1" diameter=500 velocity=400>
128  <attached>
129    <ParticleEmitter source="Orxonox/ForceFieldGreenSmall" startdelay=0 />
130  </attached>
131</ForceField>
132
133  <ForceField position="11800,500,-2600" direction="-1,0,1" diameter=900 velocity=300>
134  <attached>
135    <ParticleEmitter source="Orxonox/ForceFieldPurpleBig" startdelay=0 />
136  </attached>
137</ForceField>
138
139
140<CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=13 />
141
142
143<CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
144  <events>
145    <activity>
146      <EventListener event=trigger1 />
147    </activity>
148  </events>
149  <attached>
150    <Billboard material="Flares/lensflare" colour="1,0,0">
151      <events>
152        <visibility>
153          <EventTrigger invert=true>
154            <events>
155              <trigger>
156                <EventListener event=trigger1 />
157              </trigger>
158            </events>
159          </EventTrigger>
160        </visibility>
161      </events>
162    </Billboard>
163    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
164      <events>
165        <visibility>
166          <EventTrigger>
167            <events>
168              <trigger>
169                <EventListener event=trigger1 />
170              </trigger>
171            </events>
172            <EventTrigger invert=true>
173              <events>
174                <trigger>
175                  <EventListener event=trigger2 />
176                </trigger>
177              </events>
178            </EventTrigger>
179          </EventTrigger>
180        </visibility>
181      </events>
182    </BlinkingBillboard>
183    <Billboard material="Flares/lensflare" colour="0,1,0">
184      <events>
185        <visibility>
186          <EventListener event=trigger2 />
187        </visibility>
188      </events>
189    </Billboard>
190  </attached>
191</CheckPoint>
192
193
194<CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=9>
195  <events>
196    <activity>
197      <EventListener event=trigger2 />
198    </activity>
199  </events>
200  <attached>
201    <Billboard material="Flares/lensflare" colour="1,0,0">
202      <events>
203        <visibility>
204          <EventTrigger invert=true>
205            <events>
206              <trigger>
207                <EventListener event=trigger2 />
208              </trigger>
209            </events>
210          </EventTrigger>
211        </visibility>
212      </events>
213    </Billboard>
214    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
215      <events>
216        <visibility>
217          <EventTrigger>
218            <events>
219              <trigger>
220                <EventListener event=trigger2 />
221              </trigger>
222            </events>
223            <EventTrigger invert=true>
224              <events>
225                <trigger>
226                  <EventListener event=trigger3 />
227                </trigger>
228              </events>
229            </EventTrigger>
230          </EventTrigger>
231        </visibility>
232      </events>
233    </BlinkingBillboard>
234    <Billboard material="Flares/lensflare" colour="0,1,0">
235      <events>
236        <visibility>
237          <EventListener event=trigger3 />
238        </visibility>
239      </events>
240    </Billboard>
241  </attached>
242</CheckPoint>
243
244
245<CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=9>
246  <events>
247    <activity>
248      <EventListener event=trigger3 />
249    </activity>
250  </events>
251  <attached>
252    <Billboard material="Flares/lensflare" colour="1,0,0">
253      <events>
254        <visibility>
255          <EventTrigger invert=true>
256            <events>
257              <trigger>
258                <EventListener event=trigger3 />
259              </trigger>
260            </events>
261          </EventTrigger>
262        </visibility>
263      </events>
264    </Billboard>
265    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
266      <events>
267        <visibility>
268          <EventTrigger>
269            <events>
270              <trigger>
271                <EventListener event=trigger3 />
272              </trigger>
273            </events>
274            <EventTrigger invert=true>
275              <events>
276                <trigger>
277                  <EventListener event=trigger4 />
278                </trigger>
279              </events>
280            </EventTrigger>
281          </EventTrigger>
282        </visibility>
283      </events>
284    </BlinkingBillboard>
285    <Billboard material="Flares/lensflare" colour="0,1,0">
286      <events>
287        <visibility>
288          <EventListener event=trigger4 />
289        </visibility>
290      </events>
291    </Billboard>
292  </attached>
293</CheckPoint>
294
295
296<CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=8>
297  <events>
298    <activity>
299      <EventListener event=trigger4 />
300    </activity>
301  </events>
302  <attached>
303    <Billboard material="Flares/lensflare" colour="1,0,0">
304      <events>
305        <visibility>
306          <EventTrigger invert=true>
307            <events>
308              <trigger>
309                <EventListener event=trigger4 />
310              </trigger>
311            </events>
312          </EventTrigger>
313        </visibility>
314      </events>
315    </Billboard>
316    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
317      <events>
318        <visibility>
319          <EventTrigger>
320            <events>
321              <trigger>
322                <EventListener event=trigger4 />
323              </trigger>
324            </events>
325            <EventTrigger invert=true>
326              <events>
327                <trigger>
328                  <EventListener event=trigger5 />
329                </trigger>
330              </events>
331            </EventTrigger>
332          </EventTrigger>
333        </visibility>
334      </events>
335    </BlinkingBillboard>
336    <Billboard material="Flares/lensflare" colour="0,1,0">
337      <events>
338        <visibility>
339          <EventListener event=trigger5 />
340        </visibility>
341      </events>
342    </Billboard>
343  </attached>
344</CheckPoint>
345
346
347<CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
348  <events>
349    <activity>
350      <EventListener event=trigger5 />
351    </activity>
352  </events>
353  <attached>
354    <Billboard material="Flares/lensflare" colour="1,0,0">
355      <events>
356        <visibility>
357          <EventTrigger invert=true>
358            <events>
359              <trigger>
360                <EventListener event=trigger5 />
361              </trigger>
362            </events>
363          </EventTrigger>
364        </visibility>
365      </events>
366    </Billboard>
367    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
368      <events>
369        <visibility>
370          <EventTrigger>
371            <events>
372              <trigger>
373                <EventListener event=trigger5 />
374              </trigger>
375            </events>
376            <EventTrigger invert=true>
377              <events>
378                <trigger>
379                  <EventListener event=trigger6 />
380                </trigger>
381              </events>
382            </EventTrigger>
383          </EventTrigger>
384        </visibility>
385      </events>
386    </BlinkingBillboard>
387    <Billboard material="Flares/lensflare" colour="0,1,0">
388      <events>
389        <visibility>
390          <EventListener event=trigger6 />
391        </visibility>
392      </events>
393    </Billboard>
394  </attached>
395</CheckPoint>
396
397
398<Model position="11200,400,-1800" scale=10 pitch=-90  mesh="Carrier.mesh">
399  <attached>
400    <CheckPoint position="-10,0,0" name=trigger7 scale=0.6 isdestination=true stayactive=true distance=100>
401  <events>
402    <activity>
403      <EventListener event=trigger6 />
404    </activity>
405  </events>
406  <attached>
407    <Billboard material="Flares/lensflare" colour="1,0,0">
408      <events>
409        <visibility>
410          <EventTrigger invert=true>
411            <events>
412              <trigger>
413                <EventListener event=trigger6 />
414              </trigger>
415            </events>
416          </EventTrigger>
417        </visibility>
418      </events>
419    </Billboard>
420    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
421      <events>
422        <visibility>
423          <EventTrigger>
424            <events>
425              <trigger>
426                <EventListener event=trigger6 />
427              </trigger>
428            </events>
429            <EventTrigger invert=true>
430              <events>
431                <trigger>
432                  <EventListener event=trigger7 />
433                </trigger>
434              </events>
435            </EventTrigger>
436          </EventTrigger>
437        </visibility>
438      </events>
439    </BlinkingBillboard>
440    <Billboard material="Flares/lensflare" colour="0,1,0">
441      <events>
442        <visibility>
443          <EventListener event=trigger7 />
444        </visibility>
445      </events>
446    </Billboard>
447  </attached>
448</CheckPoint>
449  </attached>
450</Model>
451
452  </Scene>
453</Level>
Note: See TracBrowser for help on using the repository browser.