[7129] | 1 | <Template name=spaceshipswallow> |
---|
| 2 | <SpaceShip |
---|
| 3 | hudtemplate = spaceshiphud |
---|
| 4 | camerapositiontemplate = spaceshipswallowcameras |
---|
| 5 | engine = spaceshipswallowengine |
---|
| 6 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
| 7 | spawnparticleduration = 3 |
---|
| 8 | explosionchunks = 6 |
---|
| 9 | |
---|
| 10 | health = 100 |
---|
| 11 | maxhealth = 200 |
---|
| 12 | initialhealth = 100 |
---|
| 13 | |
---|
| 14 | primaryThrust = 100; |
---|
| 15 | auxilaryThrust = 30; |
---|
| 16 | rotationThrust = 25; |
---|
| 17 | |
---|
| 18 | collisionType = "dynamic" |
---|
| 19 | mass = 100 |
---|
| 20 | linearDamping = 0.7 |
---|
| 21 | angularDamping = 0.9999999 |
---|
| 22 | > |
---|
| 23 | <attached> |
---|
| 24 | <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=2 mesh="swallow_mat.mesh" /> |
---|
| 25 | <BlinkingBillboard position=" 24.2,0.9,-11.5" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 /> |
---|
| 26 | <BlinkingBillboard position="-24.2,0.9,-11.5" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 phase="90"/> |
---|
| 27 | </attached> |
---|
| 28 | <collisionShapes> |
---|
| 29 | <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" /> |
---|
| 30 | <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
| 31 | <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
| 32 | <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" /> |
---|
| 33 | <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" /> |
---|
| 34 | <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" /> |
---|
| 35 | </collisionShapes> |
---|
| 36 | |
---|
| 37 | <?lua |
---|
| 38 | include("includes/weaponsettings_swallow.oxi") |
---|
| 39 | ?> |
---|
| 40 | </SpaceShip> |
---|
| 41 | </Template> |
---|
| 42 | |
---|
| 43 | <Template name=spaceshipswallowcameras defaults=0> |
---|
| 44 | <SpaceShip> |
---|
| 45 | <camerapositions> |
---|
| 46 | <CameraPosition position="0,10, 60"drag=true mouselook=true /> |
---|
| 47 | <CameraPosition position="0,30, 120" drag=true mouselook=true /> |
---|
| 48 | <CameraPosition position="0,50,180" drag=true mouselook=true /> |
---|
| 49 | <CameraPosition position="0,80,10" pitch="-80" drag=true mouselook=true /> |
---|
| 50 | </camerapositions> |
---|
| 51 | </SpaceShip> |
---|
| 52 | </Template> |
---|
| 53 | |
---|
| 54 | <Template name=spaceshipswallowengine baseclass=MultiStateEngine> |
---|
| 55 | <MultiStateEngine |
---|
| 56 | boostfactor = 2 |
---|
| 57 | |
---|
| 58 | speedfront = 150 |
---|
| 59 | speedback = 50 |
---|
| 60 | speedleftright = 50 |
---|
| 61 | speedupdown = 50 |
---|
| 62 | |
---|
| 63 | accelerationfront = 500 |
---|
| 64 | accelerationbrake = 500 |
---|
| 65 | accelerationback = 125 |
---|
| 66 | accelerationleftright = 125 |
---|
| 67 | accelerationupdown = 125 |
---|
| 68 | > |
---|
| 69 | |
---|
| 70 | <EffectContainer condition="normal or boost"> |
---|
| 71 | <Backlight mainstate=activity active=false scale=0.2 name=bltest position=" 7, 1, 22.2" colour="1, 0.5, 0.2, 0.4" width=20 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 72 | <Backlight mainstate=activity active=false scale=0.2 name=bltest position="-7, 1, 22.2" colour="1, 0.5, 0.2, 0.4" width=20 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 73 | </EffectContainer> |
---|
| 74 | <EffectContainer condition="boost"> |
---|
| 75 | <Backlight mainstate=activity active=false scale=0.2 name=bltest position=" 2, 1, 23.2" colour="1, 0.5, 0.2, 1" width=30 length=1600 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 76 | <Backlight mainstate=activity active=false scale=0.2 name=bltest position=" -2, 1, 23.2" colour="1, 0.5, 0.2, 1" width=30 length=1600 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 77 | </EffectContainer> |
---|
| 78 | <EffectContainer condition="brake"> |
---|
| 79 | <FadingBillboard mainstate=activity active=false scale=0.1 position=" 4.4, -5.5, 5" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 80 | <FadingBillboard mainstate=activity active=false scale=0.1 position="-4.4, -5.5, 5" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 81 | </EffectContainer> |
---|
| 82 | </MultiStateEngine> |
---|
| 83 | </Template> |
---|