| [5528] | 1 | <Template name=spaceshippirate> | 
|---|
 | 2 |   <SpaceShip | 
|---|
 | 3 |    hudtemplate            = spaceshiphud | 
|---|
 | 4 |    camerapositiontemplate = spaceshippiratecameras | 
|---|
 | 5 |    engine                 = spaceshippirateengine | 
|---|
 | 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=4 mesh="pirate.mesh" /> | 
|---|
 | 25 |       <BlinkingBillboard position=" 12.7,-3.8,0" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 /> | 
|---|
 | 26 |       <BlinkingBillboard position="-12.7,-3.8,0" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 phase="90"/> | 
|---|
 | 27 |       <BlinkingBillboard position=" 8.7,-0.5,2.5" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 phase="30"/> | 
|---|
 | 28 |       <BlinkingBillboard position="-8.7,-0.5,2.5" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 phase="60"/> | 
|---|
 | 29 |     </attached> | 
|---|
 | 30 |     <collisionShapes> | 
|---|
 | 31 |       <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" /> | 
|---|
 | 32 |       <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" /> | 
|---|
 | 33 |       <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" /> | 
|---|
 | 34 |       <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" /> | 
|---|
 | 35 |       <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" /> | 
|---|
 | 36 |       <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" /> | 
|---|
 | 37 |     </collisionShapes> | 
|---|
 | 38 |  | 
|---|
 | 39 | <?lua | 
|---|
| [5654] | 40 |   include("includes/weaponsettings_pirate.oxi") | 
|---|
| [5528] | 41 | ?> | 
|---|
 | 42 |   </SpaceShip> | 
|---|
 | 43 | </Template> | 
|---|
 | 44 |  | 
|---|
 | 45 | <Template name=spaceshippiratecameras defaults=0> | 
|---|
 | 46 |   <SpaceShip> | 
|---|
 | 47 |     <camerapositions> | 
|---|
 | 48 |       <CameraPosition position="0,8, 60" drag=true mouselook=true /> | 
|---|
 | 49 |       <CameraPosition position="0,16, 120" drag=true mouselook=true /> | 
|---|
 | 50 |       <CameraPosition position="0,24,180" drag=true mouselook=true /> | 
|---|
 | 51 |       <CameraPosition position="0,60,10" pitch="-80" drag=true mouselook=true /> | 
|---|
 | 52 |     </camerapositions> | 
|---|
 | 53 |   </SpaceShip> | 
|---|
 | 54 | </Template> | 
|---|
 | 55 |  | 
|---|
 | 56 | <Template name=spaceshippirateengine baseclass=MultiStateEngine> | 
|---|
 | 57 |   <MultiStateEngine | 
|---|
 | 58 |    boostfactor    = 2 | 
|---|
 | 59 |  | 
|---|
 | 60 |    speedfront     = 150 | 
|---|
 | 61 |    speedback      =  50 | 
|---|
 | 62 |    speedleftright =  50 | 
|---|
 | 63 |    speedupdown    =  50 | 
|---|
 | 64 |  | 
|---|
 | 65 |    accelerationfront     = 500 | 
|---|
 | 66 |    accelerationbrake     = 500 | 
|---|
 | 67 |    accelerationback      =  125 | 
|---|
 | 68 |    accelerationleftright =  125 | 
|---|
 | 69 |    accelerationupdown    =  125 | 
|---|
 | 70 |   > | 
|---|
| [7163] | 71 |     <EffectContainer condition="not idle"> | 
|---|
| [5528] | 72 |       <FadingBillboard mainstate=activity active=false scale=0.02 position=" 1.3, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> | 
|---|
 | 73 |       <FadingBillboard mainstate=activity active=false scale=0.02 position=" 0, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> | 
|---|
 | 74 |       <FadingBillboard mainstate=activity active=false scale=0.02 position="-1.3, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> | 
|---|
| [7163] | 75 |     </EffectContainer> | 
|---|
 | 76 |     <EffectContainer condition="normal or boost"> | 
|---|
| [5528] | 77 |       <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 13, -4,  9.5" colour="1.0, 0.65, 0.2, 1.0" width=8 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> | 
|---|
 | 78 |       <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-13, -4,  9.5" colour="1.0, 0.65, 0.2, 1.0" width=8 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> | 
|---|
| [7163] | 79 |     </EffectContainer> | 
|---|
 | 80 |     <EffectContainer condition="boost"> | 
|---|
| [5528] | 81 |       <Backlight mainstate=activity active=false scale=0.4 name=bltest position="  0,  5, 15.5" colour="1.0, 0.65, 0.2, 1.0" width=16 length=1600 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> | 
|---|
| [7163] | 82 |     </EffectContainer> | 
|---|
 | 83 |     <EffectContainer condition="brake"> | 
|---|
| [5528] | 84 |       <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 /> | 
|---|
 | 85 |       <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 /> | 
|---|
| [7163] | 86 |     </EffectContainer> | 
|---|
| [5528] | 87 |   </MultiStateEngine> | 
|---|
 | 88 | </Template> | 
|---|