Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SpaceRace_HS16/data/levels/newnewnewspacerace.oxw @ 11289

Last change on this file since 11289 was 11289, checked in by meilel, 7 years ago

level file changed

File size: 18.5 KB
Line 
1
2  <!-- Authors:
3Louis ...? :D
4Berkay Berabi
5@2016
6-->
7
8<LevelInfo
9 name = "New Old Space Race 2"
10 description = "Under maintenance..."
11 tags = "gametype"
12 screenshot = "spacerace.png"
13/>
14   
15<?lua
16  include("stats.oxo")
17  include("HUDTemplates3.oxo")
18  include("templates/lodInformation.oxt")
19  include("templates/fastship.oxt")
20  include("templates/pickupRepresentationTemplates.oxt")
21
22?>
23
24<Level
25 plugins = "gametypes"
26 gametype = "SpaceRace"
27>
28  <templates>
29    <Template link=lodtemplate_default />
30  </templates>
31  <?lua include("includes/notifications.oxi") ?>
32
33  <Scene
34    ambientlight = "0.8, 0.8, 0.8"
35    skybox       = "Orxonox/skyBoxMoreNebula"
36  >
37 
38    <?lua
39      include("includes/pickups.oxi")
40    ?>
41
42
43  <!-- SOUNDS & MUSIC -->
44 
45 
46<WorldSound name="Countdown" position="0,0,0" source="sounds/Countdown.ogg" >
47      <events>
48        <play>
49          <EventListener event="start1" />
50        </play>
51      </events>
52    </WorldSound>
53
54
55<WorldSound name="Go" position="0,0,0" source="sounds/Go.ogg" >
56      <events>
57        <play>
58          <EventListener event="go" />
59        </play>
60      </events>
61    </WorldSound>
62    <DistanceTrigger name="start1" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=0.5 />
63    <DistanceTrigger name="go" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=10.5  />
64
65    <DistanceTrigger name="racetheme" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=10.75  />
66      <WorldAmbientSound source="racetheme.ogg" looping="true" playOnLoad="false" >
67    <events>
68        <play>
69          <EventListener event="racetheme" />
70        </play>
71      </events>
72    </WorldAmbientSound>
73
74
75    <?lua math.randomseed(98) ?>
76    <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"/>
77    <SimpleNotification message="Reach the last check point within 150 seconds!!" />
78
79
80    <!-- ------------------SpawnPoint----------------- -->
81    <SpawnPoint position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
82    </SpawnPoint>
83<SpawnPoint position="-50,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
84    </SpawnPoint>
85<SpawnPoint position="-100,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
86    </SpawnPoint>
87<SpawnPoint position="-150,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
88    </SpawnPoint>
89<SpawnPoint position="-200,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
90    </SpawnPoint>
91
92  <!-- Launch station -->
93  <StaticEntity mass="50" position="-400,-20,0" direction="0,-90,0" collisionType="static">
94    <attached>
95      <Model scale="20" mesh="Carrier.mesh" />
96    </attached>
97      <collisionShapes>
98        <BoxCollisionShape position="280,0,-100"      halfExtents="600, 200, 100" />
99        <BoxCollisionShape position="380,300,-64"     halfExtents="280, 40, 48" />
100        <BoxCollisionShape position="380,-300,-64"    halfExtents="280, 40, 48" />
101        <BoxCollisionShape position="308, 188,120"      halfExtents="440, 80, 120" />
102        <BoxCollisionShape position="308,-188,120"     halfExtents="440, 80, 120" />
103        <BoxCollisionShape position="308,0,200"       halfExtents="440, 180, 24" />
104        <BoxCollisionShape position="668,0,280"      halfExtents="108, 80, 80" />
105      </collisionShapes>
106  </StaticEntity>
107
108  <!-- ---------------ForceFields----------------- -->
109    <ForceField position="0,0,0" direction="0,-1,0" diameter=700 velocity=2000 length=2000/>
110
111    <!-- ------------------Planet----------------- -->
112    <Planet position="25000,5000,5000" scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
113    <StaticEntity position="0,0,0" collisionType=static>
114        <collisionShapes>
115            <SphereCollisionShape radius="1" />
116        </collisionShapes>
117    </StaticEntity>
118
119   <!-- ---------------asteroid belt1----------------- -->
120    <?lua
121    max = 50
122    for i = 0, max, 1
123    do
124    x = 800+ i*1000
125    y = -500+ math.cos(i)*20
126    z = -500+ math.sin(i)*20
127    ?>
128    <?lua
129    for k = 1, 15, 1
130    do
131    j = math.random()
132    ?>
133
134    <MovableEntity
135      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 1000) ?>,<?lua print(z + math.random() * 1000) ?>"
136      collisionType = "dynamic"
137      linearDamping = "0.5"
138      angularDamping = "0.01"
139      collisiondamage = "0.02"
140      enablecollisiondamage = "true"
141      scale="<?lua print(j * 5) ?>" >
142      <attached>
143        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
144      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
145            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
146          </attached> <?lua end ?>
147        </Model>
148      </attached>
149      <collisionShapes>
150        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
151      </collisionShapes>
152    </MovableEntity>
153    <?lua
154    end
155    ?>
156    <?lua end ?>
157
158   <!-- ---------------asteroid belt2----------------- -->
159    <?lua
160    max = 50
161    for i = 0, max, 1
162    do
163    x = 800+ i*1000
164    y = 100+ math.cos(i)*-20
165    z = 100+ math.sin(i)*-20
166    ?>
167    <?lua
168    for k = 1, 15, 1
169    do
170    j = math.random()
171    ?>
172
173    <MovableEntity
174      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 1000) ?>,<?lua print(z + math.random() * 1000) ?>"
175      collisionType = "dynamic"
176      linearDamping = "0.5"
177      angularDamping = "0.01"
178      collisiondamage = "0.02"
179      enablecollisiondamage = "true"
180      scale="<?lua print(j * 5) ?>" >
181      <attached>
182        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
183      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
184            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
185          </attached> <?lua end ?>
186        </Model>
187      </attached>
188      <collisionShapes>
189        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
190      </collisionShapes>
191    </MovableEntity>
192    <?lua
193    end
194    ?>
195    <?lua end ?>
196
197
198<!-- ---------------------Checkpoints---------------------- -->
199
200<SpaceRaceManager>
201 <checkpoints>
202   
203
204    <RaceCheckPoint name="checkpoint1" position="1000,30,0" yaw=90 pitch=90 direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="0" islast="false" nextcheckpoints="1,-1,-1">
205        <attached>
206      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
207    </attached>
208    <collisionShapes>
209        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
210        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
211        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
212        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
213    </collisionShapes>
214    </RaceCheckPoint>
215
216
217
218<RaceCheckPoint name="checkpoint2" yaw=90 pitch=90 position="3000,200,100" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="1" islast="false" nextcheckpoints="2,-1,-1">
219        <attached>
220      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
221    </attached>
222    <collisionShapes>
223        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
224        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
225        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
226        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
227    </collisionShapes>
228    </RaceCheckPoint>
229
230
231<RaceCheckPoint name="checkpoint3" yaw=90 pitch=90 position="5000,100,300" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="2" islast="false" nextcheckpoints="3,-1,-1">
232        <attached>
233      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
234    </attached>
235    <collisionShapes>
236        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
237        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
238        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
239        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
240    </collisionShapes>
241    </RaceCheckPoint>
242
243
244<RaceCheckPoint name="checkpoint4"  yaw=90 pitch=90 position="8000,-150,150" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="3" islast="false" nextcheckpoints="4,-1,-1">
245        <attached>
246      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
247    </attached>
248    <collisionShapes>
249        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
250        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
251        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
252        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
253    </collisionShapes>
254    </RaceCheckPoint>
255
256
257<RaceCheckPoint name="checkpoint5"  yaw=90 pitch=90 position="10000,-200,200" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="4" islast="false" nextcheckpoints="5,-1,-1">
258        <attached>
259      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
260    </attached>
261    <collisionShapes>
262        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
263        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
264        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
265        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
266    </collisionShapes>
267    </RaceCheckPoint>
268
269
270
271<RaceCheckPoint name="checkpoint6" yaw=90 pitch=90 position="13000,100,100" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="5" islast="false" nextcheckpoints="6,-1,-1">
272        <attached>
273      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
274    </attached>
275    <collisionShapes>
276        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
277        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
278        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
279        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
280    </collisionShapes>
281    </RaceCheckPoint>
282
283
284
285<RaceCheckPoint name="checkpoint7" yaw=90 pitch=90 position="15000,0,0" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="6" islast="false" nextcheckpoints="7,-1,-1">
286        <attached>
287      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
288    </attached>
289    <collisionShapes>
290        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
291        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
292        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
293        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
294    </collisionShapes>
295    </RaceCheckPoint>
296
297
298<RaceCheckPoint name="checkpoint8" yaw=90 pitch=90 position="18000,150,-150" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="7" islast="false" nextcheckpoints="8,-1,-1">
299        <attached>
300      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
301    </attached>
302    <collisionShapes>
303        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
304        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
305        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
306        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
307    </collisionShapes>
308    </RaceCheckPoint>
309
310
311<RaceCheckPoint name="checkpoint9" yaw=90 pitch=90 position="21000,120,-120" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="8" islast="false" nextcheckpoints="9,-1,-1">
312        <attached>
313      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
314    </attached>
315    <collisionShapes>
316        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
317        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
318        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
319        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
320    </collisionShapes>
321    </RaceCheckPoint>
322
323<RaceCheckPoint name="checkpoint10" yaw=90 pitch=90 position="24000,-150,-80" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="9" islast="false" nextcheckpoints="10,-1,-1">
324        <attached>
325      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
326    </attached>
327    <collisionShapes>
328        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
329        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
330        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
331        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
332    </collisionShapes>
333    </RaceCheckPoint>
334
335<RaceCheckPoint name="checkpoint11" yaw=90 pitch=90 position="27000,-200,0" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="10" islast="false" nextcheckpoints="11,-1,-1">
336        <attached>
337      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
338    </attached>
339    <collisionShapes>
340        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
341        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
342        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
343        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
344    </collisionShapes>
345    </RaceCheckPoint>
346
347
348
349<RaceCheckPoint name="checkpoint12" yaw=90 pitch=90 position="30000,-50,50" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="11" islast="false" nextcheckpoints="12,-1,-1">
350        <attached>
351      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
352    </attached>
353    <collisionShapes>
354        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
355        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
356        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
357        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
358    </collisionShapes>
359    </RaceCheckPoint>
360
361
362<RaceCheckPoint name="checkpoint13" yaw=90 pitch=90 position="33000,80,60" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="12" islast="false" nextcheckpoints="13,-1,-1">
363        <attached>
364      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
365    </attached>
366    <collisionShapes>
367        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
368        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
369        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
370        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
371    </collisionShapes>
372    </RaceCheckPoint>
373
374
375
376<RaceCheckPoint name="checkpoint14" yaw=90 pitch=90 position="35000,120,20" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="13" islast="false" nextcheckpoints="14,-1,-1">
377        <attached>
378      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
379    </attached>
380    <collisionShapes>
381        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
382        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
383        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
384        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
385    </collisionShapes>
386    </RaceCheckPoint>
387
388<RaceCheckPoint name="checkpoint15" yaw=90 pitch=90 position="38000,80,0" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="14" islast="false" nextcheckpoints="15,-1,-1">
389        <attached>
390      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
391    </attached>
392    <collisionShapes>
393        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
394        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
395        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
396        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
397    </collisionShapes>
398    </RaceCheckPoint>
399
400<RaceCheckPoint name="checkpoint15" yaw=90 pitch=90 position="41000,30,-50" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="14" islast="true">
401        <attached>
402      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
403    </attached>
404    <collisionShapes>
405        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
406        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
407        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
408        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
409    </collisionShapes>
410    </RaceCheckPoint>
411
412
413</checkpoints>
414</SpaceRaceManager>
415
416
417
418<!-- ---------------------PickUps---------------------- -->
419
420    <!--at checkpoint3-->
421    <PickupSpawner pickup=mediumpeedpickup position="4800,100,300" triggerDistance="60" respawnTime="10" maxSpawnedItems="99" scale="8" />
422    <!--at checkpoint#6-->
423    <PickupSpawner pickup=mediumshrinkpickup position="14800,0,0" triggerDistance="60" respawnTime="20" maxSpawnedItems="5" scale="8"/>
424    <!--at checkpoint9-->
425    <PickupSpawner pickup=smallshrinkpickup position="20800,120,-120" triggerDistance="60" respawnTime="10" maxSpawnedItems="10" scale="8"/>
426    <!--at checkpoint12-->
427    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="29800,-50,50" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
428    <!--stray pickups-->
429    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="6000,-300,100" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
430    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="9000,300,200" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
431    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="20000,-400,0" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
432
433  </Scene>
434</Level>
435 
Note: See TracBrowser for help on using the repository browser.