Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10113 was 10113, checked in by flsueess, 9 years ago

neues template mit allen bis jetzt vorhandenen Spacestation Elementen

File size: 13.1 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<!-- Docking  I -->
104    <Dock position="2830,20,50" roll=0 yaw=0 >
105        <animations>
106            <MoveToDockingTarget target="fistperson" />
107        </animations>
108        <effects>
109            <DockToShip target="fistperson" />
110        </effects>
111        <events>
112            <execute>
113                <EventListener event="dockMe" />
114            </execute>
115
116<!--    <undocking>
117                <EventListener event="undockMe" />
118            </undocking> -->
119       
120        </events>
121        <attached>
122
123        <!-- Trigger for docking with billboard -->
124       
125            <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
126            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
127                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
128            />
129
130        <!-- Trigger for undocking with billboard -->
131       
132            <Billboard position="-2800,-20055,-700" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
133            <DistanceTrigger position="-2800,-20055,-700" distance="150" target="Pawn"
134                beaconMode="identify" targetname="bcnDestroyer" name="undockMe"
135            />
136        </attached>
137
138    </Dock>
139   
140<!-- FPS Player as destination of the dock -->
141
142    <FpsPlayer template = "fps_HS14" radarname = "First Person Player" position = "172,-20000,-676" >
143      <attached>
144        <DistanceTriggerBeacon name="bcnDestroyer" />
145        <DockingTarget name="fistperson" />
146      </attached>
147    </FpsPlayer>
148
149
150
151
152<!-- Docking  II -->
153    <Dock position="-840,-20055,1.8" roll=0 yaw=0 >
154        <animations>
155            <MoveToDockingTarget target="spaceShip" />
156        </animations>
157        <effects>
158            <DockToShip target="spaceShip" />
159        </effects>
160        <events>
161            <execute>
162                <EventListener event="dockMe" />
163            </execute>
164
165            <undocking>
166                <EventListener event="undockMe" />
167            </undocking>
168       
169        </events>
170        <attached>
171       
172        <!-- Trigger for docking with billboard -->
173            <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.3,0.4,0.5" scale=1 />
174            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
175                beaconMode="exclude" targetname="bcnSpaceShip" name="dockMe"
176            />
177        <!-- Trigger for undocking with billboard -->
178            <Billboard position="4140,20055,-295" material="Flares/ringflare2" colour="0.3,0.4,0.5" scale=1 />
179            <DistanceTrigger position="4140,20055,-295" distance="300" target="Pawn"
180                beaconMode="identify" targetname="bcnSpaceShip" name="undockMe"
181            />
182        </attached>
183
184    </Dock>
185
186 <!-- Enemy ships -->
187 
188        <SpaceShip                     
189        template            = "HeavyCruiser"
190        team                = "0"
191        position            = "5800,-200,-1200"
192        orientation         = "1,200,0,0"
193        health              = "2000"
194        initialhealth       = "2000"
195        maxhealth           = "2000"
196        shieldhealth        = "200"
197        initialshieldhealth = "200"
198        maxshieldhealth     = "200"
199        shieldabsorption    = "0.8"
200        reloadrate          = "1"
201        reloadwaittime      = "1"
202        name                = "Tanis1"
203        radarname           = "Tanis Cruiser" >
204   </SpaceShip>
205   
206   
207 <!--   <SpaceShip                     
208        template            = "spaceshippirate"
209        team                = "0"
210        position            = "4800,-200,-1200"
211        orientation         = "1,200,0,0"
212        health              = "200"
213        initialhealth       = "200"
214        maxhealth           = "200"
215        shieldhealth        = "50"
216        initialshieldhealth = "50"
217        maxshieldhealth     = "50"
218        shieldabsorption    = "0.8"
219        reloadrate          = "1"
220        reloadwaittime      = "1"
221        name                = "Tanis1"
222        radarname           = "Pirate1" >
223       
224        <controller>
225            <AIController team=0/>           
226        </controller>
227       
228   </SpaceShip>
229   
230   <SpaceShip                   
231        template            = "spaceshippirate"
232        team                = "0"
233        position            = "4800,-220,-1200"
234        orientation         = "1,200,0,0"
235        health              = "200"
236        initialhealth       = "200"
237        maxhealth           = "200"
238        shieldhealth        = "50"
239        initialshieldhealth = "50"
240        maxshieldhealth     = "50"
241        shieldabsorption    = "0.8"
242        reloadrate          = "1"
243        reloadwaittime      = "1"
244        name                = "Tanis1"
245        radarname           = "Pirate2" >
246       
247        <controller>
248            <AIController team=0/>           
249        </controller>
250       
251   </SpaceShip>
252   -->
253
254<!-- SpaceStation
255
256The 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.
257Complex spacestations can be placed very far away from the spaceship so it is rendered at low resolution while the player uses the space ship.
258
259-->
260<StaticEntity position="2800,-500,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01 pitch=-90>
261<attached>
262
263<Model position="0,0,0" mesh="cube.mesh" scale3D="50,50,50" />
264
265</attached>
266</StaticEntity>
267
268<Model position="0,0,0" mesh="cube_red.mesh" scale3D="10000,10,10" />
269<Model position="0,0,0" mesh="cube_green.mesh" scale3D="10,10000,10" />
270<Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10000" />
271
272<Model position="0,-20000,0" mesh="cube_red.mesh" scale3D="10000,10,10" />
273<Model position="0,-20000,0" mesh="cube_green.mesh" scale3D="10,10000,10" />
274<Model position="0,-20000,0" mesh="cube.mesh" scale3D="10,10,10000" />
275
276<Model position="0,-20010,0" mesh="cube_blue.mesh" scale3D="11,11,11" />
277<Model position="-10,-20000,0" mesh="cube_blue.mesh" scale3D="11,11,11" />
278<Model position="0,-20000,-10" mesh="cube_blue.mesh" scale3D="11,11,11" />
279
280
281<StaticEntity position="0,-20000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 pitch=-90> 
282     
283 <attached>
284
285        <Model template = "ss_flag_room" position="750,-16,703.5" />
286        <Model template = "ss_tube" position="0,0,0" />
287       
288       
289 <!--   <Model position="0,0,0" mesh="ss_tube.mesh" scale3D="100,100,100" />
290        <Model position="500,0,0" mesh="ss_tube.mesh" scale3D="100,100,100" />
291        <Model position="1200,0,0" mesh="ss_tube_x.mesh" scale3D="100,100,100" />
292        <Model position="1900,0,0" mesh="ss_curve.mesh" scale3D="100,100,100" />
293        <Model position="1200,0,703.5" mesh="ss_curve.mesh" scale3D="100,100,100" />
294        <Model position="1805.0,0,-800" mesh="ss_curve.mesh" scale3D="100,100,100" yaw=90 />
295        <Model position="1010.0,0,-700.0" mesh="ss_curve.mesh" scale3D="100,100,100" yaw=-180 />
296       
297       
298        <Model position="750,-16,703.5" pitch=-90 mesh="ss_flag_room.mesh" scale3D="100,100,100" />
299        <Model position="-250,-16,0" pitch=-90 mesh="ss_flag_room.mesh" scale3D="100,100,100" />
300        <Model position="1200,100,-100" roll=180 mesh="ss_machine.mesh" scale3D="0.15,0.15,0.15" />
301        <Model position="-100,100,0" roll=180 mesh="ss_table.mesh" scale3D="25,25,25" />
302        <Model position="-300,100,0" roll=180 mesh="ss_table_cracked.mesh" scale3D="25,25,25" />
303        <Model position="600,75,0" roll=180 mesh="ss_cylinder.mesh" scale3D="25,25,25" />
304        <Model position="300,50,0" roll=180  pitch=20 mesh="ss_chair.mesh" scale3D="20,20,20" />
305        <Model position="1000,50,0" roll=180 mesh="ss_wall.mesh" scale3D="20,20,20" />
306        <Model position="-830,20,0" roll=180 mesh="ss_flag_aean.mesh" scale3D="40,40,40" />
307-->     
308        <!--Model mesh="cube.mesh" mass=10 position="0,-100,0" scale3D="5000,0.5,1000" yaw=0 />
309    <Model mesh="cube.mesh" mass=10 position="0,100,0" scale3D="2000,0.5,1000" yaw=0 />
310    <!--Model mesh="cube.mesh" mass=10 position="0,0,100" scale3D="5000,100,0.5" yaw=0 />
311    <Model mesh="cube.mesh" mass=10 position="0,0,-100" scale3D="5000,100,0.5" yaw=0 /-->
312      </attached>
313      <collisionShapes>
314        <!--BoxCollisionShape position="0,-100,0" halfExtents="5000,0,100" /-->
315            <BoxCollisionShape position="0,100,0" halfExtents="2000,0,1000" />
316            <!--BoxCollisionShape position="0,0,100" halfExtents="5000,100,0" />
317            <BoxCollisionShape position="0,0,-100" halfExtents="5000,100,0" /-->
318      </collisionShapes>
319  </StaticEntity>
320
321<!--       
322
323-->
324
325
326  <!--Model position="2820,-20,-160" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_tube.mesh" />
327  <Model position="2820,-20,-210" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_tube.mesh" />
328  <Model position="2820,-20,-280" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_curve.mesh" />
329  <Model position="2820,-100,-270.5" yaw="0" pitch="180" roll="90" scale="10" mesh="ss_curve.mesh" /-->
330 
331   
332<!-- Homogenous gravitationfield to simulate local gravity (activating the normal gravity will affect the spaceship terribly) -->
333<ForceField position="0,-20000,0" mode="homogen" diameter="3000" forcedirection = "0,-500,0" />
334
335
336
337
338
339<!-- Some more stuff -->
340
341    <!-- triple large belt around the planet  -->
342    <?lua
343        dofile("includes/asteroidField.lua")
344        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
345    ?>
346    <?lua
347        dofile("includes/asteroidField.lua")
348        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
349    ?>
350    <?lua
351        dofile("includes/asteroidField.lua")
352        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
353    ?>
354
355    <Model position="0,-19900,0" mesh="planets/ganymede.mesh" scale="5000" />
356   
357   
358
359  </Scene>
360
361</Level>
362
Note: See TracBrowser for help on using the repository browser.