Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

holos gesetzt

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="3000,0,0" lookat="4000,-1000,-1000" spawnclass=SpaceShip pawndesign=spaceshipescort />
54        <!--6000,2000,500-->
55       
56
57       
58       
59       
60    <StaticEntity position  = "2800,0,0" mass=10000 collisionType=static >
61      <attached>
62        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
63      </attached>
64      <collisionShapes>
65        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
66        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
67        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
68        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
69        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
70        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
71        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
72        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
73        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
74        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
75        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
76        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
77        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
78        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
79        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
80        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
81      </collisionShapes>
82    </StaticEntity>
83
84
85        <!-- Docking  -->
86            <Dock position="2830,20,50" roll=0 yaw=0 >
87                <animations>
88                    <MoveToDockingTarget target="fistperson" />
89                </animations>
90                <effects>
91                    <DockToShip target="fistperson" />
92                </effects>
93                <events>
94                    <execute>
95                        <EventListener event="dockMe" />
96                    </execute>
97
98                    <undocking>
99                        <EventListener event="undockMe" />
100                    </undocking>
101               
102                </events>
103                <attached>
104                <!-- Trigger for docking with billboard -->
105                    <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
106                    <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
107                        beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
108                    />
109                <!-- Trigger for undocking with billboard -2800,-20055,-700-->
110                    <Billboard position="-1500,-20100,-50" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
111                    <DistanceTrigger position="-1500,-20100,-50" distance="150" target="Pawn"
112                        beaconMode="identify" targetname="bcnDestroyer" name="undockMe"
113                    />
114                </attached>
115
116            </Dock>
117           
118        <!-- FPS Player as destination of the dock -->
119        <!-- My position after docking -->
120            <FpsPlayer template = "fps_HS14" radarname = "First Person Player" position = "1330,-20016,0" >
121              <attached>
122                <DistanceTriggerBeacon name="bcnDestroyer" />
123                <DockingTarget name="fistperson" />
124              </attached>
125            </FpsPlayer>
126
127
128
129
130        <!-- Docking  II -->
131            <Dock position="86,-20055,-700" roll=0 yaw=0 >
132                <animations>
133                    <MoveToDockingTarget target="spaceShip" />
134                </animations>
135                <effects>
136                    <DockToShip target="spaceShip" />
137                </effects>
138                <events>
139                    <execute>
140                        <EventListener event="dockMe" />
141                    </execute>
142
143                    <undocking>
144                                <EventListener event="undockMe" />
145                    </undocking>
146               
147                </events>
148                <attached>
149                <!-- Trigger for docking with billboard -->
150                    <Billboard position="0,50,0" material="Flares/ringflare2" colour="0.3,0.4,0.5" scale=1 />
151                    <DistanceTrigger position="0,0,0" distance="100" target="Pawn"
152                        beaconMode="exclude" targetname="bcnSpaceShip" name="dockMe"
153                    />
154                <!-- Trigger for undocking with billboard -->
155                    <Billboard position="3251,20036,380" material="Flares/ringflare2" colour="0.3,0.4,0.5" scale=1 />
156                    <DistanceTrigger position="3251,20036,380" distance="100" target="Pawn"
157                        beaconMode="identify" targetname="bcnSpaceShip" name="undockMe"
158                    />
159                </attached>     
160         </Dock>
161       
162
163        <SpaceShip                     
164        template            = "spaceshipAssff"
165        team                = "0"
166        position            = "3337,-19,-320"
167        orientation         = "1,200,0,0"
168        health              = "200"
169        initialhealth       = "200"
170        maxhealth           = "200"
171        shieldhealth        = "50"
172        initialshieldhealth = "50"
173        maxshieldhealth     = "50"
174        shieldabsorption    = "0.8"
175        reloadrate          = "1"
176        reloadwaittime      = "1"
177        name                = "Tanis1"
178        radarname           = "Light Destroyer" >
179       <attached>
180        <DockingTarget name="spaceShip" />
181        <DistanceTriggerBeacon name="bcnSpaceShip" />
182      </attached>
183    </SpaceShip>
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            = "4800,-200,-1200"
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            = "4800,-220,-1200"
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.