// ------------------------------------------------------ Naming ------------------------------------------------------
Name HMS Jervis (G00)
ShortName hmsJervis
ItemID 7464
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon hmsJervis
Model rainfire.Jervis
Texture SkinJervis
//Third Person Camera Distance
CameraDistance 38.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 0.9
MaxNegativeThrottle 0.4
ThrottleDecay 0.0
//Steering modifiers
TurnLeftSpeed 0.215
TurnRightSpeed 0.215
Drag 1.3
//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 -271 -9 -20
WheelPosition 1 -271 -9 20
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 Missile
Secondary Gun
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 50
ShootDelaySecondary 4
//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 32 8 9 turret
ShootPointPrimary 32 8 4 turret
ShootPointPrimary 32 8 0 turret
ShootPointPrimary 32 8 -4 turret
ShootPointPrimary 32 8 -9 turret
ShootPointSecondary 19 25 0 core 2pdrPomfPomf
ShootPointSecondary 20 22 0 core 2pdrPomfPomf
ShootPointSecondary 74 25 -21 core browningM2
ShootPointSecondary 74 22 -22 core browningM2
ShootPointSecondary 74 25 21 core browningM2
ShootPointSecondary 74 22 22 core browningM2
ReloadTimePrimary 120
------- Inventory ------------------------------------------------------
CargoSlots 8
BombSlots 0
MissileSlots 3
AllowAllAmmo False
AddAmmo 21inTorpedo
AddAmmo 533mmTorpedo
AddAmmo 533mmTorpedoSmart
AddAmmo ShittyTorpedo
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 10200
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver 80 60 0 -360 360 -25 75
Passengers 4
Passenger 1 150 40 0 turret2 -160 160 -10 40 4.7inQFMkXIITwin PassengerGun1
GunOrigin 1 150 30 0
Passenger 2 197 29 0 turret1 -160 160 -10 40 4.7inQFMkXIITwin PassengerGun2
GunOrigin 2 197 19 0
Passenger 3 -187 29 0 turret3 15 345 -10 40 4.7inQFMkXIITwin PassengerGun3
GunOrigin 3 -187 19 0
Passenger 4 -110 15 0 core -120 120 0 0 21inTorpShip PassengerGun4
GunOrigin 4 -110 5 0
PassengerAimSpeed 1 1.2 1.1 0
PassengerAimSpeed 2 1.2 1.1 0
PassengerAimSpeed 3 1.2 1.1 0
PassengerAimSpeed 4 0.6 0.6 0
//Passenger turret sounds
PassengerTraverseSounds 1 true
PassengerTraverseSounds 2 true
PassengerTraverseSounds 3 true
PassengerTraverseSounds 4 true
//Turret 1
PassengerPitchSound 1 TurretElectric3
PassengerPitchSoundLength 1 20
PassengerYawSound 1 TurretElectric3
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
//Turret 4
PassengerPitchSound 4 TurretElectric3
PassengerPitchSoundLength 4 20
PassengerYawSound 4 TurretElectric3
PassengerYawSoundLength 4 19
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound ShipEngine1
StartSoundLength 94
EngineSound ShipEngine4
EngineSoundLength 86
ShootSoundPrimary RocketFire1
ShootSoundSecondary 40mmCrappyFire
//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 1600t
AddRecipeParts core 1 navalSteelSegment1000 3 blockRedstone 2 boiler 2 steamTurbine
AddRecipeParts bow 3 navalSteelSegment100
AddRecipeParts stern 2 metalPropeller 3 navalSteelSegment100
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 16 green
AddDye 16 gray
//Health and collision 1690t, 5070hp
SetupPart core 3750 -168 -30 -27 352 36 54 60
SetupPart stern 750 -276 -29 -24 108 30 47 25
SetupPart bow 750 185 -29 -21 100 42 41 25
SetupPart turret2 600 193 15 -9 18 15 18 20
SetupPart turret1 600 146 26 -9 18 15 18 20
SetupPart turret3 600 -201 15 -9 18 15 18 20
BulletDetection 14
ModelScale 1.26
Description A British destroyer flotilla leader that survived the war with no casualties._Displ. - 1690t | L.D. - 1937_Length - 36.23m | Beam - 3.63m | Draft - 1.14m_Spd. - 36kn | Rng. - 10200 | 2x Steam Turbines | 2x Boilers
Boat
PlaceableOnLand False
PlaceableOnWater True
FloatOnWater True
WheelStepHeight 0
Buoyancy 0.08
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.35
CollisionDamageTimes 40
TurretOrigin -36.5 -6 0
//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 1600
radarVisible true
radarRefreshDelay 20
IsExplosionWhenDestroyed true
DeathExplosionRadius 15
DeathExplosionDamageVsVehicle 2.0
DeathExplosionDamageVsLiving 100.0
DeathExplosionDamageVsPlane 1.0
//isExplosionWhenDestroyedRadius 25
//bigDeath True

////Smonkstaks

//Stage 1
AddEmitter largesmoke 1 [32,53,0] [3,12,3] [0,0,0] 0.03 0.25 0 1 core
AddEmitter largesmoke 1 [24,52,0] [4,12,4] [0,0,0] 0.03 0.25 0 1 core
AddEmitter largesmoke 1 [16,51,0] [3,1,3] [0,0,0] 0.03 0.25 0 1 core

//Stage 2
AddEmitter largesmoke 2 [32,53,0] [3,12,3] [0,0,0] 0.25 0.7 0 1 core
AddEmitter largesmoke 2 [24,52,0] [4,12,4] [0,0,0] 0.25 0.7 0 1 core
AddEmitter largesmoke 2 [16,51,0] [3,12,3] [0,0,0] 0.25 0.7 0 1 core

//Stage 3
AddEmitter explode 2 [32,53,0] [3,12,3] [0,0,0] 0.7 1 0 1 core
AddEmitter explode 2 [24,52,0] [4,12,4] [0,0,0] 0.7 1 0 1 core
AddEmitter explode 2 [16,51,0] [3,12,3] [0,0,0] 0.7 1 0 1 core

//Owie 1
AddEmitter largesmoke 4 [32,53,0] [3,10,3] [-0.2,0,0] -1 1 0 0.4 core
AddEmitter largesmoke 4 [24,52,0] [4,10,4] [-0.2,0,0] -1 1 0 0.4 core
AddEmitter largesmoke 4 [16,51,0] [3,10,3] [-0.2,0,0] -1 1 0 0.4 core

//Owie 2
AddEmitter flame 2 [32,53,0] [3,10,3] [-0.2,0,0] -1 1 0 0.2 core
AddEmitter flame 2 [24,52,0] [4,10,4] [-0.2,0,0] -1 1 0 0.2 core
AddEmitter flame 2 [16,51,0] [3,10,3] [-0.2,0,0] -1 1 0 0.2 core
