Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationHS13/data/levels/presentationHS13.oxw @ 9937

Last change on this file since 9937 was 9937, checked in by jo, 10 years ago

Adding the presentation level and improving the debug-HUD

File size: 8.2 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("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.oxt")
24?>
25
26<Level
27  gametype = Deathmatch
28>
29  <templates>
30    <Template link=lodtemplate_default />
31  </templates>
32
33  <Scene
34    ambientlight = "0.5, 0.5, 0.5"
35    skybox       = "Orxonox/skyBoxMoreNebula"
36    negativeWorldRange = "-100000, -100000, -100000"
37    positiveWorldRange = " 100000,  100000,  100000"
38    gravity      = "0,0,0"
39    hasPhysics   = true
40  >
41
42    <?lua
43      include("includes/pickups.oxi")
44    ?>
45
46    <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"/>
47    <SpawnPoint team=0 position="3200,0,0" lookat="2800,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
48
49
50    <StaticEntity position  = "2800,0,0" mass=10000 collisionType=static >
51      <attached>
52        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
53      </attached>
54      <collisionShapes>
55        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
56        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
57        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
58        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
59        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
60        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
61        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
62        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
63        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
64        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
65        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
66        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
67        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
68        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
69        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
70        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
71      </collisionShapes>
72    </StaticEntity>
73
74<!-- Docking  -->
75    <Dock position="2830,20,50" roll=0 yaw=0 >
76        <animations>
77            <MoveToDockingTarget target="destroyer" />
78        </animations>
79        <effects>
80            <DockToShip target="spaceShip" />
81        </effects>
82        <events>
83            <execute>
84                <EventListener event="dockMe" />
85            </execute>
86
87            <undocking>
88                <EventListener event="undockMe" />
89            </undocking>
90       
91            <activity>
92                <EventListener event=notGameEnd />
93            </activity>
94        </events>
95        <attached>
96        <!-- Trigger for docking with billboard -->
97            <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
98            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
99                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
100            />
101        <!-- Trigger for undocking with billboard -->
102            <Billboard position="-2800,-20055,-700" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=10 />
103            <DistanceTrigger position="-2800,-20055,-700" distance="150" target="Pawn"
104                beaconMode="identify" targetname="bcnDestroyer" name="undockMe"
105            />
106        </attached>
107
108    </Dock>
109
110<!-- FPS Player as destination of the dock -->
111    <FpsPlayer template = "fps" radarname = "First Person Player" position = "0,-20000,0" >
112      <attached>
113        <DockingTarget name="spaceShip" />
114        <DistanceTriggerBeacon name="bcnDestroyer" />
115        <DockingTarget name="destroyer" />
116      </attached>
117    </FpsPlayer>
118
119
120<!-- Cube as test SpaceStation
121
122The 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.
123Complex spacestations can be placed very far away from the spaceship so it is rendered at low resolution while the player uses the space ship.
124
125-->
126  <StaticEntity position="0,-20000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 pitch=-90>
127      <attached>
128    <Model position="0,0,0" mesh="ss_tube.mesh" scale3D="100,100,100" />
129        <Model position="500,0,0" mesh="ss_tube.mesh" scale3D="100,100,100" />
130        <Model position="1200,0,0" mesh="ss_tube_x.mesh" scale3D="100,100,100" />
131        <Model position="1900,0,0" mesh="ss_curve.mesh" scale3D="100,100,100" />
132        <Model position="1200,0,703.5" mesh="ss_curve.mesh" scale3D="100,100,100" />
133        <Model position="1805.0,0,-800" mesh="ss_curve.mesh" scale3D="100,100,100" yaw=90 />
134        <Model position="1010.0,0,-700.0" mesh="ss_curve.mesh" scale3D="100,100,100" yaw=-180 />
135       
136       
137        <Model position="750,-16,703.5" pitch=-90 mesh="ss_flag_room.mesh" scale3D="100,100,100" />
138        <Model position="-250,-16,0" pitch=-90 mesh="ss_flag_room.mesh" scale3D="100,100,100" />
139        <Model position="1200,100,-100" roll=180 mesh="ss_machine.mesh" scale3D="0.15,0.15,0.15" />
140        <Model position="-100,100,0" roll=180 mesh="ss_table.mesh" scale3D="25,25,25" />
141        <Model position="-300,100,0" roll=180 mesh="ss_table_cracked.mesh" scale3D="25,25,25" />
142        <Model position="600,75,0" roll=180 mesh="ss_cylinder.mesh" scale3D="25,25,25" />
143        <Model position="300,50,0" roll=180  pitch=20 mesh="ss_chair.mesh" scale3D="20,20,20" />
144        <Model position="1000,50,0" roll=180 mesh="ss_wall.mesh" scale3D="20,20,20" />
145        <Model position="-830,20,0" roll=180 mesh="ss_flag_aean.mesh" scale3D="40,40,40" />
146       
147        <!--Model mesh="cube.mesh" mass=10 position="0,-100,0" scale3D="5000,0.5,1000" yaw=0 />
148    <Model mesh="cube.mesh" mass=10 position="0,100,0" scale3D="2000,0.5,1000" yaw=0 />
149    <!--Model mesh="cube.mesh" mass=10 position="0,0,100" scale3D="5000,100,0.5" yaw=0 />
150    <Model mesh="cube.mesh" mass=10 position="0,0,-100" scale3D="5000,100,0.5" yaw=0 /-->
151      </attached>
152      <collisionShapes>
153        <!--BoxCollisionShape position="0,-100,0" halfExtents="5000,0,100" /-->
154            <BoxCollisionShape position="0,100,0" halfExtents="2000,0,1000" />
155            <!--BoxCollisionShape position="0,0,100" halfExtents="5000,100,0" />
156            <BoxCollisionShape position="0,0,-100" halfExtents="5000,100,0" /-->
157      </collisionShapes>
158  </StaticEntity>
159
160<!--       
161
162-->
163
164
165  <!--Model position="2820,-20,-160" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_tube.mesh" />
166  <Model position="2820,-20,-210" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_tube.mesh" />
167  <Model position="2820,-20,-280" yaw="90" pitch="-90" roll="0" scale="10" mesh="ss_curve.mesh" />
168  <Model position="2820,-100,-270.5" yaw="0" pitch="180" roll="90" scale="10" mesh="ss_curve.mesh" /-->
169 
170   
171<!-- Homogenous gravitationfield to simulate local gravity (activating the normal gravity will affect the spaceship terribly) -->
172<ForceField position="0,-20000,0" mode="homogen" diameter="3000" forcedirection = "0,-500,0" />
173
174
175
176
177
178<!-- Some more stuff -->
179
180    <!-- triple large belt around the planet  -->
181    <?lua
182        dofile("includes/asteroidField.lua")
183        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
184    ?>
185    <?lua
186        dofile("includes/asteroidField.lua")
187        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
188    ?>
189    <?lua
190        dofile("includes/asteroidField.lua")
191        asteroidBelt(0, -19900, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
192    ?>
193
194    <Model position="0,-19900,0" mesh="planets/ganymede.mesh" scale="5000" />
195   
196   
197
198  </Scene>
199
200</Level>
201
Note: See TracBrowser for help on using the repository browser.