[8137] | 1 | <LevelInfo |
---|
| 2 | name = "Transporter" |
---|
[8151] | 3 | description = "Level with a Transporter. Demostrates the docking system." |
---|
[8137] | 4 | tags = "" |
---|
| 5 | /> |
---|
| 6 | |
---|
| 7 | <?lua |
---|
| 8 | include("HUDTemplates3.oxo") |
---|
| 9 | include("stats.oxo") |
---|
| 10 | include("templates/spaceshipAssff.oxt") |
---|
| 11 | include("templates/lodInformation.oxt") |
---|
| 12 | ?> |
---|
| 13 | |
---|
| 14 | <Level |
---|
| 15 | name = "Transporter" |
---|
[8151] | 16 | description = "Docking example level" |
---|
[8137] | 17 | > |
---|
| 18 | <templates> |
---|
| 19 | <Template link=lodtemplate_default /> |
---|
| 20 | </templates> |
---|
| 21 | |
---|
| 22 | <Scene |
---|
| 23 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 24 | skybox = "Orxonox/skypanoramagen1" |
---|
| 25 | > |
---|
| 26 | |
---|
| 27 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> |
---|
| 28 | |
---|
| 29 | <?lua for i = 1, 10, 1 do ?> |
---|
| 30 | <SpawnPoint position="<?lua print(math.random() * 500 - 250) ?>,<?lua print(math.random() * 500 - 250) ?>,<?lua print(math.random() * 500 - 250) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 31 | <?lua end ?> |
---|
| 32 | |
---|
[8257] | 33 | <Dock position="-50,-100,50"> |
---|
[8197] | 34 | <effects> |
---|
[8257] | 35 | <DockToShip target="asdf" /> |
---|
[8197] | 36 | </effects> |
---|
| 37 | <events> |
---|
| 38 | <execute> |
---|
| 39 | <EventListener event="dockMe" /> |
---|
| 40 | </execute> |
---|
| 41 | </events> |
---|
| 42 | <attached> |
---|
[8206] | 43 | <DistanceTrigger position="0,0,0" distance="20" target="Pawn" beaconMode="exclude" targetname="beacon1" name="dockMe" /> |
---|
[8197] | 44 | <Billboard material="Examples/Flare" colour="1.0, 0, 0" /> |
---|
| 45 | </attached> |
---|
| 46 | </Dock> |
---|
[8257] | 47 | |
---|
| 48 | |
---|
| 49 | <SpaceShip |
---|
| 50 | hudtemplate = spaceshiphud |
---|
| 51 | camerapositiontemplate = spaceshipassffcameras |
---|
| 52 | engine = spaceshipassffengine |
---|
| 53 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
| 54 | spawnparticleduration = 3 |
---|
| 55 | explosionchunks = 6 |
---|
| 56 | |
---|
| 57 | health = 100 |
---|
| 58 | maxhealth = 200 |
---|
| 59 | initialhealth = 100 |
---|
| 60 | |
---|
| 61 | primaryThrust = 100; |
---|
| 62 | auxilaryThrust = 30; |
---|
| 63 | rotationThrust = 25; |
---|
| 64 | |
---|
| 65 | collisionType = "dynamic" |
---|
| 66 | mass = 100 |
---|
| 67 | linearDamping = 0.7 |
---|
| 68 | angularDamping = 0.9999999 |
---|
| 69 | > |
---|
| 70 | <attached> |
---|
[8206] | 71 | <DistanceTriggerBeacon name="beacon1" /> |
---|
[8257] | 72 | <DockingTarget name="asdf" /> |
---|
| 73 | |
---|
| 74 | <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" /> |
---|
| 75 | <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 /> |
---|
| 76 | <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 /> |
---|
| 77 | <DistanceTriggerBeacon name="PlayerDistanceTrigger" /> <!--added DistanceTrigger--> |
---|
| 78 | </attached> |
---|
| 79 | <collisionShapes> |
---|
| 80 | <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" /> |
---|
| 81 | <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
| 82 | <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
| 83 | <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" /> |
---|
| 84 | <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" /> |
---|
| 85 | <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" /> |
---|
| 86 | </collisionShapes> |
---|
| 87 | <?lua |
---|
| 88 | include("includes/weaponSettingsAssff.oxi") |
---|
| 89 | ?> |
---|
| 90 | </SpaceShip> |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | <!-- <Destroyer |
---|
| 94 | position = "100,150,0" |
---|
| 95 | collisionType = dynamic |
---|
| 96 | mass = 100000 |
---|
| 97 | velocity = "0,0,0" |
---|
| 98 | angularDamping = 0.9999999 |
---|
| 99 | health = 10000 |
---|
| 100 | maxhealth = 10000 |
---|
| 101 | initialhealth = 10000 |
---|
| 102 | > |
---|
| 103 | |
---|
| 104 | <attached> |
---|
| 105 | |
---|
| 106 | <DistanceTriggerBeacon name="beacon1" /> |
---|
| 107 | <DockingTarget name="asdf" /> |
---|
| 108 | |
---|
| 109 | |
---|
[8137] | 110 | <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 111 | <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 112 | <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 113 | <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 114 | <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 115 | <?lua for i = 1, 100, 1 do ?> |
---|
| 116 | <TeamSpawnPoint |
---|
| 117 | team=0 |
---|
| 118 | position="<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>" |
---|
| 119 | lookat="0,0,0" |
---|
| 120 | spawnclass=SpaceShip |
---|
| 121 | pawndesign=spaceshipassff |
---|
| 122 | /> |
---|
| 123 | <?lua end ?> |
---|
| 124 | |
---|
| 125 | <Model mesh="Carrier.mesh" scale="5" /> |
---|
| 126 | <Backlight |
---|
| 127 | mainstate=activity |
---|
| 128 | active=false |
---|
| 129 | scale=0.4 |
---|
| 130 | name=bltest |
---|
| 131 | position=" 7.6, 0, 6" |
---|
| 132 | colour="0.2, 0.65, 1.0, 1.0" |
---|
| 133 | width=15 |
---|
| 134 | length=1500 |
---|
| 135 | lifetime=2 |
---|
| 136 | elements=50 |
---|
| 137 | trailmaterial="Trail/backlighttrail" |
---|
| 138 | turnontime=1 |
---|
| 139 | turnofftime=1 |
---|
| 140 | material="Flares/ThrusterFlare1" |
---|
| 141 | /> |
---|
| 142 | <?lua for i=0,8,1 do ?> |
---|
| 143 | <BlinkingBillboard |
---|
| 144 | position="<?lua print(200-270/8*i)?> ,15,2" |
---|
| 145 | material="Examples/Flare" |
---|
| 146 | colour="1.0, 0.5, 0.3" |
---|
| 147 | phase="<?lua print(-360/8*i)?>" |
---|
| 148 | amplitude=0.1 |
---|
| 149 | frequency=0.5 |
---|
| 150 | quadratic=1 |
---|
| 151 | /> |
---|
| 152 | |
---|
| 153 | <BlinkingBillboard |
---|
| 154 | position="<?lua print(200-270/8*i)?>,-15,2" |
---|
| 155 | material="Examples/Flare" |
---|
| 156 | colour="1.0, 0.5, 0.3" |
---|
| 157 | phase="<?lua print(-360/8*i)?>" |
---|
| 158 | amplitude=0.1 |
---|
| 159 | frequency=0.5 |
---|
| 160 | quadratic=1 |
---|
| 161 | /> |
---|
| 162 | <?lua end ?> |
---|
| 163 | |
---|
| 164 | <Backlight |
---|
| 165 | scale=1 |
---|
| 166 | position=" 169, 75, -15" |
---|
| 167 | colour="1, 0.85, 0.5, 0.5" |
---|
| 168 | width=40 |
---|
| 169 | length=1000 |
---|
| 170 | lifetime=5 |
---|
| 171 | elements=15 |
---|
| 172 | trailmaterial="Trail/backlighttrail" |
---|
| 173 | material="Examples/Flare" |
---|
| 174 | /> |
---|
| 175 | <Backlight |
---|
| 176 | scale=1 |
---|
| 177 | position=" 169, -75, -15" |
---|
| 178 | colour="1, 0.85, 0.5, 0.5" |
---|
| 179 | width=40 |
---|
| 180 | length=1000 |
---|
| 181 | lifetime=5 |
---|
| 182 | elements=15 |
---|
| 183 | trailmaterial="Trail/backlighttrail" |
---|
| 184 | material="Examples/Flare" /> |
---|
| 185 | </attached> |
---|
| 186 | <collisionShapes> |
---|
| 187 | <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> |
---|
| 188 | <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> |
---|
| 189 | <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> |
---|
| 190 | <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> |
---|
| 191 | <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> |
---|
| 192 | <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> |
---|
| 193 | <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> |
---|
| 194 | </collisionShapes> |
---|
| 195 | </Destroyer> |
---|
[8257] | 196 | //--> |
---|
[8137] | 197 | |
---|
| 198 | </Scene> |
---|
| 199 | </Level> |
---|