Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/Binderm_FS16/data/levels/levelTry.oxw @ 11629

Last change on this file since 11629 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: 6.3 KB
Line 
1<!-- First levelFile of mkronig and samuezu. It was copied from dockingToASpaceStation.oxw and modified a little bit -->
2<LevelInfo
3 name = "levelTry"
4 description = "Docking into a spacestation."
5 tags = "showcase"
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?>
26
27<Level
28  gametype = Deathmatch
29>
30  <templates>
31    <Template link=lodtemplate_default />
32  </templates>
33
34  <Scene
35    ambientlight = "0.5, 0.5, 0.5"
36    skybox       = "Orxonox/Starbox"
37    negativeWorldRange = "-100000, -100000, -100000"
38    positiveWorldRange = " 100000,  100000,  100000"
39    gravity      = "0,0,0"
40    hasPhysics   = true
41  >
42
43    <?lua
44      include("includes/pickups.oxi")
45    ?>
46
47    <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"/>
48    <SpawnPoint team=0 position="3200,0,0" lookat="2800,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
49
50    <!--
51    <StaticEntity position  = "2800,0,0" mass=10000 collisionType=static >
52      <attached>
53        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
54      </attached>
55      <collisionShapes>
56        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" />
57        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
58        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
59        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" />
60        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
61        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
62        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" />
63        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
64        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
65        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 />
66        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" />
67        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
68        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
69        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 />
70        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
71        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
72      </collisionShapes>
73    </StaticEntity>
74    -->
75
76
77    <Billboard position="2500,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=10 />
78    <DistanceTrigger position="2500,0,0" distance="200" target="Pawn"
79      beaconMode="exclude" targetname="bcnDestroyer" name="takeControl"
80    />
81
82    <StaticEntity position  = "2000,500,2000" mass=10000 collisionType=static >
83      <attached>
84        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=10 />
85      </attached>
86    </StaticEntity>
87
88    <StaticEntity position  = "-1000,3000,-1000" mass=10000 collisionType=static >
89      <attached>
90        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=80 />
91      </attached>
92    </StaticEntity>
93
94
95
96
97<!-- ControllerDirector waits for the event takeControl to attach a new Controller -->
98    <ControllerDirector position="0,0,0">
99        <events>
100            <takeControl>
101                <EventListener event="takeControl" />
102            </takeControl>
103        </events>
104    </ControllerDirector>
105
106<!-- FPS Player as destination of the dock -->
107<FpsPlayer template = "fps" radarname = "First Person Player" position = "0,-19900,0" >
108      <attached>
109        <DockingTarget name="spaceShip" />
110        <DistanceTriggerBeacon name="bcnDestroyer" />
111        <DockingTarget name="destroyer" />
112      </attached>
113</FpsPlayer>
114
115
116<!-- Cube as test SpaceStation
117
118The 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.
119Complex spacestations can be placed very far away from the spaceship so it is rendered at low resolution while the player uses the space ship.
120
121-->
122  <StaticEntity position="0,-20000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
123      <attached>
124        <Model position="0,0,0" mesh="crate.mesh" scale3D="80,80,5" />
125      </attached>
126      <collisionShapes>
127        <BoxCollisionShape position="0,0,0" halfExtents="400,400,25" />
128      </collisionShapes>
129  </StaticEntity>
130
131<!-- Homogenous gravitationfield to simulate local gravity (activating the normal gravity will affect the spaceship terribly) -->
132<ForceField position="0,-20000,0" mode="homogen" diameter="2000" forcedirection = "0,-500,0" />
133
134
135<!-- Some more stuff -->
136
137    <!-- triple large belt around the planet  -->
138    <?lua
139        dofile("includes/asteroidField.lua")
140        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
141    ?>
142    <?lua
143        dofile("includes/asteroidField.lua")
144        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
145    ?>
146    <?lua
147        dofile("includes/asteroidField.lua")
148        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
149    ?>
150
151    <Planet
152      position="15000,0,-1000"
153      scale="5000"
154      collisionType="dynamic"
155      linearDamping="0.8"
156      angularDamping="0"
157      mass="10000000"
158      pitch="0"
159      mesh="planets/ganymede.mesh"
160      atmosphere="atmosphere1"
161      rotationaxis="1,0,0"
162      rotationrate="1.0"
163      atmospheresize="80.0f"
164      imagesize="1024.0f"
165      collisiondamage = 2
166      enablecollisiondamage = true
167    >
168      <attached>
169        <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
170      </attached>
171      <collisionShapes>
172        <SphereCollisionShape radius="5000" position="0,0,0" />
173      </collisionShapes>
174    </Planet>
175
176  </Scene>
177
178</Level>
179
Note: See TracBrowser for help on using the repository browser.