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