Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/release2012/data/levels/surfaceRace.oxw @ 11909

Last change on this file since 11909 was 9373, checked in by jo, 12 years ago

On the way to adjust multiplayermenue. Levels tagged with singleplayer should NOT be displayed in the multiplayermenue.

  • Property svn:eol-style set to native
File size: 15.5 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, singleplayer"
11/>
12
13<?lua
14  include("stats.oxo")
15  include("HUDTemplates3.oxo")
16  include("templates/lodInformation.oxt")
17  include("templates/spaceshipRace.oxt")
18  include("templates/pickupRepresentationTemplates.oxt")
19
20?>
21
22
23<Level
24  gametype = SpaceRace
25>
26
27  <templates>
28    <Template link=lodtemplate_default />
29  </templates>
30  <?lua include("includes/notifications.oxi") ?>
31
32  <Scene
33    ambientlight = "2.0, 2.0, 2.0"
34    skybox       = "Orxonox/skyBoxClouds"
35    gravity      = "0,-75,0"
36    negativeWorldRange = "-100000, -100000, -100000"
37    positiveWorldRange = " 100000,  100000,  100000"
38    hasPhysics   = true
39  >
40
41    <?lua
42      include("includes/pickups.oxi")
43    ?>
44
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
47
48
49<SpaceRaceManager>
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">
52        <attached>
53            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
54
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
61-->
62
63
64        </attached>
65
66
67
68    <collisionShapes>
69
70
71            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
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
76
77        </collisionShapes>
78
79
80
81
82    </RaceCheckPoint>
83
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">
85        <attached>
86            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
87        </attached>
88
89
90           <collisionShapes>
91
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" />
96
97        </collisionShapes>
98    </RaceCheckPoint>
99
100
101
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">
103        <attached>
104            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
105        </attached>
106       <collisionShapes>
107
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
114
115        </collisionShapes>
116
117    </RaceCheckPoint>
118
119
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">
121        <attached>
122            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
123        </attached>
124        <collisionShapes>
125
126
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" />
131
132
133        </collisionShapes>
134
135    </RaceCheckPoint>
136
137
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">
139        <attached>
140            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
141        </attached>
142        <collisionShapes>
143
144
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" />
149
150
151        </collisionShapes>
152
153    </RaceCheckPoint>
154
155
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">
157        <attached>
158            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
159        </attached>
160       <collisionShapes>
161
162
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" />
167
168
169        </collisionShapes>
170    </RaceCheckPoint>
171
172
173
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">
175        <attached>
176            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
177        </attached>
178      <collisionShapes>
179
180
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" />
185
186
187        </collisionShapes>
188
189    </RaceCheckPoint>
190
191
192
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">
194        <attached>
195            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
196        </attached>
197       <collisionShapes>
198
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" />
203
204        </collisionShapes>
205    </RaceCheckPoint>
206
207
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">
209        <attached>
210            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
211        </attached>
212         <collisionShapes>
213
214
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" />
219
220
221        </collisionShapes>
222
223    </RaceCheckPoint>
224
225
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">
227        <attached>
228            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
229        </attached>
230       <collisionShapes>
231
232
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" />
237
238
239        </collisionShapes>
240
241    </RaceCheckPoint>
242
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">
244        <attached>
245            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
246        </attached>
247       <collisionShapes>
248
249
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
255
256        </collisionShapes>
257
258    </RaceCheckPoint>
259
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">
261        <attached>
262            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
263        </attached>
264      <collisionShapes>
265
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
272
273        </collisionShapes>
274
275    </RaceCheckPoint>
276
277
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" />
289
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" />
304
305        </collisionShapes>
306    </RaceCheckPoint>
307
308
309</checkpoints>
310</SpaceRaceManager>
311
312 <SpawnPoint team=0 position="0,8050,0" lookat="0,8000,-8000" spawnclass=SpaceShip pawndesign=spaceshiprace />
313
314
315    <!-- -----------------------Zylinder---------------------------- -->
316<StaticEntity position="2750,8050,6000" direction="1,0,0" roll="90"  scale="4" collisionType=static mass=100000 friction=0.01 >
317      <attached>
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    -->
325
326      </attached>
327
328
329    <collisionShapes>
330
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
339        </collisionShapes>
340
341  </StaticEntity>
342
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>
346    <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" />
347<!--
348                <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" />
349        -->
350
351      </attached>
352
353
354    <collisionShapes>
355
356
357        <BoxCollisionShape position="0,0,0"            halfExtents="450,600,50" />
358
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>
365    <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" />
366<!--
367                <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" />
368        -->
369
370      </attached>
371
372
373    <collisionShapes>
374
375
376        <BoxCollisionShape position="0,0,0"            halfExtents="450,600,50" />
377
378        </collisionShapes>
379
380  </StaticEntity>
381
382
383
384
385    <!-- ------------------Boden----------------- -->
386  <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
387     <attached>
388        <Model position="0,0,0" mesh="CubeGround.mesh" scale3D="8000,8000,8000" />
389      </attached>
390      <collisionShapes>
391        <BoxCollisionShape position="0,50,0" halfExtents="8000,8000,8000" />um j?:P"{
392
393      </collisionShapes>
394</StaticEntity>
395
396
397<!-- ---------------------PickUp---------------------- -->
398
399
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" />
403
404
405
406
407 <!-- ---------------asteroid ellipse----------------- -->
408
409 <?lua
410    max = 15
411    for i = 0, max, 1
412    do
413    x=-12000
414    y=10000
415    z=-12000
416
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"
429      collisiondamage = "100"
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
448  </Scene>
449</Level>
450
Note: See TracBrowser for help on using the repository browser.