[10760] | 1 | <Template name=spaceshiphover> |
---|
[10784] | 2 | <SpaceShip |
---|
[12286] | 3 | hudtemplate = spaceshiphud |
---|
[10760] | 4 | camerapositiontemplate = spaceshiphovercameras |
---|
| 5 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
| 6 | spawnparticleduration = 3 |
---|
| 7 | explosionchunks = 6 |
---|
| 8 | |
---|
| 9 | health = 100 |
---|
| 10 | maxhealth = 200 |
---|
| 11 | initialhealth = 100 |
---|
| 12 | |
---|
| 13 | shieldhealth = 25 |
---|
| 14 | initialshieldhealth = 25 |
---|
| 15 | maxshieldhealth = 40 |
---|
| 16 | shieldabsorption = 0.6 |
---|
| 17 | reloadrate = 2 |
---|
| 18 | reloadwaittime = 0.5 |
---|
| 19 | |
---|
[11495] | 20 | primaryThrust = 200 |
---|
| 21 | auxilaryThrust = 30 |
---|
[12267] | 22 | rotationThrust = 20 |
---|
[10760] | 23 | |
---|
[11495] | 24 | jumpBoost = 90 |
---|
[10784] | 25 | |
---|
[10760] | 26 | lift = 1; |
---|
[11495] | 27 | stallSpeed = 220; |
---|
[10760] | 28 | |
---|
[12216] | 29 | boostPower = 30 |
---|
[10760] | 30 | boostPowerRate = 1 |
---|
| 31 | boostRate = 5 |
---|
| 32 | boostCooldownDuration = 10 |
---|
| 33 | |
---|
| 34 | collisionType = "dynamic" |
---|
[11495] | 35 | mass = 100 |
---|
[10784] | 36 | linearDamping = 0.2 |
---|
[10760] | 37 | angularDamping = 0.9999999 |
---|
[12299] | 38 | collisiondamage = 20 |
---|
| 39 | enablecollisiondamage = true |
---|
| 40 | |
---|
[10760] | 41 | > |
---|
| 42 | <engines> |
---|
| 43 | <MultiStateEngine position=" 0, 0, 0" template=spaceshiphoverengine /> |
---|
| 44 | </engines> |
---|
| 45 | <attached> |
---|
[11495] | 46 | <Model position="0,0,-20" mesh="hovership_body.mesh" scale="5" yaw=180/> |
---|
| 47 | <Model position="0,0,-20" mesh="hovership_engine.mesh" scale="5" yaw=180/> |
---|
| 48 | <Model position="0,0,-20" mesh="hovership_gun.mesh" scale="5" yaw=180/> |
---|
[10943] | 49 | |
---|
[10760] | 50 | </attached> |
---|
| 51 | <collisionShapes> |
---|
[11495] | 52 | <BoxCollisionShape position="0,-2 ,7" halfExtents="7, 4 ,30" /> |
---|
[10760] | 53 | </collisionShapes> |
---|
[10962] | 54 | <explosion> |
---|
| 55 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" /> |
---|
[11495] | 56 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" scale=2 /> |
---|
[10962] | 57 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" /> |
---|
[10760] | 58 | |
---|
[10962] | 59 | <ExplosionPart mesh="explosionparts/pirate_part_1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
| 60 | <ExplosionPart mesh="explosionparts/pirate_part_2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
| 61 | <ExplosionPart mesh="explosionparts/pirate_part_3.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
| 62 | <ExplosionPart mesh="explosionparts/pirate_part_4.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
| 63 | </explosion> |
---|
| 64 | |
---|
[10760] | 65 | <?lua |
---|
[12261] | 66 | include("../includes/weaponSettingsHover.oxi") |
---|
[10760] | 67 | ?> |
---|
[10784] | 68 | </SpaceShip> |
---|
[10760] | 69 | </Template> |
---|
| 70 | |
---|
| 71 | <Template name=spaceshiphovercameras defaults=0> |
---|
| 72 | <SpaceShip> |
---|
| 73 | <camerapositions> |
---|
[11495] | 74 | <CameraPosition position="0,8, 5" drag=true mouselook=true /> |
---|
| 75 | <CameraPosition position="0,8,5" yaw="180" drag=true mouselook=true /> |
---|
[10760] | 76 | </camerapositions> |
---|
| 77 | </SpaceShip> |
---|
| 78 | </Template> |
---|
| 79 | |
---|
[10784] | 80 | <Template name=spaceshiphoverengine baseclass=Engine> |
---|
[10760] | 81 | <MultiStateEngine |
---|
| 82 | boostfactor = 2 |
---|
| 83 | |
---|
[12216] | 84 | speedfront = 90 |
---|
| 85 | speedback = 90 |
---|
| 86 | speedleftright = 90 |
---|
| 87 | speedupdown = 0 |
---|
[10760] | 88 | |
---|
[12216] | 89 | accelerationfront = 500 |
---|
| 90 | accelerationbrake = 500 |
---|
| 91 | accelerationback = 500 |
---|
| 92 | accelerationleftright = 500 |
---|
| 93 | accelerationupdown = 0 |
---|
[10760] | 94 | > |
---|
| 95 | <EffectContainer condition="not idle"> |
---|
[10943] | 96 | <FadingBillboard mainstate=activity active=false scale=0.02 position=" 1.3, 0, 15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> |
---|
| 97 | <FadingBillboard mainstate=activity active=false scale=0.02 position=" 0, 0, 15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> |
---|
| 98 | <FadingBillboard mainstate=activity active=false scale=0.02 position="-1.3, 0, 15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> |
---|
[10760] | 99 | </EffectContainer> |
---|
| 100 | <EffectContainer condition="normal or boost"> |
---|
[10943] | 101 | <Backlight mainstate=activity active=false scale=0.8 name=bltest position=" 0, 0, 40" colour="1.0, 0.65, 0.2, 1.0" width=10 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 102 | |
---|
[10760] | 103 | </EffectContainer> |
---|
| 104 | <EffectContainer condition="boost"> |
---|
[10943] | 105 | <Backlight mainstate=activity active=false scale=0.8 name=bltest position=" 0, 0, 40" colour="1.0, 0.65, 0.2, 1.0" width=10 length=1600 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
[10760] | 106 | </EffectContainer> |
---|
| 107 | <EffectContainer condition="brake"> |
---|
[10943] | 108 | <FadingBillboard mainstate=activity active=false scale=0.5 position=" 0, 0, 40" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 109 | |
---|
[10760] | 110 | </EffectContainer> |
---|
| 111 | </MultiStateEngine> |
---|
| 112 | </Template> |
---|