Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/presentationHS13.oxw @ 11958

Last change on this file since 11958 was 11104, checked in by fvultier, 9 years ago

Some HUDs (Health, Shield, Weapons, EnemyHealth, EnemyShield) are also displayed in FPS mode. Removed two unused redundant files.

  • Property svn:eol-style set to native
File size: 10.0 KB
Line 
1<!--  -->
2<LevelInfo
3 name = "Presentation HS 13"
4 description = "Entering a Space Station."
5 tags = "presentation"
6 screenshot = "emptylevel.png"
7/>
8
9<?lua
10  include("stats.oxo")
11  include("HUDTemplates3.oxo")
12  include("HUDTemplatesFPS.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.oxt")
25  include("templates/HeavyCruiser.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    <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"/>
49    <SpawnPoint team=0 position="4320,1610,-741" lookat="2800,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
50
51
52    <StaticEntity position  = "2800,0,0" mass=10000 collisionType=static >
53      <attached>
54        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
55      </attached>
56      <collisionShapes>
57        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
58        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
59        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
60        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
61        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
62        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
63        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
64        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
65        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
66        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
67        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
68        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
69        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
70        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
71        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
72        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
73      </collisionShapes>
74    </StaticEntity>
75
76<!-- Docking  -->
77    <Dock position="2830,20,50" roll=0 yaw=0 >
78        <animations>
79            <MoveToDockingTarget target="fistperson" />
80        </animations>
81        <effects>
82            <DockToShip target="fistperson" />
83        </effects>
84        <events>
85            <execute>
86                <EventListener event="dockMe" />
87            </execute>
88
89            <undocking>
90                <EventListener event="undockMe" />
91            </undocking>
92       
93        </events>
94        <attached>
95        <!-- Trigger for docking with billboard -->
96            <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
97            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
98                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
99            />
100        <!-- Trigger for undocking with billboard -->
101            <Billboard position="-2800,-20055,-700" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
102            <DistanceTrigger position="-2800,-20055,-700" distance="150" target="Pawn"
103                beaconMode="identify" targetname="bcnDestroyer" name="undockMe"
104            />
105        </attached>
106
107    </Dock>
108   
109<!-- FPS Player as destination of the dock -->
110    <FpsPlayer template = "fps" radarname = "First Person Player" position = "172,-20000,-676" >
111      <attached>
112        <DistanceTriggerBeacon name="bcnDestroyer" />
113        <DockingTarget name="fistperson" />
114      </attached>
115    </FpsPlayer>
116
117
118
119
120<!-- Docking  II -->
121    <Dock position="-840,-20055,1.8" roll=0 yaw=0 >
122        <animations>
123            <MoveToDockingTarget target="spaceShip" />
124        </animations>
125        <effects>
126            <DockToShip target="spaceShip" />
127        </effects>
128        <events>
129            <execute>
130                <EventListener event="dockMe" />
131            </execute>
132
133            <undocking>
134                        <EventListener event="undockMe" />
135            </undocking>
136       
137        </events>
138        <attached>
139        <!-- Trigger for docking with billboard -->
140            <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.3,0.4,0.5" scale=1 />
141            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
142                beaconMode="exclude" targetname="bcnSpaceShip" name="dockMe"
143            />
144        <!-- Trigger for undocking with billboard -->
145            <Billboard position="4140,20055,-295" material="Flares/ringflare2" colour="0.3,0.4,0.5" scale=1 />
146            <DistanceTrigger position="4140,20055,-295" distance="300" target="Pawn"
147                beaconMode="identify" targetname="bcnSpaceShip" name="undockMe"
148            />
149        </attached>
150
151    </Dock>
152
153    <SpaceShip
154        template            = "HeavyCruiser"
155        team                = "0"
156        position            = "3600,-20,-120"
157        orientation         = "1,0,0,0"
158        health              = "400"
159        initialhealth       = "400"
160        maxhealth           = "500"
161        shieldhealth        = "80"
162        initialshieldhealth = "80"
163        maxshieldhealth     = "120"
164        shieldabsorption    = "0.8"
165        shieldrechargerate  = "1"
166        shieldrechargewaittime = "1"
167        name                = "Tanis1"
168        radarname           = "Tanis Cruiser" >
169      <attached>
170        <DockingTarget name="spaceShip" />
171        <DistanceTriggerBeacon name="bcnSpaceShip" />
172      </attached>
173    </SpaceShip>
174
175
176
177
178<!-- SpaceStation
179
180The 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.
181Complex spacestations can be placed very far away from the spaceship so it is rendered at low resolution while the player uses the space ship.
182
183-->
184  <StaticEntity position="0,-20000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 pitch=-90>
185      <attached>
186    <Model position="0,0,0" mesh="ss_tube.mesh" scale3D="100,100,100" />
187        <Model position="500,0,0" mesh="ss_tube.mesh" scale3D="100,100,100" />
188        <Model position="1200,0,0" mesh="ss_tube_x.mesh" scale3D="100,100,100" />
189        <Model position="1900,0,0" mesh="ss_curve.mesh" scale3D="100,100,100" />
190        <Model position="1200,0,703.5" mesh="ss_curve.mesh" scale3D="100,100,100" />
191        <Model position="1805.0,0,-800" mesh="ss_curve.mesh" scale3D="100,100,100" yaw=90 />
192        <Model position="1010.0,0,-700.0" mesh="ss_curve.mesh" scale3D="100,100,100" yaw=-180 />
193       
194       
195        <Model position="750,-16,703.5" pitch=-90 mesh="ss_flag_room.mesh" scale3D="100,100,100" />
196        <Model position="-250,-16,0" pitch=-90 mesh="ss_flag_room.mesh" scale3D="100,100,100" />
197        <Model position="1200,100,-100" roll=180 mesh="ss_machine.mesh" scale3D="0.15,0.15,0.15" />
198        <Model position="-100,100,0" roll=180 mesh="ss_table.mesh" scale3D="25,25,25" />
199        <Model position="-300,100,0" roll=180 mesh="ss_table_cracked.mesh" scale3D="25,25,25" />
200        <Model position="600,75,0" roll=180 mesh="ss_cylinder.mesh" scale3D="25,25,25" />
201        <Model position="300,50,0" roll=180  pitch=20 mesh="ss_chair.mesh" scale3D="20,20,20" />
202        <Model position="1000,50,0" roll=180 mesh="ss_wall.mesh" scale3D="20,20,20" />
203        <Model position="-830,20,0" roll=180 mesh="ss_flag_aean.mesh" scale3D="40,40,40" />
204       
205        <!--Model mesh="cube.mesh" mass=10 position="0,-100,0" scale3D="5000,0.5,1000" yaw=0 />
206    <Model mesh="cube.mesh" mass=10 position="0,100,0" scale3D="2000,0.5,1000" yaw=0 />
207    <!--Model mesh="cube.mesh" mass=10 position="0,0,100" scale3D="5000,100,0.5" yaw=0 />
208    <Model mesh="cube.mesh" mass=10 position="0,0,-100" scale3D="5000,100,0.5" yaw=0 /-->
209      </attached>
210      <collisionShapes>
211        <!--BoxCollisionShape position="0,-100,0" halfExtents="5000,0,100" /-->
212            <BoxCollisionShape position="0,100,0" halfExtents="2000,0,1000" />
213            <!--BoxCollisionShape position="0,0,100" halfExtents="5000,100,0" />
214            <BoxCollisionShape position="0,0,-100" halfExtents="5000,100,0" /-->
215      </collisionShapes>
216  </StaticEntity>
217
218<!--       
219
220-->
221
222
223  <!--Model position="2820,-20,-160" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_tube.mesh" />
224  <Model position="2820,-20,-210" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_tube.mesh" />
225  <Model position="2820,-20,-280" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_curve.mesh" />
226  <Model position="2820,-100,-270.5" yaw="0" pitch="180" roll="90" scale="10" mesh="ss_curve.mesh" /-->
227 
228   
229<!-- Homogenous gravitationfield to simulate local gravity (activating the normal gravity will affect the spaceship terribly) -->
230<ForceField position="0,-20000,0" mode="homogen" diameter="3000" forcedirection = "0,-500,0" />
231
232
233
234
235
236<!-- Some more stuff -->
237
238    <!-- triple large belt around the planet  -->
239    <?lua
240        dofile("includes/asteroidField.lua")
241        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
242    ?>
243    <?lua
244        dofile("includes/asteroidField.lua")
245        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
246    ?>
247    <?lua
248        dofile("includes/asteroidField.lua")
249        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
250    ?>
251
252    <Model position="0,-19900,0" mesh="planets/ganymede.mesh" scale="5000" />
253   
254   
255
256  </Scene>
257
258</Level>
259
Note: See TracBrowser for help on using the repository browser.