Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

blabla

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