[7285] | 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 |
---|
[7679] | 36 | include("includes/weaponSettingsSwallow.oxi") |
---|
[7285] | 37 | ?> |
---|
| 38 | </SpaceShip> |
---|
| 39 | </Template> |
---|
| 40 | |
---|
| 41 | <Template name=spaceshipswallowcameras defaults=0> |
---|
| 42 | <SpaceShip> |
---|
| 43 | <camerapositions> |
---|
| 44 | <CameraPosition position="0,25,85" drag=true mouselook=true /> |
---|
| 45 | <CameraPosition position="0,40,140" drag=true mouselook=true /> |
---|
| 46 | <CameraPosition position="0,50,160" 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="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" /> |
---|
| 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.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" /> |
---|
| 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 | |
---|
| 72 | |
---|
| 73 | </EffectContainer> |
---|
| 74 | <EffectContainer condition="boost"> |
---|
| 75 | <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" /> |
---|
| 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 | </EffectContainer> |
---|
| 78 | <EffectContainer condition="not idle"> |
---|
| 79 | <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 /> |
---|
| 80 | <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/> |
---|
| 81 | </EffectContainer> |
---|
| 82 | <EffectContainer condition="brake"> |
---|
| 83 | <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 /> |
---|
| 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 | </EffectContainer> |
---|
| 86 | </MultiStateEngine> |
---|
| 87 | </Template> |
---|
| 88 | |
---|