Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11284 was 11284, checked in by bberabi, 7 years ago


File size: 18.0 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  <!--   <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true" /> -->
76    <?lua math.randomseed(98) ?>
77    <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"/>
78    <SimpleNotification message="Reach the last check point within 150 seconds!!" />
79
80
81    <!-- ------------------SpawnPoint----------------- -->
82    <SpawnPoint position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
83    </SpawnPoint>
84<SpawnPoint position="-50,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
85    </SpawnPoint>
86<SpawnPoint position="-100,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
87    </SpawnPoint>
88<SpawnPoint position="-150,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
89    </SpawnPoint>
90<SpawnPoint position="-200,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
91    </SpawnPoint>
92
93  <!-- Launch station -->
94  <StaticEntity mass="50" position="-400,-20,0" direction="0,-90,0" collisionType="static">
95    <attached>
96      <Model scale="20" mesh="Carrier.mesh" />
97    </attached>
98      <collisionShapes>
99        <BoxCollisionShape position="280,0,-100"      halfExtents="600, 200, 100" />
100        <BoxCollisionShape position="380,300,-64"     halfExtents="280, 40, 48" />
101        <BoxCollisionShape position="380,-300,-64"    halfExtents="280, 40, 48" />
102        <BoxCollisionShape position="308, 188,120"      halfExtents="440, 80, 120" />
103        <BoxCollisionShape position="308,-188,120"     halfExtents="440, 80, 120" />
104        <BoxCollisionShape position="308,0,200"       halfExtents="440, 180, 24" />
105        <BoxCollisionShape position="668,0,280"      halfExtents="108, 80, 80" />
106      </collisionShapes>
107  </StaticEntity>
108
109  <!-- ---------------ForceFields----------------- -->
110    <ForceField position="0,0,0" direction="0,-1,0" diameter=700 velocity=2000 length=2000/>
111
112    <!-- ------------------Planet----------------- -->
113    <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 />
114    <StaticEntity position="0,0,0" collisionType=static>
115        <collisionShapes>
116            <SphereCollisionShape radius="1" />
117        </collisionShapes>
118    </StaticEntity>
119
120   <!-- ---------------asteroid belt1----------------- -->
121    <?lua
122    max = 50
123    for i = 0, max, 1
124    do
125    x = 800+ i*1000
126    y = -500+ math.cos(i)*20
127    z = -500+ math.sin(i)*20
128    ?>
129    <?lua
130    for k = 1, 15, 1
131    do
132    j = math.random()
133    ?>
134
135    <MovableEntity
136      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 1000) ?>,<?lua print(z + math.random() * 1000) ?>"
137      collisionType = "dynamic"
138      linearDamping = "0.5"
139      angularDamping = "0.01"
140      collisiondamage = "0.02"
141      enablecollisiondamage = "true"
142      scale="<?lua print(j * 5) ?>" >
143      <attached>
144        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
145      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
146            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
147          </attached> <?lua end ?>
148        </Model>
149      </attached>
150      <collisionShapes>
151        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
152      </collisionShapes>
153    </MovableEntity>
154    <?lua
155    end
156    ?>
157    <?lua end ?>
158
159   <!-- ---------------asteroid belt2----------------- -->
160    <?lua
161    max = 50
162    for i = 0, max, 1
163    do
164    x = 800+ i*1000
165    y = 100+ math.cos(i)*-20
166    z = 100+ math.sin(i)*-20
167    ?>
168    <?lua
169    for k = 1, 15, 1
170    do
171    j = math.random()
172    ?>
173
174    <MovableEntity
175      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 1000) ?>,<?lua print(z + math.random() * 1000) ?>"
176      collisionType = "dynamic"
177      linearDamping = "0.5"
178      angularDamping = "0.01"
179      collisiondamage = "0.02"
180      enablecollisiondamage = "true"
181      scale="<?lua print(j * 5) ?>" >
182      <attached>
183        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
184      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
185            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
186          </attached> <?lua end ?>
187        </Model>
188      </attached>
189      <collisionShapes>
190        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
191      </collisionShapes>
192    </MovableEntity>
193    <?lua
194    end
195    ?>
196    <?lua end ?>
197
198
199<!-- ---------------------Checkpoints---------------------- -->
200
201<SpaceRaceManager>
202 <checkpoints>
203   
204
205    <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">
206        <attached>
207      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
208    </attached>
209    <collisionShapes>
210        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
211        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
212        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
213        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
214    </collisionShapes>
215    </RaceCheckPoint>
216
217
218
219<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">
220        <attached>
221      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
222    </attached>
223    <collisionShapes>
224        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
225        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
226        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
227        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
228    </collisionShapes>
229    </RaceCheckPoint>
230
231
232<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">
233        <attached>
234      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
235    </attached>
236    <collisionShapes>
237        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
238        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
239        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
240        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
241    </collisionShapes>
242    </RaceCheckPoint>
243
244
245<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">
246        <attached>
247      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
248    </attached>
249    <collisionShapes>
250        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
251        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
252        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
253        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
254    </collisionShapes>
255    </RaceCheckPoint>
256
257
258<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">
259        <attached>
260      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
261    </attached>
262    <collisionShapes>
263        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
264        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
265        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
266        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
267    </collisionShapes>
268    </RaceCheckPoint>
269
270
271
272<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">
273        <attached>
274      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
275    </attached>
276    <collisionShapes>
277        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
278        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
279        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
280        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
281    </collisionShapes>
282    </RaceCheckPoint>
283
284
285
286<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">
287        <attached>
288      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
289    </attached>
290    <collisionShapes>
291        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
292        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
293        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
294        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
295    </collisionShapes>
296    </RaceCheckPoint>
297
298
299<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">
300        <attached>
301      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
302    </attached>
303    <collisionShapes>
304        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
305        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
306        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
307        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
308    </collisionShapes>
309    </RaceCheckPoint>
310
311
312<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">
313        <attached>
314      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
315    </attached>
316    <collisionShapes>
317        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
318        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
319        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
320        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
321    </collisionShapes>
322    </RaceCheckPoint>
323
324<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">
325        <attached>
326      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
327    </attached>
328    <collisionShapes>
329        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
330        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
331        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
332        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
333    </collisionShapes>
334    </RaceCheckPoint>
335
336<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">
337        <attached>
338      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
339    </attached>
340    <collisionShapes>
341        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
342        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
343        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
344        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
345    </collisionShapes>
346    </RaceCheckPoint>
347
348
349
350<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">
351        <attached>
352      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
353    </attached>
354    <collisionShapes>
355        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
356        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
357        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
358        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
359    </collisionShapes>
360    </RaceCheckPoint>
361
362
363<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">
364        <attached>
365      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
366    </attached>
367    <collisionShapes>
368        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
369        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
370        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
371        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
372    </collisionShapes>
373    </RaceCheckPoint>
374
375
376
377<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">
378        <attached>
379      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
380    </attached>
381    <collisionShapes>
382        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
383        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
384        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
385        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
386    </collisionShapes>
387    </RaceCheckPoint>
388
389<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">
390        <attached>
391      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
392    </attached>
393    <collisionShapes>
394        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
395        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
396        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
397        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
398    </collisionShapes>
399    </RaceCheckPoint>
400
401
402</checkpoints>
403</SpaceRaceManager>
404
405
406
407<!-- ---------------------PickUps---------------------- -->
408
409    <!--at checkpoint3-->
410    <PickupSpawner pickup=mediumpeedpickup position="4800,100,300" triggerDistance="60" respawnTime="10" maxSpawnedItems="99" scale="8" />
411    <!--at checkpoint#6-->
412    <PickupSpawner pickup=mediumshrinkpickup position="14800,0,0" triggerDistance="60" respawnTime="20" maxSpawnedItems="5" scale="8"/>
413    <!--at checkpoint9-->
414    <PickupSpawner pickup=smallshrinkpickup position="20800,120,-120" triggerDistance="60" respawnTime="10" maxSpawnedItems="10" scale="8"/>
415    <!--at checkpoint12-->
416    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="29800,-50,50" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
417    <!--stray pickups-->
418    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="6000,-300,100" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
419    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="9000,300,200" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
420    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="20000,-400,0" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
421
422  </Scene>
423</Level>
424 
Note: See TracBrowser for help on using the repository browser.