Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/weaponupdateHS14/data/levels/FPS_Level_HS14.oxw @ 10133

Last change on this file since 10133 was 10133, checked in by flsueess, 10 years ago

CollisionShapes hinzugefuegt

File size: 13.5 KB
Line 
1<!--  -->
2<LevelInfo
3 name = "FPS Level HS14"
4 description = "Entering a Space Station & finde a way through it."
5 tags = "test"
6 screenshot = "emptylevel.png"
7/>
8
9<?lua
10  include("stats.oxo")
11  include("HUDTemplates3.oxo")
12  include("templates/lodInformation.oxt")
13  include("templates/pickupRepresentationTemplates.oxt")
14?>
15
16<?lua
17  include("templates/spaceshipAssff.oxt")
18  include("templates/spaceshipPirate.oxt")
19  include("templates/spaceshipEscort.oxt")
20  include("templates/bigship.oxt")
21  include("templates/spaceshipTurret.oxt")
22  include("templates/spaceshipCollateralDamage.oxt")
23  include("templates/FPS_HS14.oxt")
24  include("templates/HeavyCruiser.oxt")
25  include("templates/spacestation_elements.oxt")
26?>
27
28<Level
29  gametype = Deathmatch
30>
31  <templates>
32    <Template link=lodtemplate_default />
33  </templates>
34
35  <Scene
36    ambientlight = "0.5, 0.5, 0.5"
37    skybox       = "Orxonox/skyBoxMoreNebula"
38    negativeWorldRange = "-100000, -100000, -100000"
39    positiveWorldRange = " 100000,  100000,  100000"
40    gravity      = "0,0,0"
41    hasPhysics   = true
42  >
43
44    <?lua
45      include("includes/pickups.oxi")
46    ?>
47       
48        <!-- my ships -->
49
50    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0,1.0,1.0,0.5" specular="1.0, 0.9, 0.9, 1.0"/>
51   
52    <SpawnPoint team=1 position="3000,0,0" lookat="4000,-1000,-1000" spawnclass=SpaceShip pawndesign=spaceshipescort />
53        <!--6000,2000,500-->
54       
55        <SpaceShip                     
56        template            = "spaceshipassff"
57        team                = "1"
58        position            = "3200,0,-200"
59        orientation         = "1,200,0,0"
60        health              = "200"
61        initialhealth       = "200"
62        maxhealth           = "200"
63        shieldhealth        = "50"
64        initialshieldhealth = "50"
65        maxshieldhealth     = "50"
66        shieldabsorption    = "0.8"
67        reloadrate          = "1"
68        reloadwaittime      = "1"
69        name                = "Tanis1"
70        radarname           = "Light-Destroyer" >
71       <attached>
72        <DockingTarget name="spaceShip" />
73        <DistanceTriggerBeacon name="bcnSpaceShip" />
74      </attached>
75    </SpaceShip>
76       
77       
78       
79    <StaticEntity position  = "2800,0,0" mass=10000 collisionType=static >
80      <attached>
81        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
82      </attached>
83      <collisionShapes>
84        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
85        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
86        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
87        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
88        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
89        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
90        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
91        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
92        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
93        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
94        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
95        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
96        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
97        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
98        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
99        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
100      </collisionShapes>
101    </StaticEntity>
102
103
104<!-- Docking  I -->
105    <Dock position="2830,20,50" roll=0 yaw=0 >
106        <animations>
107            <MoveToDockingTarget target="fistperson" />
108        </animations>
109        <effects>
110            <DockToShip target="fistperson" />
111        </effects>
112        <events>
113            <execute>
114                <EventListener event="dockMe" />
115            </execute>
116
117<!--    <undocking>
118                <EventListener event="undockMe" />
119            </undocking> -->
120       
121        </events>
122        <attached>
123
124        <!-- Trigger for docking with billboard  -->
125       
126            <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
127            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
128                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
129            />
130
131        <!-- Trigger for undocking with billboard  -->
132       
133            <Billboard position="-2800,-20055,-700" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
134            <DistanceTrigger position="-2800,-20055,-700" distance="150" target="Pawn"
135                beaconMode="identify" targetname="bcnDestroyer" name="undockMe"
136            />
137        </attached>
138
139    </Dock>
140   
141
142<!-- FPS Player as destination of the dock -->
143<!-- My position after docking -->
144
145    <FpsPlayer template = "fps_HS14" radarname = "First Person Player" position = "500,-20000,0"  >
146        <!--"500,-20000,0"-->
147      <attached>
148        <DistanceTriggerBeacon name="bcnDestroyer" />
149        <DockingTarget name="fistperson" />
150      </attached>
151    </FpsPlayer>
152
153
154
155
156<!-- Docking  II -->
157    <Dock position="-840,-20055,1.8" roll=0 yaw=0 >
158        <animations>
159            <MoveToDockingTarget target="spaceShip" />
160        </animations>
161        <effects>
162            <DockToShip target="spaceShip" />
163        </effects>
164        <events>
165            <execute>
166                <EventListener event="dockMe" />
167            </execute>
168
169            <undocking>
170                <EventListener event="undockMe" />
171            </undocking>
172       
173        </events>
174        <attached>
175       
176        <!-- Trigger for docking with billboard -->
177            <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.3,0.4,0.5" scale=1 />
178            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
179                beaconMode="exclude" targetname="bcnSpaceShip" name="dockMe"
180            />
181        <!-- Trigger for undocking with billboard -->
182            <Billboard position="4140,20055,-295" material="Flares/ringflare2" colour="0.3,0.4,0.5" scale=1 />
183            <DistanceTrigger position="4140,20055,-295" distance="300" target="Pawn"
184                beaconMode="identify" targetname="bcnSpaceShip" name="undockMe"
185            />
186        </attached>
187
188    </Dock>
189
190 <!-- Enemy ships -->
191 
192        <SpaceShip                     
193        template            = "HeavyCruiser"
194        team                = "0"
195        position            = "5800,-200,-1200"
196        orientation         = "1,200,0,0"
197        health              = "2000"
198        initialhealth       = "2000"
199        maxhealth           = "2000"
200        shieldhealth        = "200"
201        initialshieldhealth = "200"
202        maxshieldhealth     = "200"
203        shieldabsorption    = "0.8"
204        reloadrate          = "1"
205        reloadwaittime      = "1"
206        name                = "Tanis1"
207        radarname           = "Tanis Cruiser" >
208   </SpaceShip>
209   
210   
211 <!--   <SpaceShip                     
212        template            = "spaceshippirate"
213        team                = "0"
214        position            = "4800,-200,-1200"
215        orientation         = "1,200,0,0"
216        health              = "200"
217        initialhealth       = "200"
218        maxhealth           = "200"
219        shieldhealth        = "50"
220        initialshieldhealth = "50"
221        maxshieldhealth     = "50"
222        shieldabsorption    = "0.8"
223        reloadrate          = "1"
224        reloadwaittime      = "1"
225        name                = "Tanis1"
226        radarname           = "Pirate1" >
227       
228        <controller>
229            <AIController team=0/>           
230        </controller>
231       
232   </SpaceShip>
233   
234   <SpaceShip                   
235        template            = "spaceshippirate"
236        team                = "0"
237        position            = "4800,-220,-1200"
238        orientation         = "1,200,0,0"
239        health              = "200"
240        initialhealth       = "200"
241        maxhealth           = "200"
242        shieldhealth        = "50"
243        initialshieldhealth = "50"
244        maxshieldhealth     = "50"
245        shieldabsorption    = "0.8"
246        reloadrate          = "1"
247        reloadwaittime      = "1"
248        name                = "Tanis1"
249        radarname           = "Pirate2" >
250       
251        <controller>
252            <AIController team=0/>           
253        </controller>
254       
255   </SpaceShip>
256   -->
257
258<!-- SpaceStation
259
260The station can either be hidden outside of the skybox, within the hull of the space station if it is big enough or within a planet.
261Complex spacestations can be placed very far away from the spaceship so it is rendered at low resolution while the player uses the space ship.
262
263-->
264
265<!-- Hilfsobjekte fuer Koordinatensystem -->
266
267<Model position="0,0,0" mesh="cube_red.mesh" scale3D="10000,10,10" />
268<Model position="0,0,0" mesh="cube_green.mesh" scale3D="10,10000,10" />
269<Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10000" />
270
271<Model position="0,-100,0" mesh="cube_orange.mesh" scale3D="15,15,15" />
272<Model position="-100,0,0" mesh="cube_orange.mesh" scale3D="15,15,15" />
273<Model position="0,0,-100" mesh="cube_orange.mesh" scale3D="15,15,15" />
274
275<Model position="0,-20000,0" mesh="cube_red.mesh" scale3D="10000,10,10" />
276<Model position="0,-20000,0" mesh="cube_green.mesh" scale3D="10,10000,10" />
277<Model position="0,-20000,0" mesh="cube.mesh" scale3D="10,10,10000" />
278
279<Model position="0,-20100,0" mesh="cube_orange.mesh" scale3D="15,15,15" />
280<Model position="-100,-20000,0" mesh="cube_orange.mesh" scale3D="15,15,15" />
281<Model position="0,-20000,-100" mesh="cube_orange.mesh" scale3D="15,15,15" />
282
283
284<StaticEntity position="0,-20000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 pitch=-90> 
285     
286 <attached>
287
288        <Model template = "ss_flag_room" position="750,-16,0"   yaw=180 />
289       
290        <Model template = "ss_tube"             position="500,0,0" />
291       
292
293<!--<Model template     = "ss_curve"    position="-200,0,0" yaw=180 />
294        <Model template = "ss_curve"    position="-10,0,700" yaw=0 />
295        <Model template = "ss_tube"             position="-700,0,700" />
296        <Model template = "ss_tube"             position="-700,0,700" />
297        <Model template = "ss_tube_x"   position="1200,0,0" /> -->
298       
299       
300       
301 <!--   <Model position="0,0,0" mesh="ss_tube.mesh" scale3D="100,100,100" />
302        <Model position="500,0,0" mesh="ss_tube.mesh" scale3D="100,100,100" />
303        <Model position="1200,0,0" mesh="ss_tube_x.mesh" scale3D="100,100,100" />
304        <Model position="1900,0,0" mesh="ss_curve.mesh" scale3D="100,100,100" />
305        <Model position="1200,0,703.5" mesh="ss_curve.mesh" scale3D="100,100,100" />
306        <Model position="1805.0,0,-800" mesh="ss_curve.mesh" scale3D="100,100,100" yaw=90 />
307        <Model position="1010.0,0,-700.0" mesh="ss_curve.mesh" scale3D="100,100,100" yaw=-180 />
308       
309       
310        <Model position="750,-16,703.5" pitch=-90 mesh="ss_flag_room.mesh" scale3D="100,100,100" />
311        <Model position="-250,-16,0" pitch=-90 mesh="ss_flag_room.mesh" scale3D="100,100,100" />
312        <Model position="1200,100,-100" roll=180 mesh="ss_machine.mesh" scale3D="0.15,0.15,0.15" />
313        <Model position="-100,100,0" roll=180 mesh="ss_table.mesh" scale3D="25,25,25" />
314        <Model position="-300,100,0" roll=180 mesh="ss_table_cracked.mesh" scale3D="25,25,25" />
315        <Model position="600,75,0" roll=180 mesh="ss_cylinder.mesh" scale3D="25,25,25" />
316        <Model position="300,50,0" roll=180  pitch=20 mesh="ss_chair.mesh" scale3D="20,20,20" />
317        <Model position="1000,50,0" roll=180 mesh="ss_wall.mesh" scale3D="20,20,20" />
318        <Model position="-830,20,0" roll=180 mesh="ss_flag_aean.mesh" scale3D="40,40,40" />
319-->
320
321<!-- <Model mesh="cube.mesh" mass=10 position="0,-100,0" scale3D="5000,0.5,1000" yaw=0 />
322    <Model mesh="cube.mesh" mass=10 position="0,100,0" scale3D="2000,0.5,1000" yaw=0 />
323    <!--Model mesh="cube.mesh" mass=10 position="0,0,100" scale3D="5000,100,0.5" yaw=0 />
324    <Model mesh="cube.mesh" mass=10 position="0,0,-100" scale3D="5000,100,0.5" yaw=0 />
325      </attached>
326      <collisionShapes>
327        <BoxCollisionShape position="0,-100,0" halfExtents="5000,0,1000"/>
328            <BoxCollisionShape position="0,100,0" halfExtents="2000,0,1000" />
329            <BoxCollisionShape position="0,0,100" halfExtents="5000,100,0" />
330            <BoxCollisionShape position="0,0,-100" halfExtents="5000,100,0" />
331      </collisionShapes>
332-->
333 </attached>
334  </StaticEntity>
335
336
337<!--       
338
339-->
340
341
342  <!--Model position="2820,-20,-160" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_tube.mesh" />
343  <Model position="2820,-20,-210" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_tube.mesh" />
344  <Model position="2820,-20,-280" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_curve.mesh" />
345  <Model position="2820,-100,-270.5" yaw="0" pitch="180" roll="90" scale="10" mesh="ss_curve.mesh" /-->
346 
347   
348<!-- Homogenous gravitationfield to simulate local gravity (activating the normal gravity will affect the spaceship terribly) -->
349<ForceField position="0,-20200,0" mode="homogen" diameter="5000" forcedirection = "0,-500,0" />
350
351
352
353
354
355<!-- Some more stuff -->
356
357    <!-- triple large belt around the planet  -->
358    <?lua
359        dofile("includes/asteroidField.lua")
360        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
361    ?>
362    <?lua
363        dofile("includes/asteroidField.lua")
364        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
365    ?>
366    <?lua
367        dofile("includes/asteroidField.lua")
368        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
369    ?>
370
371    <Model position="0,-19900,0" mesh="planets/ganymede.mesh" scale="5000" />
372   
373   
374
375  </Scene>
376
377</Level>
378
Note: See TracBrowser for help on using the repository browser.