Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9494 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

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