Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/libs/data/levels/SurfaceRacePresentation.oxw @ 10169

Last change on this file since 10169 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 16.2 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    <Template name=PortalDefault>
40        <PortalEndPoint>
41            <attached>
42                <Model mesh="Spacegate.mesh" scale="3"/>
43            </attached>
44        </PortalEndPoint>
45    </Template>
46
47    <PortalEndPoint position="6000,8050,2500" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
48    <PortalEndPoint position="6100,8050,-4500" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
49    <PortalLink fromID="1" toID="2" />
50    <PortalLink fromID="2" toID="1" />
51
52  <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"/>
53
54
55    <Model position="4200,8050,-1000" scale=10 mesh="debris-pile01.mesh" shadow=true />
56    <Model position="4200,8050,-1000" scale=10 mesh="debris-pile02.mesh" shadow=true />
57    <Model position="4200,8050,-1000" scale=10 mesh="debris-pile03.mesh" shadow=true />
58
59    <MovableEntity position="-700,8090,-300" velocity="80,0,0" rotationaxis="1,0,1" rotationrate=200>
60      <attached>
61        <Model position="0,0,-20" scale=10 mesh="cokebottle.mesh" />
62      </attached>
63    </MovableEntity>
64
65
66<SpaceRaceManager>
67 <checkpoints>
68    <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">
69        <attached>
70            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
71        </attached>
72    <collisionShapes>
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        </collisionShapes>
78    </RaceCheckPoint>
79
80    <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">
81        <attached>
82            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
83        </attached>
84           <collisionShapes>
85            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
86            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
87            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
88            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
89        </collisionShapes>
90    </RaceCheckPoint>
91
92    <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">
93        <attached>
94            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
95        </attached>
96       <collisionShapes>
97            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
98            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
99            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
100            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
101        </collisionShapes>
102    </RaceCheckPoint>
103
104    <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">
105        <attached>
106            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
107        </attached>
108        <collisionShapes>
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        </collisionShapes>
114    </RaceCheckPoint>
115
116    <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">
117        <attached>
118            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
119        </attached>
120        <collisionShapes>
121            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
122            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
123            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
124            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
125        </collisionShapes>
126    </RaceCheckPoint>
127
128    <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">
129        <attached>
130            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
131        </attached>
132       <collisionShapes>
133            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
134            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
135            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
136            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
137        </collisionShapes>
138    </RaceCheckPoint>
139
140    <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">
141        <attached>
142            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
143        </attached>
144      <collisionShapes>
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        </collisionShapes>
150    </RaceCheckPoint>
151
152    <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">
153        <attached>
154            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
155        </attached>
156       <collisionShapes>
157            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
158            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
159            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
160            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
161        </collisionShapes>
162    </RaceCheckPoint>
163
164    <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">
165        <attached>
166            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
167        </attached>
168         <collisionShapes>
169            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
170            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
171            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
172            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
173        </collisionShapes>
174    </RaceCheckPoint>
175
176    <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">
177        <attached>
178            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
179        </attached>
180       <collisionShapes>
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        </collisionShapes>
186    </RaceCheckPoint>
187
188    <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">
189        <attached>
190            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
191        </attached>
192       <collisionShapes>
193            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
194            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
195            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
196            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
197        </collisionShapes>
198    </RaceCheckPoint>
199
200    <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">
201        <attached>
202            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
203        </attached>
204      <collisionShapes>
205            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
206            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
207            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
208            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
209        </collisionShapes>
210    </RaceCheckPoint>
211
212    <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">
213        <attached>
214            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
215        </attached>
216       <collisionShapes>
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        </collisionShapes>
222    </RaceCheckPoint>
223
224    <RaceCheckPoint name="checkpoint14" position="6000,8050,-5000" direction="0,1,0" roll="0" collisionType="static" scale="4" distance="150" checkpointindex="13" islast="true" >
225        <attached>
226            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
227        </attached>
228       <collisionShapes>
229            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
230            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
231            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
232            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
233        </collisionShapes>
234    </RaceCheckPoint>
235</checkpoints>
236</SpaceRaceManager>
237
238 <SpawnPoint team=0 position="0,8050,0" lookat="0,8000,-8000" spawnclass=SpaceShip pawndesign=shipselection />
239
240
241    <!-- -----------------------Zylinder---------------------------- -->
242<StaticEntity position="2750,8050,6000" direction="1,0,0" roll="90"  scale="4" collisionType=static mass=100000 friction=0.01 >
243      <attached>
244    <Model position="0,0,0" mesh="cylinder.mesh" scale3D="100,100,400" />
245    <!--
246                <Model position="0,80,600" mesh="testcube.mesh" scale3D="90,18,-600" />
247        <Model position="0,-80,600" mesh="testcube.mesh" scale3D="90,18,-600" />
248        <Model position="80,0,600" mesh="testcube.mesh" scale3D="18,90,-600" />
249        <Model position="-80,0,600" mesh="testcube.mesh" scale3D="18,09,-600" />
250    -->
251
252      </attached>
253
254
255    <collisionShapes>
256
257
258        <BoxCollisionShape position="0,320,2400"            halfExtents="360,72,2400" />
259        <BoxCollisionShape position="0,-320,2400"      halfExtents="360,72,2400" />
260        <BoxCollisionShape position="320,0,2400"            halfExtents="72,360,2400" />
261        <BoxCollisionShape position="-320,0,2400"     halfExtents="72,360,2400" />
262
263
264
265        </collisionShapes>
266
267  </StaticEntity>
268
269<!-- ------------------Cube between gate 4 and 5----------------- -->
270<StaticEntity position="4465,8050,-500" direction="0,0,0"   scale="1" collisionType=static mass=100000 friction=0.01 >
271      <attached>
272    <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" />
273<!--
274                <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" />
275        -->
276
277      </attached>
278
279
280    <collisionShapes>
281
282
283        <BoxCollisionShape position="0,0,0"            halfExtents="450,600,50" />
284
285        </collisionShapes>
286
287  </StaticEntity>
288
289<StaticEntity position="3535,8050,-500" direction="0,0,0"   scale="1" collisionType=static mass=100000 friction=0.01 >
290      <attached>
291    <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" />
292<!--
293                <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" />
294        -->
295
296      </attached>
297
298
299    <collisionShapes>
300
301
302        <BoxCollisionShape position="0,0,0"            halfExtents="450,600,50" />
303
304        </collisionShapes>
305
306  </StaticEntity>
307
308
309
310
311    <!-- ------------------Boden----------------- -->
312  <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
313     <attached>
314        <Model position="0,0,0" mesh="CubeGround.mesh" scale3D="8000,8000,8000" />
315      </attached>
316      <collisionShapes>
317        <BoxCollisionShape position="0,50,0" halfExtents="8000,8000,8000" />um j?:P"{
318
319      </collisionShapes>
320</StaticEntity>
321
322
323<!-- ---------------------PickUp---------------------- -->
324
325
326   <PickupSpawner pickup=smallspeedpickup position="4000,8050,0" triggerDistance="40" respawnTime="10" maxSpawnedItems="99" scale="8" />
327   <PickupSpawner pickup=mediumspeedpickup position="5500,8100,2000" triggerDistance="40" respawnTime="10" maxSpawnedItems="99" scale="8" />
328   <PickupSpawner pickup="mediumshrinkpickup" position="3000,8050,-4000" triggerDistance="40" respawnTime="60"  maxSpawnedItems="5" scale="8" />
329
330
331
332
333 <!-- ---------------asteroid ellipse----------------- -->
334
335 <?lua
336    max = 15
337    for i = 0, max, 1
338    do
339    x=-12000
340    y=10000
341    z=-12000
342
343    ?>
344    <?lua
345    for k = 1, 15, 1
346    do
347    j = math.random()
348    ?>
349
350    <MovableEntity
351      position = "<?lua print(x + math.random() * 20000) ?>,<?lua print(y + math.random() * 5000) ?>,<?lua print(z + math.random() * 20000) ?>"
352      collisionType = "dynamic"
353      linearDamping = "0.5"
354      angularDamping = "0.5"
355      collisiondamage = "100"
356      enablecollisiondamage = "true"
357      scale="<?lua print(j * 5) ?>" >
358      <attached>
359        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
360      <?lua if k == 0 then ?><attached><!-- ---------asteroid fog----- -->
361            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
362          </attached> <?lua end ?>
363        </Model>
364      </attached>
365      <collisionShapes>
366        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
367      </collisionShapes>
368    </MovableEntity>
369    <?lua
370    end
371    ?>
372    <?lua end ?>
373
374  </Scene>
375</Level>
376
Note: See TracBrowser for help on using the repository browser.