Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/cpp11/data/levels/FPS_Level_HS14.oxw @ 10570

Last change on this file since 10570 was 10262, checked in by landauf, 10 years ago

eol-style native. no changes in code.

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