Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Presentation_HS17_merge/data/levels/lastTeamStandingII.oxw @ 11777

Last change on this file since 11777 was 9939, checked in by jo, 11 years ago

presentationHS13 branch merged into trunk

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