Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/Dialog_HS16/data/levels/surfaceRace.oxw @ 12373

Last change on this file since 12373 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
Line 
1<!--
2TODO:
3    Replace bottom's texture. It just does not look good.
4-->
5
6<LevelInfo
7 name = "Surface Race"
8 description = "Race on a planet's surface. Try to reach the goal in 70 Seconds."
9 screenshot = "surfaceRace.png"
10 tags = "gametype"
11/>
12
13
14<?lua
15  include("stats.oxo")
16  include("HUDTemplates3.oxo")
17  include("templates/lodInformation.oxt")
18  include("templates/spaceshipRace.oxt")
19  include("templates/pickupRepresentationTemplates.oxt")
20
21?>
22
23
24<Level
25  plugins = gametypes
26  gametype = SpaceRace
27>
28
29  <templates>
30    <Template link=lodtemplate_default />
31  </templates>
32  <?lua include("includes/notifications.oxi") ?>
33
34  <Scene
35    ambientlight = "2.0, 2.0, 2.0"
36    skybox       = "Orxonox/skyBoxClouds"
37    gravity      = "0,-75,0"
38    negativeWorldRange = "-100000, -100000, -100000"
39    positiveWorldRange = " 100000,  100000,  100000"
40    hasPhysics   = true
41  >
42
43    <?lua
44      include("includes/pickups.oxi")
45    ?>
46
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
49
50
51<SpaceRaceManager>
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">
54        <attached>
55            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
56
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
63-->
64
65
66        </attached>
67
68
69
70    <collisionShapes>
71
72
73            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
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
78
79        </collisionShapes>
80
81
82
83
84    </RaceCheckPoint>
85
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">
87        <attached>
88            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
89        </attached>
90
91
92           <collisionShapes>
93
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" />
98
99        </collisionShapes>
100    </RaceCheckPoint>
101
102
103
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">
105        <attached>
106            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
107        </attached>
108       <collisionShapes>
109
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
116
117        </collisionShapes>
118
119    </RaceCheckPoint>
120
121
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">
123        <attached>
124            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
125        </attached>
126        <collisionShapes>
127
128
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" />
133
134
135        </collisionShapes>
136
137    </RaceCheckPoint>
138
139
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">
141        <attached>
142            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
143        </attached>
144        <collisionShapes>
145
146
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" />
151
152
153        </collisionShapes>
154
155    </RaceCheckPoint>
156
157
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">
159        <attached>
160            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
161        </attached>
162       <collisionShapes>
163
164
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" />
169
170
171        </collisionShapes>
172    </RaceCheckPoint>
173
174
175
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">
177        <attached>
178            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
179        </attached>
180      <collisionShapes>
181
182
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" />
187
188
189        </collisionShapes>
190
191    </RaceCheckPoint>
192
193
194
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">
196        <attached>
197            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
198        </attached>
199       <collisionShapes>
200
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" />
205
206        </collisionShapes>
207    </RaceCheckPoint>
208
209
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">
211        <attached>
212            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
213        </attached>
214         <collisionShapes>
215
216
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" />
221
222
223        </collisionShapes>
224
225    </RaceCheckPoint>
226
227
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">
229        <attached>
230            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
231        </attached>
232       <collisionShapes>
233
234
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" />
239
240
241        </collisionShapes>
242
243    </RaceCheckPoint>
244
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">
246        <attached>
247            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
248        </attached>
249       <collisionShapes>
250
251
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
257
258        </collisionShapes>
259
260    </RaceCheckPoint>
261
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">
263        <attached>
264            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
265        </attached>
266      <collisionShapes>
267
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
274
275        </collisionShapes>
276
277    </RaceCheckPoint>
278
279
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" />
291
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" />
306
307        </collisionShapes>
308    </RaceCheckPoint>
309
310
311</checkpoints>
312</SpaceRaceManager>
313
314 <SpawnPoint team=0 position="0,8050,0" lookat="0,8000,-8000" spawnclass=SpaceShip pawndesign=spaceshiprace />
315
316
317    <!-- -----------------------Zylinder---------------------------- -->
318<StaticEntity position="2750,8050,6000" direction="1,0,0" roll="90"  scale="4" collisionType=static mass=100000 friction=0.01 >
319      <attached>
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    -->
327
328      </attached>
329
330
331    <collisionShapes>
332
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
341        </collisionShapes>
342
343  </StaticEntity>
344
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>
348    <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" />
349<!--
350                <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" />
351        -->
352
353      </attached>
354
355
356    <collisionShapes>
357
358
359        <BoxCollisionShape position="0,0,0"            halfExtents="450,600,50" />
360
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>
367    <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" />
368<!--
369                <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" />
370        -->
371
372      </attached>
373
374
375    <collisionShapes>
376
377
378        <BoxCollisionShape position="0,0,0"            halfExtents="450,600,50" />
379
380        </collisionShapes>
381
382  </StaticEntity>
383
384
385
386
387    <!-- ------------------Boden----------------- -->
388  <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
389     <attached>
390        <Model position="0,0,0" mesh="CubeGround.mesh" scale3D="8000,8000,8000" />
391      </attached>
392      <collisionShapes>
393        <BoxCollisionShape position="0,50,0" halfExtents="8000,8000,8000" />um j?:P"{
394
395      </collisionShapes>
396</StaticEntity>
397
398
399<!-- ---------------------PickUp---------------------- -->
400
401
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" />
405
406
407
408
409 <!-- ---------------asteroid ellipse----------------- -->
410
411 <?lua
412    max = 15
413    for i = 0, max, 1
414    do
415    x=-12000
416    y=10000
417    z=-12000
418
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"
431      collisiondamage = "100"
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 ?>
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" />
460
461  </Scene>
462</Level>
463
Note: See TracBrowser for help on using the repository browser.