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