| [10009] | 1 | <!-- First levelFile of mkronig and samuezu. It was copied from dockingToASpaceStation.oxw and modified a little bit --> | 
|---|
| [10006] | 2 | <LevelInfo | 
|---|
| [10035] | 3 | name = "levelTry" | 
|---|
| [10006] | 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("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/Starbox" | 
|---|
|  | 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 | <StaticEntity position  = "2800,0,0" mass=10000 collisionType=static > | 
|---|
|  | 50 | <attached> | 
|---|
|  | 51 | <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 /> | 
|---|
|  | 52 | </attached> | 
|---|
|  | 53 | <collisionShapes> | 
|---|
|  | 54 | <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes --> | 
|---|
|  | 55 | <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 /> | 
|---|
|  | 56 | <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 /> | 
|---|
|  | 57 | <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections --> | 
|---|
|  | 58 | <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 /> | 
|---|
|  | 59 | <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 /> | 
|---|
|  | 60 | <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower --> | 
|---|
|  | 61 | <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 /> | 
|---|
|  | 62 | <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 /> | 
|---|
|  | 63 | <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one--> | 
|---|
|  | 64 | <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs --> | 
|---|
|  | 65 | <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 /> | 
|---|
|  | 66 | <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 /> | 
|---|
|  | 67 | <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs --> | 
|---|
|  | 68 | <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 /> | 
|---|
|  | 69 | <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 /> | 
|---|
|  | 70 | </collisionShapes> | 
|---|
|  | 71 | </StaticEntity> | 
|---|
|  | 72 |  | 
|---|
|  | 73 |  | 
|---|
| [10059] | 74 | <Billboard position="3500,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=10 /> | 
|---|
|  | 75 | <DistanceTrigger position="3500,0,0" distance="200" target="Pawn" | 
|---|
| [10026] | 76 | beaconMode="exclude" targetname="bcnDestroyer" name="takeControl" | 
|---|
| [10006] | 77 | /> | 
|---|
|  | 78 |  | 
|---|
|  | 79 |  | 
|---|
| [10026] | 80 | <!-- ControllerDirector waits for the event takeControl to attach a new Controller --> | 
|---|
| [10024] | 81 | <ControllerDirector position="0,0,0"> | 
|---|
| [10006] | 82 | <events> | 
|---|
| [10035] | 83 | <takeControl> | 
|---|
| [10026] | 84 | <EventListener event="takeControl" /> | 
|---|
| [10035] | 85 | </takeControl> | 
|---|
| [10006] | 86 |  | 
|---|
|  | 87 | </events> | 
|---|
|  | 88 |  | 
|---|
| [10024] | 89 | </ControllerDirector> | 
|---|
| [10006] | 90 |  | 
|---|
| [10037] | 91 | <!-- --> | 
|---|
|  | 92 | <ScriptController position="0,0,1"> | 
|---|
| [10006] | 93 |  | 
|---|
| [10037] | 94 |  | 
|---|
|  | 95 | </ScriptController> | 
|---|
|  | 96 |  | 
|---|
|  | 97 |  | 
|---|
| [10006] | 98 | <!-- FPS Player as destination of the dock --> | 
|---|
|  | 99 | <FpsPlayer template = "fps" radarname = "First Person Player" position = "0,-19900,0" > | 
|---|
|  | 100 | <attached> | 
|---|
|  | 101 | <DockingTarget name="spaceShip" /> | 
|---|
|  | 102 | <DistanceTriggerBeacon name="bcnDestroyer" /> | 
|---|
|  | 103 | <DockingTarget name="destroyer" /> | 
|---|
|  | 104 | </attached> | 
|---|
|  | 105 | </FpsPlayer> | 
|---|
|  | 106 |  | 
|---|
|  | 107 |  | 
|---|
|  | 108 | <!-- Cube as test SpaceStation | 
|---|
|  | 109 |  | 
|---|
|  | 110 | 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. | 
|---|
|  | 111 | 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. | 
|---|
|  | 112 |  | 
|---|
|  | 113 | --> | 
|---|
|  | 114 | <StaticEntity position="0,-20000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 > | 
|---|
|  | 115 | <attached> | 
|---|
|  | 116 | <Model position="0,0,0" mesh="crate.mesh" scale3D="80,80,5" /> | 
|---|
|  | 117 | </attached> | 
|---|
|  | 118 | <collisionShapes> | 
|---|
|  | 119 | <BoxCollisionShape position="0,0,0" halfExtents="400,400,25" /> | 
|---|
|  | 120 | </collisionShapes> | 
|---|
|  | 121 | </StaticEntity> | 
|---|
|  | 122 |  | 
|---|
|  | 123 | <!-- Homogenous gravitationfield to simulate local gravity (activating the normal gravity will affect the spaceship terribly) --> | 
|---|
|  | 124 | <ForceField position="0,-20000,0" mode="homogen" diameter="2000" forcedirection = "0,-500,0" /> | 
|---|
|  | 125 |  | 
|---|
|  | 126 |  | 
|---|
|  | 127 | <!-- Some more stuff --> | 
|---|
|  | 128 |  | 
|---|
|  | 129 | <!-- triple large belt around the planet  --> | 
|---|
|  | 130 | <?lua | 
|---|
|  | 131 | dofile("includes/asteroidField.lua") | 
|---|
|  | 132 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1) | 
|---|
|  | 133 | ?> | 
|---|
|  | 134 | <?lua | 
|---|
|  | 135 | dofile("includes/asteroidField.lua") | 
|---|
|  | 136 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1) | 
|---|
|  | 137 | ?> | 
|---|
|  | 138 | <?lua | 
|---|
|  | 139 | dofile("includes/asteroidField.lua") | 
|---|
|  | 140 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1) | 
|---|
|  | 141 | ?> | 
|---|
|  | 142 |  | 
|---|
|  | 143 | <Planet | 
|---|
|  | 144 | position="15000,0,-1000" | 
|---|
|  | 145 | scale="5000" | 
|---|
|  | 146 | collisionType="dynamic" | 
|---|
|  | 147 | linearDamping="0.8" | 
|---|
|  | 148 | angularDamping="0" | 
|---|
|  | 149 | mass="10000000" | 
|---|
|  | 150 | pitch="0" | 
|---|
|  | 151 | mesh="planets/ganymede.mesh" | 
|---|
|  | 152 | atmosphere="atmosphere1" | 
|---|
|  | 153 | rotationaxis="1,0,0" | 
|---|
|  | 154 | rotationrate="1.0" | 
|---|
|  | 155 | atmospheresize="80.0f" | 
|---|
|  | 156 | imagesize="1024.0f" | 
|---|
|  | 157 | collisiondamage = 2 | 
|---|
|  | 158 | enablecollisiondamage = true | 
|---|
|  | 159 | > | 
|---|
|  | 160 | <attached> | 
|---|
|  | 161 | <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> | 
|---|
|  | 162 | </attached> | 
|---|
|  | 163 | <collisionShapes> | 
|---|
|  | 164 | <SphereCollisionShape radius="5000" position="0,0,0" /> | 
|---|
|  | 165 | </collisionShapes> | 
|---|
|  | 166 | </Planet> | 
|---|
|  | 167 |  | 
|---|
|  | 168 | </Scene> | 
|---|
|  | 169 |  | 
|---|
|  | 170 | </Level> | 
|---|
|  | 171 |  | 
|---|