Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamecontent/data/levels/lastTeamStandingII.oxw @ 9215

Last change on this file since 9215 was 8922, checked in by jo, 13 years ago

fix quest structure (almost finished).

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