Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2012/data/levels/SurfaceRacePresentation.oxw @ 9247

Last change on this file since 9247 was 9247, checked in by decapitb, 12 years ago

surfacerace presentation level added. changed template name of spaceshiprace to lowercase (convention)

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