Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/lastmanstanding3/data/levels/TEAMstanding.oxw @ 8155

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

Working on a new level for lastTeamStanding gametype. Basic concept is already visible. The next step is to add further collisionshapes and a system of force fields.

File size: 8.2 KB
Line 
1<LevelInfo
2 name = "TEAMstanding"
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         = "TEAMstanding"
18 description  = "testmap for gametype last team standing"
19 gametype     =  "TeamDeathmatch"
20>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24
25  <Scene
26    ambientlight = "0.8, 0.8, 0.8"
27    skybox       = "Orxonox/skypanoramagen1"
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
96<!-------------- Thin Gate -------------->
97
98   <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 >
99       <attached>
100           <Model position="0,-1200,0" mesh="hs-w01.mesh" scale3D="300,400,900" pitch="90" roll="0" yaw="0"/>
101           <!--Model position="121,0,-80" mesh="cube.mesh" scale3D="18,400,18" />
102           <Model position="-121,0,-80" mesh="cube.mesh" scale3D="18,400,18" /-->
103           <Model position="0,0,-80" scale=150 mesh="sphere.mesh" />
104       </attached>
105       <collisionShapes>
106           <BoxCollisionShape position="121,0,-80" halfExtents="18,400,18" />
107           <BoxCollisionShape position="-121,0,-80" halfExtents="18,400,18" />
108           <SphereCollisionShape position="0,0,-80" radius="150" />
109       </collisionShapes>
110   </StaticEntity>
111
112   <!-- TEST FAILED - You can't put a dynamic collisionshape into a static collisionshape -->
113   <!--MovableEntity position="0,0,-80" collisionType=dynamic linearDamping=0.8 angularDamping=0 >
114       <attached>
115           <Model position="0,0,0" scale=140 mesh="sphere.mesh" />
116       </attached>
117       <collisionShapes>
118           <SphereCollisionShape position="0,0,0" radius="140" />
119       </collisionShapes>
120    </MovableEntity>
121
122   <MovableEntity position="0,0,0" collisionType=dynamic linearDamping=0.8 angularDamping=0 >
123       <attached>
124           <Model position="0,-1200,0" mesh="hs-w01.mesh" scale3D="299,399,899" pitch="90" roll="0" yaw="0"/>
125       </attached>
126       <collisionShapes>
127           <BoxCollisionShape position="121,0,-80" halfExtents="15,370,15" />
128           <BoxCollisionShape position="-121,0,-80" halfExtents="15,370,15" />
129       </collisionShapes>
130    </MovableEntity-->
131
132<!-------------- Bulk Gate -------------->
133   <StaticEntity position="300,0,500" direction="0,0,0" collisionType=static mass=100000 >
134       <attached>
135           <Model position="0,-100,0" mesh="hs-w01.mesh" scale3D="500,400,600" pitch="270" roll="0" yaw="0"/>
136       </attached>
137       <!--collisionShapes>
138           <BoxCollisionShape position="0,0,-1000" halfExtents="1000,400,10" />
139       </collisionShapes-->
140   </StaticEntity>
141
142<!-------------- Bar -------------->
143   <StaticEntity position="-495,0,-495" direction="0,0,0" collisionType=static mass=100000 >
144       <attached>
145           <Model position="0,0,0" mesh="CuboidBody.mesh" scale3D="20,720,20" pitch="90" roll="45" yaw="0"/>
146           <!--Model position="0,0,0" mesh="cube.mesh" scale3D="19,719,19" pitch="90" roll="45" yaw="0"/-->
147       </attached>
148
149       <collisionShapes>
150           <BoxCollisionShape position="0,0,0" halfExtents="20,720,20" pitch="90" roll="45" yaw="0"/>
151       </collisionShapes>
152   </StaticEntity>
153
154
155<!-------------- 2 Side-Bars -------------->
156   <StaticEntity position="0,0,-1000" direction="0,0,0" collisionType=static mass=100000 >
157       <attached>
158           <Model position="0,0,0" mesh="CuboidBody.mesh" scale3D="20,405,20" pitch="0" roll="10" yaw="0"/>
159       </attached>
160       <collisionShapes>
161           <BoxCollisionShape position="0,0,0" halfExtents="20,400,20" pitch="0" roll="0" yaw="0"/>
162       </collisionShapes>
163   </StaticEntity>
164   <StaticEntity position="-1000,0,0" direction="0,0,0" collisionType=static mass=100000 >
165       <attached>
166           <Model position="0,0,0" mesh="CuboidBody.mesh" scale3D="20,405,20" pitch="7" roll="0" yaw="0"/>
167       </attached>
168       <collisionShapes>
169           <BoxCollisionShape position="0,0,0" halfExtents="20,400,20" pitch="0" roll="0" yaw="0"/>
170       </collisionShapes>
171   </StaticEntity>
172
173<!-------------- 3 Solar Panels --------------->
174
175<?lua
176for i = 1, 3, 1
177do
178    x = i/4*1000
179    z = i/4*500
180?>
181   <StaticEntity position="<?lua print(-1000+x) ?>,-310,<?lua print(z) ?>" direction="0,0,0" collisionType=static mass=100000 >
182       <attached>
183           <Model position="0,0,0" mesh="SolarPanel.mesh" scale3D="60,80,30" pitch="0" roll="0" yaw="120"/>
184       </attached>
185       <!--collisionShapes>
186           <BoxCollisionShape position="0,0,0" halfExtents="20,400,20" pitch="0" roll="0" yaw="0"/>
187       </collisionShapes-->
188   </StaticEntity>
189<?lua end ?>
190
191<!-------------- ???? --------------->
192   <StaticEntity position="500,0,-500" direction="0,0,0" collisionType=static mass=100000 >
193       <attached>
194           <Model position="0,0,0" mesh="plane.mesh" scale=20  pitch="7" roll="0" yaw="0"/>
195       </attached>
196       <collisionShapes>
197           <BoxCollisionShape position="0,0,0" halfExtents="20,400,20" pitch="0" roll="0" yaw="0"/>
198       </collisionShapes>
199   </StaticEntity>
200
201
202<?lua
203max = 16
204for i = 0, max, 1
205do
206    y = math.sin(i/max*6)*500
207    z = math.cos(i/max*6)*500
208    j = 1
209?>
210
211    <TeamSpawnPoint team=<?lua print( math.mod(i,4)) ?> position="<?lua print(y*1.4+z*0.2) ?>,0,<?lua print(z*1.4-y*0.2) ?>" direction="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
212
213<?lua end ?>
214
215  </Scene>
216</Level>
217
Note: See TracBrowser for help on using the repository browser.