Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11217 was 10624, checked in by landauf, 9 years ago

merged branch core7 back to trunk

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