[9754] | 1 | <Template name=HeavyCruiser> |
---|
| 2 | <SpaceShip |
---|
| 3 | hudtemplate = spaceshiphud |
---|
| 4 | camerapositiontemplate = heavycruisercameras |
---|
| 5 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
| 6 | spawnparticleduration = 3 |
---|
| 7 | explosionchunks = 6 |
---|
| 8 | |
---|
| 9 | health = 100 |
---|
| 10 | maxhealth = 200 |
---|
| 11 | initialhealth = 100 |
---|
| 12 | |
---|
| 13 | shieldhealth = 100 |
---|
| 14 | initialshieldhealth = 30 |
---|
| 15 | maxshieldhealth = 50 |
---|
| 16 | shieldabsorption = 0.8 |
---|
| 17 | reloadrate = 1 |
---|
| 18 | reloadwaittime = 1 |
---|
| 19 | |
---|
| 20 | primaryThrust = 30 |
---|
| 21 | auxilaryThrust = 30 |
---|
| 22 | rotationThrust = 10 |
---|
| 23 | |
---|
| 24 | lift = 1; |
---|
| 25 | stallSpeed = 220; |
---|
| 26 | |
---|
| 27 | boostPower = 30 |
---|
| 28 | boostPowerRate = 1.5 |
---|
| 29 | boostRate = 4 |
---|
| 30 | boostCooldownDuration = 10 |
---|
| 31 | |
---|
| 32 | shakeFrequency = 15 |
---|
| 33 | shakeAmplitude = 9 |
---|
| 34 | |
---|
| 35 | collisionType = "dynamic" |
---|
| 36 | mass = 10000 |
---|
| 37 | linearDamping = 0.7 |
---|
| 38 | angularDamping = 0.9999999 |
---|
| 39 | > |
---|
| 40 | <engines> |
---|
| 41 | <MultiStateEngine position="85,58,525" template=heavycruiserengine /> |
---|
| 42 | <MultiStateEngine position="-85,58,525" template=heavycruiserengine /> |
---|
| 43 | </engines> |
---|
| 44 | <attached> |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | <Model mesh="HeavyCruiser_body.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
| 48 | <Model mesh="HeavyCruiser_frontR.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
| 49 | <Model mesh="HeavyCruiser_frontL.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
| 50 | <Model mesh="HeavyCruiser_partL.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
| 51 | <Model mesh="HeavyCruiser_partR.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
| 52 | <Model mesh="HeavyCruiser_sidearmL.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
| 53 | <Model mesh="HeavyCruiser_sidearmLfront.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
| 54 | <Model mesh="HeavyCruiser_sidearmR.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
| 55 | <Model mesh="HeavyCruiser_sidearmRfront.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
| 56 | |
---|
| 57 | <!-- bay1 lights --> |
---|
| 58 | <BlinkingBillboard position="75,30,-416" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.05 frequency=0.3 phase=240 quadratic=1 /> |
---|
| 59 | <BlinkingBillboard position="-75,30,-416" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.05 frequency=0.3 phase=240 quadratic=1 /> |
---|
| 60 | <BlinkingBillboard position="74,30,-402" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.1 frequency=0.3 phase=120 quadratic=1 /> |
---|
| 61 | <BlinkingBillboard position="-74,30,-402" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.1 frequency=0.3 phase=120 quadratic=1 /> |
---|
| 62 | <BlinkingBillboard position="73,30,-388" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.15 frequency=0.3 phase=0 quadratic=1 /> |
---|
| 63 | <BlinkingBillboard position="-73,30,-388" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.15 frequency=0.3 phase=0 quadratic=1 /> |
---|
| 64 | <!-- front position lights --> |
---|
| 65 | <BlinkingBillboard position="67,-5,-240" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 /> |
---|
| 66 | <BlinkingBillboard position="-67,-5,-240" material="Examples/Flare" colour="0.7, 0, 0, 0.1" amplitude=0.3 frequency=0.15 phase=360 quadratic=1 /> |
---|
| 67 | <BlinkingBillboard position="72,51,-380" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=360 quadratic=1 /> |
---|
| 68 | <BlinkingBillboard position="-72,51,-380" material="Examples/Flare" colour="0.7, 0, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 /> |
---|
| 69 | <!-- rear position lights --> |
---|
| 70 | <BlinkingBillboard position="95,-15,483" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=360 quadratic=1 /> |
---|
| 71 | <BlinkingBillboard position="-95,-15,483" material="Examples/Flare" colour="0.7, 0, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 /> |
---|
| 72 | <BlinkingBillboard position="74,103,524" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 /> |
---|
| 73 | <BlinkingBillboard position="-74,103,524" material="Examples/Flare" colour="0.7, 0, 0, 0.1" amplitude=0.3 frequency=0.15 phase=360 quadratic=1 /> |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | <!-- <Model position="0,8,17" yaw=0 pitch=180 roll=0 scale3D="8, 10, 10" mesh="cube.mesh" /> |
---|
| 78 | <Model position="0,0,22" yaw=0 pitch=180 roll=0 scale3D="18, 2, 10" mesh="cube.mesh" /> |
---|
| 79 | <Model position="0,0,9" yaw=0 pitch=180 roll=0 scale3D="12, 2, 20" mesh="cube.mesh" /> |
---|
| 80 | <Model position="0,0,-18" yaw=0 pitch=180 roll=0 scale3D="6, 2, 18" mesh="cube.mesh" /> |
---|
| 81 | --> |
---|
| 82 | |
---|
| 83 | </attached> |
---|
| 84 | <collisionShapes> |
---|
| 85 | <BoxCollisionShape position="60,35,-310" halfExtents="13,28,60" info="body, bay1, Rwall"/> |
---|
| 86 | <BoxCollisionShape position="-60,35,-310" halfExtents="13,28,60" info="body, bay1, Lwall"/> |
---|
| 87 | <BoxCollisionShape position="0,56,-310" halfExtents="65,6,60" info="body, bay1, Twall"/> |
---|
| 88 | <BoxCollisionShape position="0,10,-310" halfExtents="65,5,60" info="body, bay1, Bwall"/> |
---|
| 89 | |
---|
| 90 | <BoxCollisionShape position="0,35,45" halfExtents="90,45,310" info="body, FC"/> |
---|
| 91 | <BoxCollisionShape position="0,-20,-60" halfExtents="60,20,65" info="body, FB"/> |
---|
| 92 | <BoxCollisionShape position="47,-20,90" halfExtents="13,11,90" info="body, bay3, Rwall"/> |
---|
| 93 | <BoxCollisionShape position="-47,-20,90" halfExtents="13,11,90" info="body, bay3, Lwall"/> |
---|
| 94 | <BoxCollisionShape position="0,-29,149" halfExtents="10,2,11" info="body, bay3, platform"/> |
---|
| 95 | <BoxCollisionShape position="0,-20,240" halfExtents="60,20,78" info="body, RB"/> |
---|
| 96 | |
---|
| 97 | <BoxCollisionShape position="103,60,420" halfExtents="18,9,64" info="body, bay2, Rextrusion"/> |
---|
| 98 | <BoxCollisionShape position="-103,60,420" halfExtents="18,9,64" info="body, bay2, Rextrusion"/> |
---|
| 99 | |
---|
| 100 | <BoxCollisionShape position="76,27,440" roll="-19" halfExtents="18,38,85" info="body, bay2, Rwall"/> |
---|
| 101 | <BoxCollisionShape position="75,71,440" roll="35" halfExtents="18,27,85" info="body, bay2, Rwall"/> |
---|
| 102 | <BoxCollisionShape position="-76,27,440" roll="19" halfExtents="18,38,85" info="body, bay2, Lwall"/> |
---|
| 103 | <BoxCollisionShape position="-75,71,440" roll="-35" halfExtents="18,27,85" info="body, bay2, Rwall"/> |
---|
| 104 | <BoxCollisionShape position="0,75,465" halfExtents="72,28,60" info="body, bay2, Twall"/> |
---|
| 105 | <BoxCollisionShape position="0,-5,465" halfExtents="85,6,60" info="body, bay2, Bwall"/> |
---|
| 106 | <BoxCollisionShape position="0,78,526" halfExtents="43,17,5" info="body, bay2, Twall"/> |
---|
| 107 | </collisionShapes> |
---|
| 108 | <?lua |
---|
| 109 | include("../includes/weaponSettingsHeavyCruiser.oxi") |
---|
| 110 | ?> |
---|
| 111 | </SpaceShip> |
---|
| 112 | </Template> |
---|
| 113 | |
---|
| 114 | <Template name=heavycruisercameras defaults=0> |
---|
| 115 | <SpaceShip> |
---|
| 116 | <camerapositions> |
---|
| 117 | <CameraPosition position="0,200, 1000" drag=true mouselook=true /> |
---|
| 118 | <CameraPosition position="0,100, 1000" drag=true mouselook=true /> |
---|
| 119 | <CameraPosition position="0,150,600" drag=true mouselook=true /> |
---|
| 120 | <CameraPosition position="0,80,-300" drag=false mouselook=false /> |
---|
| 121 | <CameraPosition position="200,80,300" drag=false mouselook=false /> |
---|
| 122 | <CameraPosition position="0,1100,60" pitch="-90" drag=false mouselook=true /> |
---|
| 123 | </camerapositions> |
---|
| 124 | </SpaceShip> |
---|
| 125 | </Template> |
---|
| 126 | |
---|
| 127 | <Template name=heavycruiserengine baseclass=MultiStateEngine> |
---|
| 128 | <MultiStateEngine |
---|
| 129 | boostfactor = 2 |
---|
| 130 | |
---|
| 131 | speedfront = 400 |
---|
| 132 | speedback = 50 |
---|
| 133 | speedleftright = 50 |
---|
| 134 | speedupdown = 50 |
---|
| 135 | |
---|
| 136 | defEngineSndNormal = "sounds/Engine_low.ogg" |
---|
| 137 | defEngineSndBoost = "sounds/Engine_high.ogg" |
---|
| 138 | |
---|
| 139 | accelerationfront = 40 |
---|
| 140 | accelerationbrake = 10 |
---|
| 141 | accelerationback = 10 |
---|
| 142 | accelerationleftright = 10 |
---|
| 143 | accelerationupdown = 10 |
---|
| 144 | > |
---|
| 145 | <EffectContainer condition="idle"> |
---|
| 146 | <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/> |
---|
| 147 | </EffectContainer> |
---|
| 148 | <EffectContainer condition="not idle"> |
---|
| 149 | <FadingBillboard mainstate=activity active=false scale=1 position="-85,58,525" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 150 | <FadingBillboard mainstate=activity active=false scale=1 position="85,58,525" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
| 151 | </EffectContainer> |
---|
| 152 | <EffectContainer condition="normal or brake"> |
---|
| 153 | </EffectContainer> |
---|
| 154 | <EffectContainer condition="normal or boost"> |
---|
| 155 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position="85,58,525" colour="0.2, 0.65, 1.0, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 156 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position="-85,58,525" colour="0.2, 0.65, 1.0, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail30" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare130" /> |
---|
| 157 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position=" 2.5, 13, 26.5" colour="0.2, 0.65, 1, 0.4" width=5 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 158 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position="-2.5, 13, 26.5" colour="0.2, 0.65, 1, 0.4" width=5 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
| 159 | </EffectContainer> |
---|
| 160 | <EffectContainer condition="boost"> |
---|
| 161 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position="85,58,525" 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" /> |
---|
| 162 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position="-85,58,525" 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" /> |
---|
| 163 | </EffectContainer> |
---|
| 164 | <!-- <EffectContainer condition="brake"> |
---|
| 165 | <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 /> |
---|
| 166 | <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 /> |
---|
| 167 | <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 /> |
---|
| 168 | <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 /> |
---|
| 169 | </EffectContainer> |
---|
| 170 | --> |
---|
| 171 | </MultiStateEngine> |
---|
| 172 | </Template> |
---|