[6929] | 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 = 600; |
---|
| 15 | auxilaryThrust = 30; |
---|
| 16 | rotationThrust = 25; |
---|
| 17 | |
---|
| 18 | collisionType = "dynamic" |
---|
| 19 | mass = 100 |
---|
| 20 | linearDamping = 0.7 |
---|
| 21 | angularDamping = 0.9999999 |
---|
| 22 | > |
---|
| 23 | |
---|
| 24 | <attached> |
---|
| 25 | <Model position="0,0,0" scale=2 yaw=90 pitch=-90 roll=0 mesh="swallow_mat.mesh" /> |
---|
| 26 | </attached> |
---|
| 27 | <collisionShapes> |
---|
| 28 | <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" /> |
---|
| 29 | <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
| 30 | <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
| 31 | <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" /> |
---|
| 32 | <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" /> |
---|
| 33 | <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" /> |
---|
| 34 | </collisionShapes> |
---|
| 35 | <?lua |
---|
| 36 | include("includes/weaponsettings_swallow.oxi") |
---|
| 37 | ?> |
---|
| 38 | </SpaceShip> |
---|
| 39 | </Template> |
---|
| 40 | |
---|
| 41 | <Template name=spaceshipswallowcameras defaults=0> |
---|
| 42 | <SpaceShip> |
---|
| 43 | <camerapositions> |
---|
| 44 | <CameraPosition position="0,20,80" drag=true mouselook=true /> |
---|
| 45 | <CameraPosition position="0,40,160" drag=true mouselook=true /> |
---|
| 46 | <CameraPosition position="0,50,200" drag=true mouselook=true /> |
---|
| 47 | </camerapositions> |
---|
| 48 | </SpaceShip> |
---|
| 49 | </Template> |
---|
| 50 | |
---|
| 51 | <Template name=spaceshipswallowengine baseclass=MultiStateEngine> |
---|
| 52 | <MultiStateEngine |
---|
| 53 | boostfactor = 2 |
---|
| 54 | |
---|
| 55 | speedfront = 600 |
---|
| 56 | speedback = 60 |
---|
| 57 | speedleftright = 60 |
---|
| 58 | speedupdown = 60 |
---|
| 59 | |
---|
| 60 | accelerationfront = 700 |
---|
| 61 | accelerationbrake = 300 |
---|
| 62 | accelerationback = 100 |
---|
| 63 | accelerationleftright = 120 |
---|
| 64 | accelerationupdown = 120 |
---|
| 65 | > |
---|
| 66 | <EffectContainer condition="normal or boost"> |
---|
| 67 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.6, 0, 22" colour="0.0, 0.0, 0.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 68 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.6, 3, 22" colour="0.0, 0.0, 0.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 69 | </EffectContainer> |
---|
| 70 | <EffectContainer condition="boost"> |
---|
| 71 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.6, 0, 22" colour="0.0, 0.0, 0.0, 0.0" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
| 72 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.6, 0, 22" colour="0.0, 0.0, 0.0, 0.0" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
| 73 | </EffectContainer> |
---|
| 74 | <EffectContainer condition="not idle"> |
---|
| 75 | <Backlight mainstate=activity active=false scale=0.4 position="6.6, 0, 22" colour="1, 1, 1, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 76 | <Backlight mainstate=activity active=false scale=0.4 position="-6.6, 0, 22" colour="1, 1, 1, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 77 | </EffectContainer> |
---|
| 78 | <EffectContainer condition="brake"> |
---|
| 79 | <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.2, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 80 | <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.2, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 81 | </EffectContainer> |
---|
| 82 | </MultiStateEngine> |
---|
| 83 | </Template> |
---|
| 84 | |
---|