Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/surfaceRace/data/levels/surfaceRace.oxw @ 9171

Last change on this file since 9171 was 9171, checked in by laumerf, 12 years ago

added new pickups

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