[7285] | 1 | <Template name=spaceshipswallow> |
---|
| 2 | <SpaceShip |
---|
| 3 | hudtemplate = spaceshiphud |
---|
| 4 | camerapositiontemplate = spaceshipswallowcameras |
---|
| 5 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
| 6 | spawnparticleduration = 3 |
---|
| 7 | explosionchunks = 6 |
---|
| 8 | |
---|
| 9 | health = 100 |
---|
| 10 | maxhealth = 200 |
---|
| 11 | initialhealth = 100 |
---|
| 12 | |
---|
| 13 | primaryThrust = 600; |
---|
| 14 | auxilaryThrust = 30; |
---|
| 15 | rotationThrust = 25; |
---|
| 16 | |
---|
| 17 | collisionType = "dynamic" |
---|
| 18 | mass = 100 |
---|
| 19 | linearDamping = 0.7 |
---|
| 20 | angularDamping = 0.9999999 |
---|
| 21 | > |
---|
[8426] | 22 | <engines> |
---|
| 23 | <MultiStateEngine position=" 0, 0, 0" template=spaceshipswallowengine /> |
---|
| 24 | </engines> |
---|
[7285] | 25 | <attached> |
---|
| 26 | <Model position="0,0,0" scale=2 yaw=90 pitch=-90 roll=0 mesh="swallow_mat.mesh" /> |
---|
| 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 | <?lua |
---|
[7679] | 37 | include("includes/weaponSettingsSwallow.oxi") |
---|
[7285] | 38 | ?> |
---|
| 39 | </SpaceShip> |
---|
| 40 | </Template> |
---|
| 41 | |
---|
| 42 | <Template name=spaceshipswallowcameras defaults=0> |
---|
| 43 | <SpaceShip> |
---|
| 44 | <camerapositions> |
---|
| 45 | <CameraPosition position="0,25,85" drag=true mouselook=true /> |
---|
| 46 | <CameraPosition position="0,40,140" drag=true mouselook=true /> |
---|
| 47 | <CameraPosition position="0,50,160" drag=true mouselook=true /> |
---|
| 48 | </camerapositions> |
---|
| 49 | </SpaceShip> |
---|
| 50 | </Template> |
---|
| 51 | |
---|
| 52 | <Template name=spaceshipswallowengine baseclass=MultiStateEngine> |
---|
| 53 | <MultiStateEngine |
---|
| 54 | boostfactor = 2 |
---|
| 55 | |
---|
| 56 | speedfront = 600 |
---|
| 57 | speedback = 60 |
---|
| 58 | speedleftright = 60 |
---|
| 59 | speedupdown = 60 |
---|
| 60 | |
---|
| 61 | accelerationfront = 700 |
---|
| 62 | accelerationbrake = 300 |
---|
| 63 | accelerationback = 100 |
---|
| 64 | accelerationleftright = 120 |
---|
| 65 | accelerationupdown = 120 |
---|
| 66 | > |
---|
| 67 | <EffectContainer condition="normal or boost"> |
---|
| 68 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 69 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 70 | <Backlight mainstate=activity active=false scale=0.023 name=bltest position=" 2.1, 1.66, 23.8" colour="0.5, 0.15, 0.0, 1.0" width=40 length=10 lifetime=1 elements=30 trailmaterial="Trail/backlighttrailzwei" turnontime=1 turnofftime=500000 material="Examples/Flaredrei" /> |
---|
| 71 | <Backlight mainstate=activity active=false scale=0.023 name=bltest position="-2.1, 1.66, 23.8" colour="0.5, 0.15, 0.0, 1.0" width=40 length=10 lifetime=1 elements=30 trailmaterial="Trail/backlighttrailzwei" turnontime=1 turnofftime=500000 material="Examples/Flaredrei" /> |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | </EffectContainer> |
---|
| 75 | <EffectContainer condition="boost"> |
---|
| 76 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
| 77 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
| 78 | </EffectContainer> |
---|
| 79 | <EffectContainer condition="not idle"> |
---|
| 80 | <FadingBillboard mainstate=activity active=false scale=0.4 position="6.6, 0, 22" colour="0, 0.6, 0.85, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=10000 /> |
---|
| 81 | <FadingBillboard mainstate=activity active=false scale=0.4 position="-6.9, 0, 22" colour="0, 0.6, 0.85, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=10000/> |
---|
| 82 | </EffectContainer> |
---|
| 83 | <EffectContainer condition="brake"> |
---|
| 84 | <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="1.0, 1.0, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 85 | <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="1.0, 1.0, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 86 | </EffectContainer> |
---|
| 87 | </MultiStateEngine> |
---|
| 88 | </Template> |
---|
| 89 | |
---|