Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/surfaceRace.oxw @ 10264

Last change on this file since 10264 was 9939, checked in by jo, 11 years ago

presentationHS13 branch merged into trunk

  • Property svn:eol-style set to native
File size: 15.9 KB
RevLine 
[9301]1<!--
2TODO:
3    Replace bottom's texture. It just does not look good.
4-->
5
[9035]6<LevelInfo
[9036]7 name = "Surface Race"
[9345]8 description = "Race on a planet's surface. Try to reach the goal in 70 Seconds."
[9187]9 screenshot = "surfaceRace.png"
[9162]10 tags = "gametype"
[9035]11/>
12
[9939]13
[9035]14<?lua
[9107]15  include("stats.oxo")
[9056]16  include("HUDTemplates3.oxo")
[9107]17  include("templates/lodInformation.oxt")
[9056]18  include("templates/spaceshipRace.oxt")
[9162]19  include("templates/pickupRepresentationTemplates.oxt")
[9272]20
[9035]21?>
22
[9071]23
24<Level
[9301]25  gametype = SpaceRace
[9071]26>
27
[9035]28  <templates>
29    <Template link=lodtemplate_default />
30  </templates>
31  <?lua include("includes/notifications.oxi") ?>
32
33  <Scene
[9037]34    ambientlight = "2.0, 2.0, 2.0"
[9041]35    skybox       = "Orxonox/skyBoxClouds"
[9171]36    gravity      = "0,-75,0"
[9056]37    negativeWorldRange = "-100000, -100000, -100000"
38    positiveWorldRange = " 100000,  100000,  100000"
39    hasPhysics   = true
[9035]40  >
41
[9301]42    <?lua
43      include("includes/pickups.oxi")
44    ?>
45
[9056]46  <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"/>
47
[9107]48
49
50<SpaceRaceManager>
[9272]51 <checkpoints>
52    <RaceCheckPoint name="checkpoint1" position="0,8050,-1000" direction="0,1,0" collisionType="static" scale="4" distance="150" checkpointindex="0" islast="false" nextcheckpoints="1,-1,-1">
[9071]53        <attached>
54            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
[9107]55
[9272]56<!--
57        <Model position="0,0,55" mesh="testcube.mesh" scale3D="110,20,20" />
58        <Model position="0,0,-55" mesh="testcube.mesh" scale3D="110,20,20" />
59        <Model position="55,0,0" mesh="testcube.mesh" scale3D="20,20,110" />
60        <Model position="-55,0,0" mesh="testcube.mesh" scale3D="20,20,110" />
61
[9150]62-->
[9107]63
[9150]64
[9071]65        </attached>
[9107]66
[9150]67
68
[9272]69    <collisionShapes>
[9107]70
71
[9162]72            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
[9150]73            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
74            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
75            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
76
[9272]77
[9107]78        </collisionShapes>
79
[9150]80
81
[9272]82
[9107]83    </RaceCheckPoint>
84
[9171]85<RaceCheckPoint name="checkpoint2" position="1000,8050,-4000" direction="0,1,0" roll="45" collisionType="static" scale="4" distance="150" checkpointindex="1" islast="false" nextcheckpoints="2,-1,-1">
[9107]86        <attached>
87            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
88        </attached>
89
[9272]90
[9162]91           <collisionShapes>
[9071]92
[9162]93            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
94            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
95            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
96            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
[9272]97
[9071]98        </collisionShapes>
[9107]99    </RaceCheckPoint>
[9071]100
101
102
[9171]103<RaceCheckPoint name="checkpoint3" position="3000,8050,-4000" direction="0,1,0" roll="-45" collisionType="static" scale="4" distance="150" checkpointindex="2" islast="false" nextcheckpoints="3,-1,-1">
[9107]104        <attached>
105            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
106        </attached>
[9162]107       <collisionShapes>
[9107]108
[9162]109
110            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
111            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
112            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
113            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
114
[9272]115
[9107]116        </collisionShapes>
[9162]117
[9107]118    </RaceCheckPoint>
119
120
[9171]121<RaceCheckPoint name="checkpoint4" position="4000,8050,-1000" direction="0,1,0" roll="0" collisionType="static" scale="4" distance="150" checkpointindex="3" islast="false" nextcheckpoints="4,-1,-1">
[9107]122        <attached>
123            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
124        </attached>
125        <collisionShapes>
126
127
[9162]128            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
129            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
130            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
131            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
[9107]132
[9272]133
[9107]134        </collisionShapes>
135
136    </RaceCheckPoint>
137
138
[9171]139<RaceCheckPoint name="checkpoint5" position="4000,8050,0" direction="0,1,0" roll="0" collisionType="static" scale="4" distance="150" checkpointindex="4" islast="false" nextcheckpoints="5,-1,-1">
[9107]140        <attached>
141            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
142        </attached>
143        <collisionShapes>
144
145
[9162]146            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
147            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
148            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
149            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
[9120]150
[9272]151
[9162]152        </collisionShapes>
[9120]153
154    </RaceCheckPoint>
155
156
[9171]157<RaceCheckPoint name="checkpoint6" position="3000,8050,1000" direction="0,1,0" roll="45" collisionType="static" scale="4" distance="150" checkpointindex="5" islast="false" nextcheckpoints="6,-1,-1">
[9120]158        <attached>
159            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
160        </attached>
[9162]161       <collisionShapes>
[9120]162
163
[9162]164            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
165            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
166            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
167            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
[9120]168
[9272]169
[9120]170        </collisionShapes>
171    </RaceCheckPoint>
172
173
[9162]174
[9171]175<RaceCheckPoint name="checkpoint7" position="0,8050,2000" direction="0,1,0" roll="90" collisionType="static" scale="4" distance="150" checkpointindex="6" islast="false" nextcheckpoints="7,-1,-1">
[9130]176        <attached>
177            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
178        </attached>
[9162]179      <collisionShapes>
[9121]180
181
[9162]182            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
183            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
184            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
185            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
[9130]186
[9272]187
[9130]188        </collisionShapes>
[9162]189
[9130]190    </RaceCheckPoint>
191
192
193
[9171]194<RaceCheckPoint name="checkpoint8" position="-4000,8050,3000" direction="0,1,0" roll="45" collisionType="static" scale="4" distance="150" checkpointindex="7" islast="false" nextcheckpoints="8,-1,-1">
[9130]195        <attached>
196            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
197        </attached>
[9162]198       <collisionShapes>
[9130]199
[9162]200            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
201            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
202            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
203            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
[9272]204
[9130]205        </collisionShapes>
206    </RaceCheckPoint>
207
[9162]208
[9171]209<RaceCheckPoint name="checkpoint9" position="-4000,8050,5000" direction="0,1,0" roll="-45" collisionType="static" scale="4" distance="150" checkpointindex="8" islast="false" nextcheckpoints="9,-1,-1">
[9130]210        <attached>
211            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
212        </attached>
[9162]213         <collisionShapes>
[9130]214
215
[9162]216            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
217            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
218            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
219            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
[9130]220
[9272]221
[9130]222        </collisionShapes>
[9162]223
[9130]224    </RaceCheckPoint>
225
[9162]226
[9171]227<RaceCheckPoint name="checkpoint10" position="-3000,8050,6000" direction="0,1,0" roll="90" collisionType="static" scale="4" distance="150" checkpointindex="9" islast="false" nextcheckpoints="10,-1,-1">
[9130]228        <attached>
229            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
230        </attached>
[9162]231       <collisionShapes>
[9130]232
233
[9162]234            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
235            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
236            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
237            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
[9130]238
[9272]239
[9162]240        </collisionShapes>
[9130]241
242    </RaceCheckPoint>
243
[9171]244<RaceCheckPoint name="checkpoint11" position="0,8050,6000" direction="0,1,0" roll="90" collisionType="static" scale="4" distance="120" checkpointindex="10" islast="false" nextcheckpoints="11,-1,-1">
[9169]245        <attached>
246            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
247        </attached>
248       <collisionShapes>
[9130]249
250
[9169]251            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
252            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
253            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
254            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
255
[9272]256
[9169]257        </collisionShapes>
258
259    </RaceCheckPoint>
260
[9171]261<RaceCheckPoint name="checkpoint12" position="6000,8050,6000" direction="0,1,0" roll="45" collisionType="static" scale="4" distance="150" checkpointindex="11" islast="false" nextcheckpoints="12,-1,-1">
[9130]262        <attached>
263            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
264        </attached>
[9162]265      <collisionShapes>
[9120]266
[9162]267
268            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
269            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
270            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
271            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
272
[9272]273
[9120]274        </collisionShapes>
[9162]275
[9120]276    </RaceCheckPoint>
277
278
[9171]279
280<RaceCheckPoint name="checkpoint13" position="5500,8050,3000" direction="0,1,0" roll="0" collisionType="static" scale="4" distance="150" checkpointindex="12" islast="false" nextcheckpoints="13,-1,-1">
281        <attached>
282            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
283        </attached>
284       <collisionShapes>
285
286            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
287            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
288            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
289            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
[9272]290
[9171]291        </collisionShapes>
292    </RaceCheckPoint>
293
294
295<RaceCheckPoint name="checkpoint14" position="6000,8050,-5000" direction="0,1,0" roll="0" collisionType="static" scale="4" distance="150" checkpointindex="13" islast="true" >
296        <attached>
297            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
298        </attached>
299       <collisionShapes>
300
301            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
302            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
303            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
304            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
[9272]305
[9171]306        </collisionShapes>
307    </RaceCheckPoint>
308
309
[9107]310</checkpoints>
311</SpaceRaceManager>
312
[9276]313 <SpawnPoint team=0 position="0,8050,0" lookat="0,8000,-8000" spawnclass=SpaceShip pawndesign=spaceshiprace />
[9107]314
[9272]315
316    <!-- -----------------------Zylinder---------------------------- -->
[9169]317<StaticEntity position="2750,8050,6000" direction="1,0,0" roll="90"  scale="4" collisionType=static mass=100000 friction=0.01 >
[9107]318      <attached>
[9272]319    <Model position="0,0,0" mesh="cylinder.mesh" scale3D="100,100,400" />
320    <!--
321                <Model position="0,80,600" mesh="testcube.mesh" scale3D="90,18,-600" />
322        <Model position="0,-80,600" mesh="testcube.mesh" scale3D="90,18,-600" />
323        <Model position="80,0,600" mesh="testcube.mesh" scale3D="18,90,-600" />
324        <Model position="-80,0,600" mesh="testcube.mesh" scale3D="18,09,-600" />
325    -->
[9169]326
[9107]327      </attached>
[9169]328
329
[9272]330    <collisionShapes>
[9169]331
[9272]332
333        <BoxCollisionShape position="0,320,2400"            halfExtents="360,72,2400" />
334        <BoxCollisionShape position="0,-320,2400"      halfExtents="360,72,2400" />
335        <BoxCollisionShape position="320,0,2400"            halfExtents="72,360,2400" />
336        <BoxCollisionShape position="-320,0,2400"     halfExtents="72,360,2400" />
337
338
339
[9169]340        </collisionShapes>
341
[9107]342  </StaticEntity>
343
[9174]344<!-- ------------------Cube between gate 4 and 5----------------- -->
345<StaticEntity position="4465,8050,-500" direction="0,0,0"   scale="1" collisionType=static mass=100000 friction=0.01 >
346      <attached>
[9272]347    <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" />
[9174]348<!--
[9272]349                <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" />
350        -->
[9169]351
[9174]352      </attached>
353
354
[9272]355    <collisionShapes>
[9174]356
[9272]357
358        <BoxCollisionShape position="0,0,0"            halfExtents="450,600,50" />
359
[9174]360        </collisionShapes>
361
362  </StaticEntity>
363
364<StaticEntity position="3535,8050,-500" direction="0,0,0"   scale="1" collisionType=static mass=100000 friction=0.01 >
365      <attached>
[9272]366    <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" />
[9174]367<!--
[9272]368                <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" />
369        -->
[9174]370
371      </attached>
372
373
[9272]374    <collisionShapes>
[9174]375
[9272]376
377        <BoxCollisionShape position="0,0,0"            halfExtents="450,600,50" />
378
[9174]379        </collisionShapes>
380
381  </StaticEntity>
382
383
384
385
[9272]386    <!-- ------------------Boden----------------- -->
[9071]387  <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
[9070]388     <attached>
[9130]389        <Model position="0,0,0" mesh="CubeGround.mesh" scale3D="8000,8000,8000" />
[9056]390      </attached>
391      <collisionShapes>
[9169]392        <BoxCollisionShape position="0,50,0" halfExtents="8000,8000,8000" />um j?:P"{
393
[9272]394      </collisionShapes>
[9107]395</StaticEntity>
[9070]396
[9162]397
[9171]398<!-- ---------------------PickUp---------------------- -->
[9162]399
[9171]400
[9319]401   <PickupSpawner pickup=smallspeedpickup position="4000,8050,0" triggerDistance="40" respawnTime="10" maxSpawnedItems="99" scale="8" />
402   <PickupSpawner pickup=mediumspeedpickup position="5500,8100,2000" triggerDistance="40" respawnTime="10" maxSpawnedItems="99" scale="8" />
403   <PickupSpawner pickup="mediumshrinkpickup" position="3000,8050,-4000" triggerDistance="40" respawnTime="60"  maxSpawnedItems="5" scale="8" />
[9162]404
405
406
407
408 <!-- ---------------asteroid ellipse----------------- -->
409
410 <?lua
[9171]411    max = 15
[9162]412    for i = 0, max, 1
413    do
[9272]414    x=-12000
415    y=10000
416    z=-12000
417
[9162]418    ?>
419    <?lua
420    for k = 1, 15, 1
421    do
422    j = math.random()
423    ?>
424
425    <MovableEntity
426      position = "<?lua print(x + math.random() * 20000) ?>,<?lua print(y + math.random() * 5000) ?>,<?lua print(z + math.random() * 20000) ?>"
427      collisionType = "dynamic"
428      linearDamping = "0.5"
429      angularDamping = "0.5"
[9171]430      collisiondamage = "100"
[9162]431      enablecollisiondamage = "true"
432      scale="<?lua print(j * 5) ?>" >
433      <attached>
434        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
435      <?lua if k == 0 then ?><attached><!-- ---------asteroid fog----- -->
436            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
437          </attached> <?lua end ?>
438        </Model>
439      </attached>
440      <collisionShapes>
441        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
442      </collisionShapes>
443    </MovableEntity>
444    <?lua
445    end
446    ?>
447    <?lua end ?>
[9939]448   
449    <!-- SOUNDS & MUSIC -->
450    <WorldSound name="scoreSound" position="0,8050,0" source="sounds/ReadyGo.ogg" >
451      <events>
452        <play>
453          <EventListener event="start" />
454        </play>
455      </events>
456    </WorldSound>
457    <DistanceTrigger name="start" position="0,8050,0"  target="Pawn" distance=100 stayActive="true" delay=0.5 />
458    <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true" />
[9162]459
[9035]460  </Scene>
461</Level>
462
Note: See TracBrowser for help on using the repository browser.