Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/LevelLoader/data/levels/lastTeamStandingII.oxw @ 9672

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

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 20.1 KB
Line 
1<LevelInfo
2 name = "Last Team Standing II"
3 description = "Last Team Standing in an abstract level."
4 screenshot = "onthefly.png"
5 tags = "gametype"
6/>
7<?lua
8  include("stats.oxo")
9  include("HUDTemplates3.oxo")
10  include("templates/lodInformation.oxt")
11  include("lastTeamStandingHUD.oxo")
12  include("templates/spaceshipAssff.oxt")
13  include("templates/spaceshipPirate.oxt")
14  include("templates/pickupRepresentationTemplates.oxt")
15?>
16
17<Level
18 gametype     = "LastTeamStanding"
19>
20  <templates>
21    <Template link=lodtemplate_default />
22  </templates>
23  <?lua include("includes/notifications.oxi") ?>
24
25  <Scene
26    ambientlight = "0.8, 0.8, 0.8"
27    skybox       = "Orxonox/skyBoxBasic"
28  >
29<!-- TODO:
301. make collisionshapes bulletproof: -> attach movable entity with dynamic collisionshape within a static collisionshape
312. add forcefields -> there should be several "streams" through the level
323. add teamspawnpoints (different spaceships?) (where should the spawnpoints be placed?)
33-->
34<!--Bot / -->
35
36<!-------------------- Box: TopLayer + BottomLayer + 4 invisible Walls --------------------->
37   <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 >
38       <attached>
39           <Model position="0,-400,0" mesh="cube_orange.mesh" scale3D="1000,10,1000" />
40           <Model position="0,-420,0" mesh="cube_orange.mesh" scale3D="1000,10,1000" /><!-- Second Model in order to avoid graphic errors-->
41       </attached>
42       <collisionShapes>
43           <BoxCollisionShape position="0,-400,0" halfExtents="1500,10,1500" />
44       </collisionShapes>
45   </StaticEntity>
46
47   <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 >
48       <attached>
49           <Model position="0,400,0" mesh="cube_orange.mesh" scale3D="1000,10,1000" />
50           <Model position="0,420,0" mesh="cube_orange.mesh" scale3D="1000,10,1000" />
51       </attached>
52       <collisionShapes>
53           <BoxCollisionShape position="0,400,0" halfExtents="1000,10,1000" />
54       </collisionShapes>
55   </StaticEntity>
56
57   <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 >
58       <attached>
59           <!--Model position="1000,0,0" mesh="cube_green.mesh" scale3D="10,400,1000" /-->
60       </attached>
61       <collisionShapes>
62           <BoxCollisionShape position="1000,0,0" halfExtents="10,400,1000" />
63       </collisionShapes>
64   </StaticEntity>
65
66
67   <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 >
68       <attached>
69           <!-- Model position="-1000,0,0" mesh="cube_green.mesh" scale3D="10,400,1000" / -->
70       </attached>
71       <collisionShapes>
72           <BoxCollisionShape position="-1000,0,0" halfExtents="10,400,1000" />
73       </collisionShapes>
74   </StaticEntity>
75
76
77   <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 >
78       <attached>
79           <Model position="0,0,1000" mesh="cube_green.mesh" scale3D="1000,400,10" />
80       </attached>
81       <collisionShapes>
82           <BoxCollisionShape position="0,0,1000" halfExtents="1000,400,10" />
83       </collisionShapes>
84   </StaticEntity>
85
86
87   <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 >
88       <attached>
89           <Model position="0,0,-1000" mesh="cube_green.mesh" scale3D="1000,400,10" />
90       </attached>
91       <collisionShapes>
92           <BoxCollisionShape position="0,0,-1000" halfExtents="1000,400,10" />
93       </collisionShapes>
94   </StaticEntity>
95<!-- END of CUBE-->
96
97<!-------------- Centered Thin Gate -------------->
98
99   <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 >
100       <attached>
101           <Model position="0,-1200,0" mesh="hs-w01.mesh" scale3D="300,400,900" pitch="90" roll="0" yaw="0"/>
102           <!--Model position="121,0,-80" mesh="cube.mesh" scale3D="18,400,18" />
103           <Model position="-121,0,-80" mesh="cube.mesh" scale3D="18,400,18" /-->
104           <Model position="0,0,-80" scale=150 mesh="sphere.mesh" />
105       </attached>
106       <collisionShapes>
107           <BoxCollisionShape position="121,0,-80" halfExtents="18,400,18" />
108           <BoxCollisionShape position="-121,0,-80" halfExtents="18,400,18" />
109           <SphereCollisionShape position="0,0,-80" radius="150" />
110       </collisionShapes>
111   </StaticEntity>
112
113   <ForceField position="0,270,-80" direction="-3,-4,-3" diameter=150 velocity=2000 length=900 />
114   <MovableEntity position="0,270,-80" direction="-3,-4,-3">
115       <attached>
116           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
117           <?lua for i=0,4,1 do ?>
118               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
119           <?lua end ?>
120       </attached>
121   </MovableEntity>
122<!-- to bulk gate, left -->
123   <ForceField position="0,-275,-80" direction="3,0,2" diameter=150 velocity=2000 length=900 />
124   <MovableEntity position="0,-275,-80" direction="3,0,2">
125       <attached>
126           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
127           <?lua for i=0,4,1 do ?>
128               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
129           <?lua end ?>
130       </attached>
131   </MovableEntity>
132
133
134<!-------------- Bulk Gate -------------->
135   <StaticEntity position="300,0,500" direction="0,0,0" collisionType=static mass=100000 >
136       <attached>
137           <Model position="0,-100,0" mesh="hs-w01.mesh" scale3D="500,400,600" pitch="270" roll="0" yaw="0"/>
138           <!--Model position="205,-105,20" mesh="cube.mesh" scale3D="135,280,60" />
139           <Model position="-205,-105,20" mesh="cube.mesh" scale3D="135,280,60" />
140           <Model position="0,235,0" mesh="cube.mesh" scale3D="180,35,35" />
141           <Model position="0,-344,-18" mesh="cube.mesh" scale3D="210,38,36" /-->
142       </attached>
143       <collisionShapes>
144           <BoxCollisionShape position="205,-105,20" halfExtents="135,280,60" />
145           <BoxCollisionShape position="-205,-105,20" halfExtents="135,280,60" />
146           <BoxCollisionShape position="0,235,0" halfExtents="180,35,35" />
147           <BoxCollisionShape position="0,-344,-18" halfExtents="210,38,36" />
148       </collisionShapes>
149   </StaticEntity>
150<!-- back to thin gate -->
151   <ForceField position="300,0,650" direction="1,1.5,-4" diameter=150 velocity=2000 length=900 />
152   <MovableEntity position="300,0,650" direction="1,1.5,-4">
153       <attached>
154           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
155           <?lua for i=0,4,1 do ?>
156               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
157           <?lua end ?>
158       </attached>
159   </MovableEntity>
160<!-- to thin gate -->
161   <ForceField position="300,300,500" direction="-1,0,-2" diameter=100 velocity=1500 length=900 />
162   <MovableEntity position="300,300,500" direction="-1,0,-2">
163       <attached>
164           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
165           <?lua for i=0,4,1 do ?>
166               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
167           <?lua end ?>
168       </attached>
169   </MovableEntity>
170<!-- alternative stream -->
171   <ForceField position="830,-300,830" direction="-1,0,0" diameter=150 velocity=2000 length=900 />
172   <MovableEntity position="830,-300,830" direction="-1,0,0">
173       <attached>
174           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=1/>
175           <?lua for i=0,4,1 do ?>
176               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
177           <?lua end ?>
178       </attached>
179   </MovableEntity>
180<!-- alternative stream II-->
181   <ForceField position="830,350,830" direction="0,0,-1" diameter=150 velocity=2000 length=900 />
182   <MovableEntity position="830,350,830" direction="0,0,-1">
183       <attached>
184           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0,0,0.5" scale=1/>
185           <?lua for i=0,4,1 do ?>
186               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0,0,0.5" scale=1/>
187           <?lua end ?>
188       </attached>
189   </MovableEntity>
190
191
192<!-------------- Bar -------------->
193   <StaticEntity position="-495,0,-495" direction="0,0,0" collisionType=static mass=100000 >
194       <attached>
195           <Model position="0,0,0" mesh="CuboidBody.mesh" scale3D="20,720,20" pitch="90" roll="45" yaw="0"/>
196           <!--Model position="0,0,0" mesh="cube.mesh" scale3D="19,719,19" pitch="90" roll="45" yaw="0"/-->
197       </attached>
198
199       <collisionShapes>
200           <BoxCollisionShape position="0,0,0" halfExtents="20,720,20" pitch="90" roll="45" yaw="0"/>
201       </collisionShapes>
202   </StaticEntity>
203<!-- "lift" -->
204   <ForceField position="-700,-300,-700" direction="0,1,0" diameter=100 velocity=2000 length=400 />
205   <MovableEntity position="-700,-300,-700" direction="0,1,0">
206       <attached>
207           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
208           <?lua for i=0,4,1 do ?>
209               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
210           <?lua end ?>
211       </attached>
212   </MovableEntity>
213<!-- to thin gate, low -->
214   <ForceField position="0,60,-830" direction="0,-1,2" diameter=150 velocity=2000 length=900 />
215   <MovableEntity position="0,60,-830" direction="0,-1,2">
216       <attached>
217           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
218           <?lua for i=0,4,1 do ?>
219               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
220           <?lua end ?>
221       </attached>
222   </MovableEntity>
223<!-- alternative stream -->
224   <ForceField position="-830,-350,-830" direction="2,0,0" diameter=100 velocity=2000 length=900 />
225   <MovableEntity position="-830,-350,-830" direction="2,0,0">
226       <attached>
227           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=1/>
228           <?lua for i=0,4,1 do ?>
229               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
230           <?lua end ?>
231       </attached>
232   </MovableEntity>
233<!-- alternative stream II-->
234   <ForceField position="-870,350,-830" direction="0,0,1" diameter=150 velocity=2000 length=900 />
235   <MovableEntity position="-870,350,-830" direction="0,0,1">
236       <attached>
237           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0,0,0.5" scale=1/>
238           <?lua for i=0,4,1 do ?>
239               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0,0,0.5" scale=1/>
240           <?lua end ?>
241       </attached>
242   </MovableEntity>
243
244<!-------------- 2 Side-Bars -------------->
245   <StaticEntity position="0,0,-1000" direction="0,0,0" collisionType=static mass=100000 >
246       <attached>
247           <Model position="0,0,0" mesh="CuboidBody.mesh" scale3D="20,405,20" pitch="0" roll="10" yaw="0"/>
248       </attached>
249       <collisionShapes>
250           <BoxCollisionShape position="0,0,0" halfExtents="20,400,20" pitch="0" roll="0" yaw="0"/>
251       </collisionShapes>
252   </StaticEntity>
253   <StaticEntity position="-1000,0,0" direction="0,0,0" collisionType=static mass=100000 >
254       <attached>
255           <Model position="0,0,0" mesh="CuboidBody.mesh" scale3D="20,405,20" pitch="7" roll="0" yaw="0"/>
256       </attached>
257       <collisionShapes>
258           <BoxCollisionShape position="0,0,0" halfExtents="20,400,20" pitch="0" roll="0" yaw="0"/>
259       </collisionShapes>
260   </StaticEntity>
261<!-- to solar panels -->
262   <ForceField position="-850,-300,-200" direction="1,0,2" diameter=150 velocity=2000 length=900 />
263   <MovableEntity position="-850,-300,-200" direction="1,0,2">
264       <attached>
265           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
266           <?lua for i=0,4,1 do ?>
267               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
268           <?lua end ?>
269       </attached>
270   </MovableEntity>
271<!-- along the bar -->
272   <ForceField position="-900,50,-100" direction="1,0,-1" diameter=150 velocity=2000 length=900 />
273   <MovableEntity position="-900,50,-100" direction="1,0,-1">
274       <attached>
275           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
276           <?lua for i=0,4,1 do ?>
277               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
278           <?lua end ?>
279       </attached>
280   </MovableEntity>
281
282<!-------------- 3 Solar Panels --------------->
283
284<?lua
285for i = 1, 3, 1
286do
287    x = i/4*1000
288    z = i/4*500
289?>
290   <StaticEntity position="<?lua print(-1000+x) ?>,-310,<?lua print(z) ?>" direction="0,0,0" collisionType=static mass=100000 >
291       <attached>
292           <Model position="0,0,0" mesh="SolarPanel.mesh" scale3D="60,80,30" pitch="0" roll="0" yaw="120"/>
293       </attached>
294       <collisionShapes>
295           <BoxCollisionShape position="0,300,0" halfExtents="155,460,3" pitch="0" roll="0" yaw="120"/>
296       </collisionShapes>
297   </StaticEntity>
298<?lua end ?>
299
300   <ForceField position="-600,100,400" direction="0,-1,-3" diameter=100 velocity=2000 length=900 />
301   <MovableEntity position="-600,100,400" direction="0,-1,-3">
302       <attached>
303           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
304           <?lua for i=0,4,1 do ?>
305               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
306           <?lua end ?>
307       </attached>
308   </MovableEntity>
309<!-- alternative stream -->
310   <ForceField position="-830,-100,830" direction="0,0,-1" diameter=100 velocity=2000 length=900 />
311   <MovableEntity position="-830,-100,830" direction="0,0,-1">
312       <attached>
313           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=1/>
314           <?lua for i=0,4,1 do ?>
315               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
316           <?lua end ?>
317       </attached>
318   </MovableEntity>
319<!-- alternative stream II -->
320   <ForceField position="-830,350,830" direction="1,0,0" diameter=100 velocity=2000 length=900 />
321   <MovableEntity position="-830,350,830" direction="1,0,0">
322       <attached>
323           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0,0,0.5" scale=1/>
324           <?lua for i=0,4,1 do ?>
325               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0,0,0.5" scale=1/>
326           <?lua end ?>
327       </attached>
328   </MovableEntity>
329<!-- along the panels -->
330   <ForceField position="-830,250,250" direction="3,0,2" diameter=100 velocity=2000 length=900 />
331   <MovableEntity position="-830,250,250" direction="3,0,2">
332       <attached>
333           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
334           <?lua for i=0,4,1 do ?>
335               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
336           <?lua end ?>
337       </attached>
338   </MovableEntity>
339
340<!-------------- Thin Gate -------------->
341
342   <StaticEntity position="500,0,-500" direction="1,0,-1" collisionType=static mass=100000 >
343       <attached>
344           <Model position="0,-1200,0" mesh="hs-w01.mesh" scale3D="300,400,900" pitch="90" roll="0" yaw="0"/>
345           <Model position="0,100,-80" scale=150 mesh="sphere.mesh" />
346       </attached>
347       <collisionShapes>
348           <BoxCollisionShape position="121,0,-80" halfExtents="18,400,18" />
349           <BoxCollisionShape position="-121,0,-80" halfExtents="18,400,18" />
350           <SphereCollisionShape position="0,100,-80" radius="150" />
351       </collisionShapes>
352   </StaticEntity>
353<!-- to thin gate middle -->
354   <ForceField position="550,350,-550" direction="-3.3,0,3" diameter=100 velocity=2000 length=900 />
355   <MovableEntity position="550,350,-550" direction="-3.3,0,3">
356       <attached>
357           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
358           <?lua for i=0,4,1 do ?>
359               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
360           <?lua end ?>
361       </attached>
362   </MovableEntity>
363<!-- across the field -->
364   <ForceField position="550,-350,-550" direction="-3,0,1" diameter=100 velocity=2000 length=900 />
365   <MovableEntity position="550,-350,-550" direction="-3,0,1">
366       <attached>
367           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=1/>
368           <?lua for i=0,4,1 do ?>
369               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
370           <?lua end ?>
371       </attached>
372   </MovableEntity>
373<!-- alternative stream -->
374   <ForceField position="830,-350,-830" direction="0,0,1" diameter=100 velocity=2000 length=900 />
375   <MovableEntity position="830,-350,-830" direction="0,0,1">
376       <attached>
377           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=1/>
378           <?lua for i=0,4,1 do ?>
379               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
380           <?lua end ?>
381       </attached>
382   </MovableEntity>
383<!-- alternative stream II -->
384   <ForceField position="830,350,-830" direction="-1,0,0" diameter=100 velocity=2000 length=900 />
385   <MovableEntity position="830,350,-830" direction="-1,0,0">
386       <attached>
387           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0,0,0.5" scale=1/>
388           <?lua for i=0,4,1 do ?>
389               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0,0,0.5" scale=1/>
390           <?lua end ?>
391       </attached>
392   </MovableEntity>
393
394<!---------------- Spawnpoints ------------------>
395    <TeamSpawnPoint team=0 position="845,350,-835" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
396    <TeamSpawnPoint team=0 position="845,-350,-835" direction="0,0,1" spawnclass=SpaceShip pawndesign=spaceshipassff />
397    <TeamSpawnPoint team=0 position="835,350,-845" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
398    <TeamSpawnPoint team=0 position="835,-350,-845" direction="0,0,1" spawnclass=SpaceShip pawndesign=spaceshipassff />
399
400    <TeamSpawnPoint team=1 position="-845,350,835" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
401    <TeamSpawnPoint team=1 position="-845,-100,835" direction="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipassff />
402    <TeamSpawnPoint team=1 position="-835,350,845" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
403    <TeamSpawnPoint team=1 position="-835,-100,845" direction="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipassff />
404
405    <TeamSpawnPoint team=2 position="-870,350,-835" direction="0,0,1" spawnclass=SpaceShip pawndesign=spaceshipassff />
406    <TeamSpawnPoint team=2 position="-840,-350,-835" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
407    <TeamSpawnPoint team=2 position="-865,350,-840" direction="0,0,1" spawnclass=SpaceShip pawndesign=spaceshipassff />
408    <TeamSpawnPoint team=2 position="-835,-350,-840" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
409
410    <TeamSpawnPoint team=3 position="835,350,845" direction="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipassff />
411    <TeamSpawnPoint team=3 position="835,-300,845" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
412    <TeamSpawnPoint team=3 position="845,350,835" direction="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipassff />
413    <TeamSpawnPoint team=3 position="845,-300,835" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
414<Bot /><!-- at least one bot is needed to stat the game properly. Else the game finishes. This could be avoided, if the menue allows a preselection of the number of players. --> 
415
416  </Scene>
417</Level>
418
Note: See TracBrowser for help on using the repository browser.