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 |
---|
19 | gametype = 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 | <!-- ------------------Cube between gate 4 and 5----------------- --> |
---|
335 | <StaticEntity position="4465,8050,-500" direction="0,0,0" scale="1" collisionType=static mass=100000 friction=0.01 > |
---|
336 | <attached> |
---|
337 | <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" /> |
---|
338 | <!-- |
---|
339 | <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" /> |
---|
340 | --> |
---|
341 | |
---|
342 | </attached> |
---|
343 | |
---|
344 | |
---|
345 | <collisionShapes> |
---|
346 | |
---|
347 | |
---|
348 | <BoxCollisionShape position="0,0,0" halfExtents="450,600,50" /> |
---|
349 | |
---|
350 | </collisionShapes> |
---|
351 | |
---|
352 | </StaticEntity> |
---|
353 | |
---|
354 | <StaticEntity position="3535,8050,-500" direction="0,0,0" scale="1" collisionType=static mass=100000 friction=0.01 > |
---|
355 | <attached> |
---|
356 | <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" /> |
---|
357 | <!-- |
---|
358 | <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" /> |
---|
359 | --> |
---|
360 | |
---|
361 | </attached> |
---|
362 | |
---|
363 | |
---|
364 | <collisionShapes> |
---|
365 | |
---|
366 | |
---|
367 | <BoxCollisionShape position="0,0,0" halfExtents="450,600,50" /> |
---|
368 | |
---|
369 | </collisionShapes> |
---|
370 | |
---|
371 | </StaticEntity> |
---|
372 | |
---|
373 | |
---|
374 | |
---|
375 | |
---|
376 | <!-- ------------------Boden----------------- --> |
---|
377 | <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01> |
---|
378 | <attached> |
---|
379 | <Model position="0,0,0" mesh="CubeGround.mesh" scale3D="8000,8000,8000" /> |
---|
380 | </attached> |
---|
381 | <collisionShapes> |
---|
382 | <BoxCollisionShape position="0,50,0" halfExtents="8000,8000,8000" />um j?:P"{ |
---|
383 | |
---|
384 | </collisionShapes> |
---|
385 | </StaticEntity> |
---|
386 | |
---|
387 | |
---|
388 | <!-- ---------------------PickUp---------------------- --> |
---|
389 | |
---|
390 | |
---|
391 | <PickupSpawner position="4000,8100,-500" triggerDistance="40" respawnTime="10" maxSpawnedItems="99" scale="8"> |
---|
392 | <pickup> |
---|
393 | <SpeedPickup template=smallspeedpickup /> |
---|
394 | </pickup> |
---|
395 | </PickupSpawner> |
---|
396 | |
---|
397 | <PickupSpawner position="5500,8100,2000" triggerDistance="40" respawnTime="10" maxSpawnedItems="99" scale="8"> |
---|
398 | <pickup> |
---|
399 | <SpeedPickup template=mediumspeedpickup /> |
---|
400 | </pickup> |
---|
401 | </PickupSpawner> |
---|
402 | |
---|
403 | <PickupSpawner position="-4000,8100,4000" triggerDistance="40" respawnTime="60" maxSpawnedItems="5" scale="8"> |
---|
404 | <pickup> |
---|
405 | <ShrinkPickup template ="mediumshrinkpickup"/> |
---|
406 | </pickup> |
---|
407 | </PickupSpawner>> |
---|
408 | |
---|
409 | |
---|
410 | |
---|
411 | |
---|
412 | <!-- ---------------asteroid ellipse----------------- --> |
---|
413 | |
---|
414 | <?lua |
---|
415 | max = 15 |
---|
416 | for i = 0, max, 1 |
---|
417 | do |
---|
418 | x=-12000 |
---|
419 | y=10000 |
---|
420 | z=-12000 |
---|
421 | |
---|
422 | ?> |
---|
423 | <?lua |
---|
424 | for k = 1, 15, 1 |
---|
425 | do |
---|
426 | j = math.random() |
---|
427 | ?> |
---|
428 | |
---|
429 | <MovableEntity |
---|
430 | position = "<?lua print(x + math.random() * 20000) ?>,<?lua print(y + math.random() * 5000) ?>,<?lua print(z + math.random() * 20000) ?>" |
---|
431 | collisionType = "dynamic" |
---|
432 | linearDamping = "0.5" |
---|
433 | angularDamping = "0.5" |
---|
434 | collisiondamage = "100" |
---|
435 | enablecollisiondamage = "true" |
---|
436 | scale="<?lua print(j * 5) ?>" > |
---|
437 | <attached> |
---|
438 | <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"> |
---|
439 | <?lua if k == 0 then ?><attached><!-- ---------asteroid fog----- --> |
---|
440 | <ParticleEmitter position="0,0,0" source="Orxonox/Steam" /> |
---|
441 | </attached> <?lua end ?> |
---|
442 | </Model> |
---|
443 | </attached> |
---|
444 | <collisionShapes> |
---|
445 | <SphereCollisionShape radius="<?lua print(j * 80) ?>" /> |
---|
446 | </collisionShapes> |
---|
447 | </MovableEntity> |
---|
448 | <?lua |
---|
449 | end |
---|
450 | ?> |
---|
451 | <?lua end ?> |
---|
452 | |
---|
453 | </Scene> |
---|
454 | </Level> |
---|
455 | |
---|