[9714] | 1 | <!-- --> |
---|
| 2 | <LevelInfo |
---|
| 3 | name = "Docking to a Space Station" |
---|
| 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") |
---|
[9715] | 23 | include("templates/FPS.oxt") |
---|
[9714] | 24 | ?> |
---|
| 25 | |
---|
| 26 | <Level |
---|
| 27 | gametype = Deathmatch |
---|
| 28 | > |
---|
| 29 | <templates> |
---|
| 30 | <Template link=lodtemplate_default /> |
---|
| 31 | </templates> |
---|
| 32 | |
---|
| 33 | <Scene |
---|
[9820] | 34 | ambientlight = "0.5, 0.5, 0.5" |
---|
[9715] | 35 | skybox = "Orxonox/Starbox" |
---|
[9745] | 36 | negativeWorldRange = "-100000, -100000, -100000" |
---|
| 37 | positiveWorldRange = " 100000, 100000, 100000" |
---|
| 38 | gravity = "0,0,0" |
---|
| 39 | hasPhysics = true |
---|
[9715] | 40 | > |
---|
[9745] | 41 | |
---|
[9714] | 42 | <?lua |
---|
| 43 | include("includes/pickups.oxi") |
---|
| 44 | ?> |
---|
| 45 | |
---|
[9820] | 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"/> |
---|
[9714] | 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 | |
---|
[9857] | 73 | <!-- Docking --> |
---|
[9714] | 74 | <Dock position="2830,20,50" roll=0 yaw=0 > |
---|
| 75 | <animations> |
---|
| 76 | <MoveToDockingTarget target="destroyer" /> |
---|
| 77 | </animations> |
---|
| 78 | <effects> |
---|
| 79 | <DockToShip target="spaceShip" /> |
---|
| 80 | </effects> |
---|
| 81 | <events> |
---|
| 82 | <execute> |
---|
| 83 | <EventListener event="dockMe" /> |
---|
| 84 | </execute> |
---|
[9857] | 85 | |
---|
| 86 | <undocking> |
---|
| 87 | <EventListener event="undockMe" /> |
---|
| 88 | </undocking> |
---|
[9789] | 89 | |
---|
[9714] | 90 | <activity> |
---|
| 91 | <EventListener event=notGameEnd /> |
---|
| 92 | </activity> |
---|
| 93 | </events> |
---|
| 94 | <attached> |
---|
[9789] | 95 | <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 /> |
---|
[9714] | 96 | <DistanceTrigger position="0,0,0" distance="200" target="Pawn" |
---|
| 97 | beaconMode="exclude" targetname="bcnDestroyer" name="dockMe" |
---|
| 98 | /> |
---|
[9857] | 99 | |
---|
| 100 | <Billboard position="-2730,-19970,50" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 /> |
---|
| 101 | <DistanceTrigger position="-2730,-19970,50" distance="50" target="Pawn" |
---|
| 102 | beaconMode="identify" targetname="bcnDestroyer" name="undockMe" |
---|
| 103 | /> |
---|
[9714] | 104 | </attached> |
---|
| 105 | |
---|
| 106 | </Dock> |
---|
[9715] | 107 | |
---|
[9857] | 108 | <FpsPlayer template = "fps" radarname = "First Person Player" position = "0,-19900,0" > |
---|
[9714] | 109 | <attached> |
---|
| 110 | <DockingTarget name="spaceShip" /> |
---|
| 111 | <DistanceTriggerBeacon name="bcnDestroyer" /> |
---|
| 112 | <DockingTarget name="destroyer" /> |
---|
| 113 | </attached> |
---|
[9715] | 114 | </FpsPlayer> |
---|
[9714] | 115 | |
---|
[9776] | 116 | <!-- Wuerfel --> |
---|
| 117 | |
---|
[9857] | 118 | <StaticEntity position="0,-20000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 > |
---|
[9776] | 119 | <attached> |
---|
[9857] | 120 | <Model position="0,0,0" mesh="crate.mesh" scale3D="80,80,5" /> |
---|
[9776] | 121 | </attached> |
---|
| 122 | <collisionShapes> |
---|
[9857] | 123 | <BoxCollisionShape position="0,0,0" halfExtents="400,400,25" /> |
---|
[9776] | 124 | </collisionShapes> |
---|
| 125 | </StaticEntity> |
---|
| 126 | |
---|
| 127 | <!-- Schwerkraftfeld --> |
---|
| 128 | |
---|
[9857] | 129 | <ForceField position="0,-20000,0" mode="homogen" diameter="2000" forcedirection = "0,-400,0" /> |
---|
[9776] | 130 | |
---|
[9820] | 131 | <!-- Rest --> |
---|
[9776] | 132 | |
---|
[9714] | 133 | <!-- triple large belt around the planet --> |
---|
| 134 | <?lua |
---|
| 135 | dofile("includes/asteroidField.lua") |
---|
| 136 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1) |
---|
| 137 | ?> |
---|
| 138 | <?lua |
---|
| 139 | dofile("includes/asteroidField.lua") |
---|
| 140 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1) |
---|
| 141 | ?> |
---|
| 142 | <?lua |
---|
| 143 | dofile("includes/asteroidField.lua") |
---|
| 144 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1) |
---|
| 145 | ?> |
---|
| 146 | |
---|
| 147 | <Planet |
---|
| 148 | position="15000,0,-1000" |
---|
| 149 | scale="5000" |
---|
| 150 | collisionType="dynamic" |
---|
| 151 | linearDamping="0.8" |
---|
| 152 | angularDamping="0" |
---|
| 153 | mass="10000000" |
---|
| 154 | pitch="0" |
---|
| 155 | mesh="planets/ganymede.mesh" |
---|
| 156 | atmosphere="atmosphere1" |
---|
| 157 | rotationaxis="1,0,0" |
---|
| 158 | rotationrate="1.0" |
---|
| 159 | atmospheresize="80.0f" |
---|
| 160 | imagesize="1024.0f" |
---|
| 161 | collisiondamage = 2 |
---|
| 162 | enablecollisiondamage = true |
---|
| 163 | > |
---|
| 164 | <attached> |
---|
| 165 | <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> |
---|
| 166 | </attached> |
---|
| 167 | <collisionShapes> |
---|
| 168 | <SphereCollisionShape radius="5000" position="0,0,0" /> |
---|
| 169 | </collisionShapes> |
---|
| 170 | </Planet> |
---|
| 171 | |
---|
| 172 | </Scene> |
---|
[9745] | 173 | |
---|
[9714] | 174 | </Level> |
---|
| 175 | |
---|