Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/lastTeamStandingII.oxw @ 8783

Last change on this file since 8783 was 8706, checked in by dafrick, 13 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

  • Property svn:eol-style set to native
File size: 19.9 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<!-------------- 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 />
415
416  </Scene>
417</Level>
418
Note: See TracBrowser for help on using the repository browser.