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