Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

alle collisionshapes fertig

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