[5528] | 1 | <Template name=spaceshipassff> |
---|
| 2 | <SpaceShip |
---|
| 3 | hudtemplate = spaceshiphud |
---|
| 4 | camerapositiontemplate = spaceshipassffcameras |
---|
| 5 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
| 6 | spawnparticleduration = 3 |
---|
| 7 | |
---|
| 8 | health = 100 |
---|
| 9 | maxhealth = 200 |
---|
| 10 | initialhealth = 100 |
---|
| 11 | |
---|
[8706] | 12 | shieldhealth = 30 |
---|
| 13 | initialshieldhealth = 30 |
---|
| 14 | maxshieldhealth = 50 |
---|
| 15 | shieldabsorption = 0.8 |
---|
| 16 | reloadrate = 1 |
---|
| 17 | reloadwaittime = 1 |
---|
[5528] | 18 | |
---|
[8706] | 19 | primaryThrust = 100 |
---|
| 20 | auxilaryThrust = 30 |
---|
| 21 | rotationThrust = 50 |
---|
| 22 | |
---|
| 23 | lift = 1; |
---|
| 24 | stallSpeed = 220; |
---|
| 25 | |
---|
| 26 | boostPower = 15 |
---|
| 27 | boostPowerRate = 1 |
---|
| 28 | boostRate = 5 |
---|
| 29 | boostCooldownDuration = 10 |
---|
| 30 | |
---|
| 31 | shakeFrequency = 15 |
---|
| 32 | shakeAmplitude = 9 |
---|
| 33 | |
---|
[5528] | 34 | collisionType = "dynamic" |
---|
| 35 | mass = 100 |
---|
| 36 | linearDamping = 0.7 |
---|
| 37 | angularDamping = 0.9999999 |
---|
[9939] | 38 | |
---|
| 39 | explosionSound = "sounds/Explosion2.ogg" |
---|
[5528] | 40 | > |
---|
[8706] | 41 | <engines> |
---|
| 42 | <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine /> |
---|
| 43 | <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine /> |
---|
| 44 | </engines> |
---|
[5528] | 45 | <attached> |
---|
| 46 | <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" /> |
---|
| 47 | <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 /> |
---|
| 48 | <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 /> |
---|
| 49 | </attached> |
---|
| 50 | <collisionShapes> |
---|
| 51 | <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" /> |
---|
| 52 | <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
| 53 | <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
| 54 | <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" /> |
---|
| 55 | <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" /> |
---|
| 56 | <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" /> |
---|
| 57 | </collisionShapes> |
---|
[10837] | 58 | <explosion> |
---|
| 59 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" /> |
---|
| 60 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" /> |
---|
| 61 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" /> |
---|
[10807] | 62 | |
---|
[10837] | 63 | <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" direction="0,1,0" angle=30 /> |
---|
| 64 | <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" direction="0,1,0" angle=30 /> |
---|
| 65 | <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" direction="0,1,0" angle=30 /> |
---|
| 66 | <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" direction="0,1,0" angle=30 /> |
---|
[10807] | 67 | </explosion> |
---|
[5528] | 68 | <?lua |
---|
[8858] | 69 | include("../includes/weaponSettingsAssff.oxi") |
---|
[5528] | 70 | ?> |
---|
| 71 | </SpaceShip> |
---|
| 72 | </Template> |
---|
| 73 | |
---|
| 74 | <Template name=spaceshipassffcameras defaults=0> |
---|
| 75 | <SpaceShip> |
---|
| 76 | <camerapositions> |
---|
| 77 | <CameraPosition position="0,10, 40" drag=true mouselook=true /> |
---|
| 78 | <CameraPosition position="0,20, 80" drag=true mouselook=true /> |
---|
| 79 | <CameraPosition position="0,30,120" drag=true mouselook=true /> |
---|
| 80 | </camerapositions> |
---|
| 81 | </SpaceShip> |
---|
| 82 | </Template> |
---|
| 83 | |
---|
| 84 | <Template name=spaceshipassffengine baseclass=MultiStateEngine> |
---|
| 85 | <MultiStateEngine |
---|
| 86 | boostfactor = 2 |
---|
| 87 | |
---|
| 88 | speedfront = 150 |
---|
| 89 | speedback = 50 |
---|
| 90 | speedleftright = 50 |
---|
| 91 | speedupdown = 50 |
---|
| 92 | |
---|
[6417] | 93 | defEngineSndNormal = "sounds/Engine_low.ogg" |
---|
| 94 | defEngineSndBoost = "sounds/Engine_high.ogg" |
---|
[9939] | 95 | |
---|
[5528] | 96 | accelerationfront = 500 |
---|
| 97 | accelerationbrake = 500 |
---|
| 98 | accelerationback = 125 |
---|
| 99 | accelerationleftright = 125 |
---|
| 100 | accelerationupdown = 125 |
---|
| 101 | > |
---|
[6417] | 102 | <EffectContainer condition="idle"> |
---|
[6436] | 103 | <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/> |
---|
[6417] | 104 | </EffectContainer> |
---|
| 105 | <EffectContainer condition="not idle"> |
---|
[8706] | 106 | <FadingBillboard mainstate=activity active=false scale=0.1 position="7.6, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 107 | <FadingBillboard mainstate=activity active=false scale=0.1 position="-7.6, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
[6417] | 108 | </EffectContainer> |
---|
| 109 | <EffectContainer condition="normal or brake"> |
---|
| 110 | |
---|
| 111 | </EffectContainer> |
---|
| 112 | <EffectContainer condition="normal or boost"> |
---|
[8727] | 113 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 114 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
[6417] | 115 | </EffectContainer> |
---|
| 116 | <EffectContainer condition="boost"> |
---|
[5528] | 117 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
| 118 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
[6417] | 119 | </EffectContainer> |
---|
[8706] | 120 | <!-- <EffectContainer condition="brake"> |
---|
[5528] | 121 | <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 122 | <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 123 | <FadingBillboard mainstate=activity active=false scale=0.15 position=" 8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 124 | <FadingBillboard mainstate=activity active=false scale=0.15 position="-8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 /> |
---|
[6417] | 125 | </EffectContainer> |
---|
[8706] | 126 | --> |
---|
[5528] | 127 | </MultiStateEngine> |
---|
| 128 | </Template> |
---|