// ------------------------------------------------------ Naming ------------------------------------------------------
Name HMS Coventry D118
ShortName hmsCoventry1982
ItemID 52482
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon hmsCoventry
Model rainfire.Type42Batch1
Texture SkinCoventry
//Third Person Camera Distance
CameraDistance 50.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 0.8
MaxNegativeThrottle 0.35
ThrottleDecay 0.0
//Steering modifiers
TurnLeftSpeed 0.2
TurnRightSpeed 0.2
Drag 1.2
//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.0
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
NumWheels 4
WheelPosition 0 -310 -9 -30
WheelPosition 1 -310 -9 30
WheelPosition 2 310 -9 16
WheelPosition 3 310 -9 -16
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive true
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Shell
Secondary Gun
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 100
ShootDelaySecondary 3
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 190 41 8 core 
ShootPointPrimary 190 41 -8 core 
ShootPointSecondary 86 51 31 core olerikon20mm
ShootPointSecondary 86 51 -31 core olerikon20mm
ShootParticlesPrimary hugeexplosion 0.7 0 0
ShootParticlesPrimary explode 1.2 0 0
ShootParticlesPrimary cloud 1.3 0 0
ShootParticlesSecondary explode 1.2 0 0
ShootParticlesSecondary cloud 1.3 0 0
------- Inventory ------------------------------------------------------
CargoSlots 8
BombSlots 0
MissileSlots 1
AllowAllAmmo False
AddAmmo gws30SeaDart
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 7800
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver 102 81 0 -360 360 -20 85
Passengers 4
Passenger 1 235 36 0 turret1 -360 360 -10 60 4.5inMark8Mod0 MountA
GunOrigin 1 235 26 0
Passenger 2 -86 41 -26 core -180 0 0 0 12.75inMk32SVTT PortsideTorpedoMount
GunOrigin 2 -86 31 -26
Passenger 3 -86 41 26 core 0 180 0 0 12.75inMk32SVTT StarboardTorpedoMount
GunOrigin 3 -86 31 26
Passenger 4 -294 18 0 core
helipad 4 true
PassengerAimSpeed 1 2.85 1.9 0
PassengerAimSpeed 2 1.0 0.9 0
PassengerAimSpeed 3 1.0 0.9 0
//Passenger turret sounds
PassengerTraverseSounds 1 true
PassengerTraverseSounds 2 true
PassengerTraverseSounds 3 true
//Turret 1
PassengerPitchSound 1 TurretElectric2
PassengerPitchSoundLength 1 20
PassengerYawSound 1 TurretElectric2
PassengerYawSoundLength 1 19
//Turret 2
PassengerPitchSound 2 TurretElectric3
PassengerPitchSoundLength 2 20
PassengerYawSound 2 TurretElectric3
PassengerYawSoundLength 2 19
//Turret 3
PassengerPitchSound 3 TurretElectric3
PassengerPitchSoundLength 3 20
PassengerYawSound 3 TurretElectric3
PassengerYawSoundLength 3 19
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound ModernEngine
StartSoundLength 24
EngineSound ModernEngine
EngineSoundLength 29
ShootSoundPrimary ShipMissile
ShootSoundSecondary 20mmFire
//Recipe
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 2 navalSteelSegment1000 1 navalSteelSegment500 24 blockRedstone
AddRecipeParts bulkhead 1 navalSteelSegment500
AddRecipeParts bow 1 navalSteelSegment100
AddRecipeParts stern 1 navalSteelSegment100 2 metalPropeller
AddRecipeParts superstructure 2 navalSteelSegment100
AddRecipeParts conningTower 1 navalSteelSegment100
AddRecipeParts leftTrack 2 gasTurbine
AddRecipeParts rightTrack 2 gasTurbine
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 16 white
AddDye 16 gray
//Health and collision, 3500t, 8750hp
SetupPart core 4750 -216 -30 -27 405 30 54 13
SetupPart bulkhead 1300 -225 -36 -40 420 51 80 13
SetupPart superstructure 600 -242 15 -27 260 27 54 13
SetupPart conningTower 600 20 15 -27 114 42 54 13
SetupPart bow 500 165 -33 -30 160 51 60 8
SetupPart stern 500 -333 -27 -29 106 42 60 8
SetupPart rightTrack 250 -120 -33 -30 140 32 30 13
SetupPart leftTrack 250 -120 -33 0 140 32 30 13
SetupPart turret 500 170 18 -6 12 21 12 13
SetupPart turret1 1000 229 18 -9 18 21 18 25
BulletDetection 20
ModelScale 1.2
Description Part of the inital Type 42 destroyers, she and others fought hard_at the Falklands in 1982 shooting down many Argie Skyhawks._Coventry was eventually sunk while defending the landing convoys._Displ. - 3500t | L.D. - 1973_Length - 42.67m | Beam - 4.77m | Draft - 1.4m_Spd. - 30kn | Rng. - 7400 | 4x Gas Turbines | COGAG Propulsion
Boat
PlaceableOnLand False
PlaceableOnWater True
FloatOnWater True
WheelStepHeight 0
Buoyancy 0.08
CollisionDamageEnable true
CollisionDamageThrottle 0.35
CollisionDamageTimes 40
BulletSpeed 9
BulletSpread 1
DriverAimSpeed 4 4 0
RotateWheels True
TurretOrigin 46 -72 0
//Defense
LockedOnSound LockonWarning
SoundTime 8
LockedOnSoundRange 16
//Smokepoints
AddSmokePoint [0,36,-18] [1,8,-0.05] 20 turret
AddSmokePoint [0,36,-18] [0.7,8,-0.3] 20 turret
AddSmokePoint [0,36,-18] [0.5,8,-0.5] 20 turret
AddSmokePoint [0,36,18] [1,8,0.05] 20 turret
AddSmokePoint [0,36,18] [0.7,8,0.3] 20 turret
AddSmokePoint [0,36,18] [0.5,8,0.5] 20 turret
AddSmokePoint [0,38,-12] [1,8,-0.05] 20 turret
AddSmokePoint [0,38,-12] [0.7,8,-0.3] 20 turret
AddSmokePoint [0,38,-12] [0.5,8,-0.5] 20 turret
AddSmokePoint [0,38,12] [1,8,0.05] 20 turret
AddSmokePoint [0,38,12] [0.7,8,0.3] 20 turret
AddSmokePoint [0,38,12] [0.5,8,0.5] 20 turret
//Radar shit, range in blocks and delay in ticks. Visible means if it does/doesn't have stealth, offset the lowness on screen.
hasRadar true
radarPositionOffset 25
radarRange 2800
radarRefreshDelay 20
IsExplosionWhenDestroyed true
DeathExplosionRadius 15
DeathExplosionDamageVsVehicle 1.5
DeathExplosionDamageVsLiving 50.0
DeathExplosionDamageVsPlane 1.0
//isExplosionWhenDestroyedRadius 25
//bigDeath True

//Smonkstaks

//Stage 1
AddEmitter largesmoke 1 [-25,78,0] [6,12,12] [0,0,0] 0.02 0.25 0 1 core
AddEmitter largesmoke 1 [-40,78,0] [9,12,12] [0,0,0] 0.02 0.25 0 1 core
AddEmitter largesmoke 1 [-55,77,0] [5,6,9] [0,0,0] 0.02 0.25 0 1 core

//Stage 2
AddEmitter explode 2 [-25,78,0] [6,12,12] [0,1,0] 0.25 0.55 0 1 core
AddEmitter explode 2 [-40,78,0] [9,12,12] [0,1,0] 0.25 0.55 0 1 core
AddEmitter explode 2 [-55,77,0] [5,6,9] [0,1,0] 0.25 0.55 0 1 core

//Stage 3
AddEmitter explode 2 [-25,78,0] [6,12,12] [0,2,0] 0.55 0.8 0 1 core
AddEmitter explode 2 [-40,78,0] [9,12,12] [0,2,0] 0.55 0.8 0 1 core
AddEmitter explode 2 [-55,77,0] [5,6,9] [0,2,0] 0.55 0.8 0 1 core

//Stage 4
AddEmitter explode 3 [-25,78,0] [6,12,15] [0,3,0] 0.8 1 0 1 core
AddEmitter explode 3 [-40,78,0] [9,12,15] [0,3,0] 0.8 1 0 1 core
AddEmitter explode 3 [-55,77,0] [5,9,12] [0,3,0] 0.8 1 0 1 core

//Owie
AddEmitter largesmoke 3 [-40,78,0] [15,4,12] [0,2,0] 0 1 0 0.35 core
AddEmitter flame 2 [-40,78,0] [12,3,9] [0,1,0] 0 1 0 0.15 core