Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ogre1.9/data/levels/SurfaceRacePresentation.oxw @ 11327

Last change on this file since 11327 was 10624, checked in by landauf, 9 years ago

merged branch core7 back to trunk

  • Property svn:eol-style set to native
File size: 16.3 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
22plugins = gametypes
23gametype = SpaceRace
24>
25
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29  <?lua include("includes/notifications.oxi") ?>
30
31  <Scene
32    ambientlight = "2.0, 2.0, 2.0"
33    skybox       = "Orxonox/skyBoxClouds"
34    gravity      = "0,-75,0"
35    negativeWorldRange = "-100000, -100000, -100000"
36    positiveWorldRange = " 100000,  100000,  100000"
37    hasPhysics   = true
38  >
39
40    <Template name=PortalDefault>
41        <PortalEndPoint>
42            <attached>
43                <Model mesh="Spacegate.mesh" scale="3"/>
44            </attached>
45        </PortalEndPoint>
46    </Template>
47
48    <PortalEndPoint position="6000,8050,2500" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
49    <PortalEndPoint position="6100,8050,-4500" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
50    <PortalLink fromID="1" toID="2" />
51    <PortalLink fromID="2" toID="1" />
52
53  <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"/>
54
55
56    <Model position="4200,8050,-1000" scale=10 mesh="debris-pile01.mesh" shadow=true />
57    <Model position="4200,8050,-1000" scale=10 mesh="debris-pile02.mesh" shadow=true />
58    <Model position="4200,8050,-1000" scale=10 mesh="debris-pile03.mesh" shadow=true />
59
60    <MovableEntity position="-700,8090,-300" velocity="80,0,0" rotationaxis="1,0,1" rotationrate=200>
61      <attached>
62        <Model position="0,0,-20" scale=10 mesh="cokebottle.mesh" />
63      </attached>
64    </MovableEntity>
65
66
67<SpaceRaceManager>
68 <checkpoints>
69    <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">
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="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">
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="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            <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="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">
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="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">
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="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">
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="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">
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="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">
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="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">
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="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">
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="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">
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="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">
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="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">
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
225    <RaceCheckPoint name="checkpoint14" position="6000,8050,-5000" direction="0,1,0" roll="0" collisionType="static" scale="4" distance="150" checkpointindex="13" islast="true" >
226        <attached>
227            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
228        </attached>
229       <collisionShapes>
230            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
231            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
232            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
233            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
234        </collisionShapes>
235    </RaceCheckPoint>
236</checkpoints>
237</SpaceRaceManager>
238
239 <SpawnPoint team=0 position="0,8050,0" lookat="0,8000,-8000" spawnclass=SpaceShip pawndesign=shipselection />
240
241
242    <!-- -----------------------Zylinder---------------------------- -->
243<StaticEntity position="2750,8050,6000" direction="1,0,0" roll="90"  scale="4" collisionType=static mass=100000 friction=0.01 >
244      <attached>
245    <Model position="0,0,0" mesh="cylinder.mesh" scale3D="100,100,400" />
246    <!--
247                <Model position="0,80,600" mesh="testcube.mesh" scale3D="90,18,-600" />
248        <Model position="0,-80,600" mesh="testcube.mesh" scale3D="90,18,-600" />
249        <Model position="80,0,600" mesh="testcube.mesh" scale3D="18,90,-600" />
250        <Model position="-80,0,600" mesh="testcube.mesh" scale3D="18,09,-600" />
251    -->
252
253      </attached>
254
255
256    <collisionShapes>
257
258
259        <BoxCollisionShape position="0,320,2400"            halfExtents="360,72,2400" />
260        <BoxCollisionShape position="0,-320,2400"      halfExtents="360,72,2400" />
261        <BoxCollisionShape position="320,0,2400"            halfExtents="72,360,2400" />
262        <BoxCollisionShape position="-320,0,2400"     halfExtents="72,360,2400" />
263
264
265
266        </collisionShapes>
267
268  </StaticEntity>
269
270<!-- ------------------Cube between gate 4 and 5----------------- -->
271<StaticEntity position="4465,8050,-500" direction="0,0,0"   scale="1" collisionType=static mass=100000 friction=0.01 >
272      <attached>
273    <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" />
274<!--
275                <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" />
276        -->
277
278      </attached>
279
280
281    <collisionShapes>
282
283
284        <BoxCollisionShape position="0,0,0"            halfExtents="450,600,50" />
285
286        </collisionShapes>
287
288  </StaticEntity>
289
290<StaticEntity position="3535,8050,-500" direction="0,0,0"   scale="1" collisionType=static mass=100000 friction=0.01 >
291      <attached>
292    <Model position="0,0,0" mesh="blackcube.mesh" scale3D="450,600,50" />
293<!--
294                <Model position="0,0,0" mesh="testcube.mesh" scale3D="450,600,50" />
295        -->
296
297      </attached>
298
299
300    <collisionShapes>
301
302
303        <BoxCollisionShape position="0,0,0"            halfExtents="450,600,50" />
304
305        </collisionShapes>
306
307  </StaticEntity>
308
309
310
311
312    <!-- ------------------Boden----------------- -->
313  <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
314     <attached>
315        <Model position="0,0,0" mesh="CubeGround.mesh" scale3D="8000,8000,8000" />
316      </attached>
317      <collisionShapes>
318        <BoxCollisionShape position="0,50,0" halfExtents="8000,8000,8000" />um j?:P"{
319
320      </collisionShapes>
321</StaticEntity>
322
323
324<!-- ---------------------PickUp---------------------- -->
325
326
327   <PickupSpawner pickup=smallspeedpickup position="4000,8050,0" triggerDistance="40" respawnTime="10" maxSpawnedItems="99" scale="8" />
328   <PickupSpawner pickup=mediumspeedpickup position="5500,8100,2000" triggerDistance="40" respawnTime="10" maxSpawnedItems="99" scale="8" />
329   <PickupSpawner pickup="mediumshrinkpickup" position="3000,8050,-4000" triggerDistance="40" respawnTime="60"  maxSpawnedItems="5" scale="8" />
330
331
332
333
334 <!-- ---------------asteroid ellipse----------------- -->
335
336 <?lua
337    max = 15
338    for i = 0, max, 1
339    do
340    x=-12000
341    y=10000
342    z=-12000
343
344    ?>
345    <?lua
346    for k = 1, 15, 1
347    do
348    j = math.random()
349    ?>
350
351    <MovableEntity
352      position = "<?lua print(x + math.random() * 20000) ?>,<?lua print(y + math.random() * 5000) ?>,<?lua print(z + math.random() * 20000) ?>"
353      collisionType = "dynamic"
354      linearDamping = "0.5"
355      angularDamping = "0.5"
356      collisiondamage = "100"
357      enablecollisiondamage = "true"
358      scale="<?lua print(j * 5) ?>" >
359      <attached>
360        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
361      <?lua if k == 0 then ?><attached><!-- ---------asteroid fog----- -->
362            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
363          </attached> <?lua end ?>
364        </Model>
365      </attached>
366      <collisionShapes>
367        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
368      </collisionShapes>
369    </MovableEntity>
370    <?lua
371    end
372    ?>
373    <?lua end ?>
374
375  </Scene>
376</Level>
377
Note: See TracBrowser for help on using the repository browser.