// ------------------------------------------------------ Naming ------------------------------------------------------
Name HMS Ardent F184
ShortName hmsArdent1982
ItemID 52182
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon hmsArdent
Model rainfire.Type21
Texture SkinArdent
//Third Person Camera Distance
CameraDistance 50.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 0.84
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 -288 -9 -35
WheelPosition 1 -288 -9 35
WheelPosition 2 265 -9 14
WheelPosition 3 265 -9 -14
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 Gun
Secondary Shell
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 100
ShootDelaySecondary 50
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary True
//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 154 34 -8 conningTower exocetLauncher
ShootPointPrimary 158 34 18 superstructure exocetLauncher
ShootPointPrimary 158 34 -18 conningTower exocetLauncher
ShootPointPrimary 154 34 8 superstructure exocetLauncher
ShootPointSecondary -159 48 4 core
ShootPointSecondary -166 48 -4 core
ShootPointSecondary -159 48 -4 core 
ShootPointSecondary -166 48 4 core 
FixedPrimary true
PrimaryAngle 1 0 0
ShootParticlesPrimary hugeexplosion 0.7 0 0
ShootParticlesSecondary largeexplosion 1 0 0
ShootParticlesPrimary explode 1.2 0 0
ShootParticlesPrimary cloud 1.3 0 0
ShootParticlesSecondary largeexplosion 0.7 0 0
ShootParticlesSecondary explode 1.2 0 0
ShootParticlesSecondary cloud 1.3 0 0
------- Inventory ------------------------------------------------------
CargoSlots 6
BombSlots 0
MissileSlots 2
AllowAllAmmo False
AddAmmo gws24SeaCat
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 7400
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver 114 45 0 -360 360 -20 85
Passengers 4
Passenger 1 191 29 0 turret1 -360 360 -10 60 4.5inMark8Mod0 MountA
GunOrigin 1 191 19 0
Passenger 2 -90 26 -26 core -180 0 0 0 12.75inMk32SVTT PortsideTorpedoMount
GunOrigin 2 -90 16 -26
Passenger 3 -90 26 26 core 0 180 0 0 12.75inMk32SVTT StarboardTorpedoMount
GunOrigin 3 -90 16 26
Passenger 4 -252 12 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 RocketFire1
//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 1 navalSteelSegment1000 1 navalSteelSegment500 20 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, 2750t, 6875hp
SetupPart core 3775 -221 -30 -24 384 27 48 13
SetupPart bulkhead 600 -225 -38 -34 400 46 68 8
SetupPart superstructure 500 -180 9 -21 226 24 42 8
SetupPart conningTower 500 47 15 -24 84 33 48 8
SetupPart bow 500 174 -38 -27 124 50 54 13
SetupPart stern 500 -310 -27 -33 84 35 66 13
SetupPart rightTrack 250 -120 -33 -30 140 32 30 13
SetupPart leftTrack 250 -120 -33 0 140 32 30 13
SetupPart turret1 1000 185 9 -9 18 21 18 25
BulletDetection 20
ModelScale 1.2
Description Part of the Type 21 class of FFG, she was sunk by_Argentine Skyhawks in "Bomb Alley" in 1982._Displ. - 2750t | L.D. - 1974_Length - 39m | Beam - 4.24m | Draft - 1.93m_Spd. - 32kn | Rng. - 7400 | 4x Gas Turbines | COGOG Propulsion
Boat
PlaceableOnLand False
PlaceableOnWater True
FloatOnWater True
WheelStepHeight 0
Buoyancy 0.08
CollisionDamageEnable true
CollisionDamageThrottle 0.35
CollisionDamageTimes 40
BulletSpeed 6
BulletSpread 1
DriverAimSpeed 4 4 0
RotateWheels True
//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 [-57,60,0] [6,12,12] [0,0,0] 0.02 0.25 0 1 core
AddEmitter largesmoke 1 [-69,59,0] [9,12,12] [0,0,0] 0.02 0.25 0 1 core
AddEmitter largesmoke 1 [-81,57,0] [5,6,9] [0,0,0] 0.02 0.25 0 1 core

//Stage 2
AddEmitter explode 2 [-57,60,0] [6,12,12] [0,1,0] 0.25 0.55 0 1 core
AddEmitter explode 2 [-69,59,0] [9,12,12] [0,1,0] 0.25 0.55 0 1 core
AddEmitter explode 2 [-55,57,0] [5,6,9] [0,1,0] 0.25 0.55 0 1 core

//Stage 3
AddEmitter explode 2 [-57,60,0] [6,12,12] [0,2,0] 0.55 0.8 0 1 core
AddEmitter explode 2 [-69,59,0] [9,12,12] [0,2,0] 0.55 0.8 0 1 core
AddEmitter explode 2 [-81,57,0] [5,6,9] [0,2,0] 0.55 0.8 0 1 core

//Stage 4
AddEmitter explode 3 [-57,60,0] [6,12,15] [0,3,0] 0.8 1 0 1 core
AddEmitter explode 3 [-69,59,0] [9,12,15] [0,3,0] 0.8 1 0 1 core
AddEmitter explode 3 [-81,57,0] [5,9,12] [0,3,0] 0.8 1 0 1 core

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