// ------------------------------------------------------ Naming ------------------------------------------------------
Name HMS Roberts F40 (1943)
ShortName hmsRoberts1943
ItemID 6444
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon hmsRobertsGrey
Model rainfire.Roberts1943
Texture SkinRoberts1943Grey
//Third Person Camera Distance
CameraDistance 28.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 0.33
MaxNegativeThrottle 0.165
ThrottleDecay 0.0
//Steering modifiers
TurnLeftSpeed 0.3
TurnRightSpeed 0.3
Drag 4.0
//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 -280 -16 -26
WheelPosition 1 -280 -16 26
WheelPosition 2 280 -16 20
WheelPosition 3 280 -16 -20
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 8
ShootDelaySecondary 3
//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 -59 29 53 core 
ShootPointPrimary -63 29 53 core 
ShootPointPrimary -178 29 53 core 
ShootPointPrimary -182 29 53 core 
ShootPointPrimary -59 29 -53 core 
ShootPointPrimary -63 29 -53 core 
ShootPointPrimary -178 29 -53 core 
ShootPointPrimary -182 29 -53 core 
ShootPointSecondary 168 21 40 core olerikon20mm
ShootPointSecondary 89 21 43 core 2pdrPomfPomf
ShootPointSecondary 89 17 44 core 2pdrPomfPomf
ShootPointSecondary 20 31 46 core olerikon20mm
ShootPointSecondary -115 31 29 core olerikon20mm
ShootPointSecondary -207 33 29 core olerikon20mm
ShootPointSecondary -249 36 3 core 2pdrPomfPomf
ShootPointSecondary -249 33 3 core 2pdrPomfPomf
ShootPointSecondary -249 36 -3 core 2pdrPomfPomf
ShootPointSecondary -249 33 -3 core 2pdrPomfPomf
ShootPointSecondary 168 21 -40 core olerikon20mm
ShootPointSecondary 89 21 -43 core 2pdrPomfPomf
ShootPointSecondary 89 17 -44 core 2pdrPomfPomf
ShootPointSecondary 20 31 -46 core olerikon20mm
ShootPointSecondary -115 31 -29 core olerikon20mm
ShootPointSecondary -207 33 -29 core olerikon20mm
ShootPointSecondary -249 36 -3 core 2pdrPomfPomf
ShootPointSecondary -249 33 -3 core 2pdrPomfPomf
ShootPointSecondary -249 36 3 core 2pdrPomfPomf
ShootPointSecondary -249 33 3 core 2pdrPomfPomf
ShootParticlesPrimary largeexplode 0.6 0 0
ShootParticlesPrimary largeexplode 0.6 0 0
ShootParticlesPrimary explode 0.7 0 0
ShootParticlesPrimary cloud 0.6 0 0
ShootParticlesPrimary cloud 0.6 0 0
ShootParticlesSecondary cloud 0.2 0 0
ShootParticlesSecondary explode 0.3 0 0
------- Inventory ------------------------------------------------------
CargoSlots 8
BombSlots 0
ShellSlots 8
AllowAllAmmo False
AddAmmo 4inShellAP
AddAmmo 4inShellHE
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 4965
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver 0 72 0 -360 360 -15 85
Passengers 3
Passenger 1 50 49 0 turret1 -140 140 -5 30 15inchGunMkI TurretA
GunOrigin 1 51 36 0
Passenger 2 -138 42 0 core
Passenger 3 -27 130 0 core
PassengerAimSpeed 1 0.3 0.25 0
//Passenger turret sounds
PassengerTraverseSounds 1 true
//Turret A
PassengerPitchSound 1 shipTurret
PassengerPitchSoundLength 1 20
PassengerYawSound 1 shipTurret
PassengerYawSoundLength 1 20
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound ShipEngine3
StartSoundLength 24
EngineSound ShipEngine2
EngineSoundLength 29
ShootSoundPrimary 10cmShipGun
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
AddRecipeParts core 2 navalSteelSegment1000 4 blockRedstone
AddRecipeParts citadel 1 navalSteelSegment500
AddRecipeParts bow 2 navalSteelSegment100
AddRecipeParts stern 2 navalSteelSegment100 2 metalPropeller
AddRecipeParts belt 1 navalSteelSegment1000
AddRecipeParts leftsideArmor 1 navalSteelSegment500
AddRecipeParts rightsideArmor 1 navalSteelSegment500
AddRecipeParts torpedoBulge 1 navalSteelSegment500
AddRecipeParts torpedoBulge2 1 navalSteelSegment500
AddRecipeParts deck 1 navalSteelSegment500
AddRecipeParts superstructure 2 navalSteelSegment100
AddRecipeParts conningTower 2 navalSteelSegment100
AddRecipeParts leftTrack 2 steamTurbine 1 boiler
AddRecipeParts rightTrack 2 steamTurbine 1 boiler
//Health and collision 7973t, 23920hp
SetupPart core 5920 -204 -30 -36 340 24 72 102
SetupPart citadel 2000 -219 -33 -48 370 30 96 102
SetupPart bow 1000 207 -35 -40 100 52 80 50
SetupPart stern 1000 -303 -23 -34 48 33 68 76

SetupPart deck 3000 -255 0 -48 475 10 96 76
SetupPart belt 4000 -252 -30 -50 473 30 100 152
SetupPart superstructure 1000 -220 10 -30 268 14 60 50
SetupPart conningTower 1000 -37 7 -24 42 65 48 76
SetupPart leftsideArmor 2000 -240 -36 -60 445 33 12 127
SetupPart rightsideArmor 2000 -240 -36 48 445 33 12 127
SetupPart torpedoBulge 2000 -200 -36 -75 374 30 15 38
SetupPart torpedoBulge2 2000 -200 -36 60 374 30 15 38

SetupPart rightTrack 500 -186 -32 -30 109 27 30 38
SetupPart leftTrack 500 -186 -32 0 109 27 30 38
SetupPart turret1 7000 33 7 -22 44 44 44 686
BulletDetection 20
ModelScale 1.2
Description A British Monitor which saw service in WW2 and was fitted with many AA weapons._Displ. - 7973t | L.D. - 1940_Length - 37.92m | Beam - 9.12m | Draft - 1.13m_Spd. - 12.5kn | Rng. - 4690 | 2x Steam Turbines | 2x Boilers
Boat
PlaceableOnLand False
PlaceableOnWater True
FloatOnWater True
WheelStepHeight 0
Buoyancy 0.08
IsExplosionWhenDestroyed false
CollisionDamageEnable true
CollisionDamageThrottle 0.35
CollisionDamageTimes 40
DriverAimSpeed 3 2 0
BulletSpeed 6
BulletSpread 2.5
RotateWheels True
DeathExplosionRadius 15
DeathExplosionDamageVsVehicle 1.5
DeathExplosionDamageVsLiving 100.0
DeathExplosionDamageVsPlane 1.5
//isExplosionWhenDestroyedRadius 25
//bigDeath True
////Smonkstaks

//Stage 1
AddEmitter largesmoke 1 [-87,75,0] [7,4,7] [0,2,0] 0.02 0.5 0 1 core

//Stage 2
AddEmitter largesmoke 2 [-87,75,0] [7,4,7] [0,3,0] 0.5 0.75 0 1 core

//Stage 3
AddEmitter explode 2 [-87,75,0] [7,4,7] [0,3,0] 0.75 1 0 1 core

//Owie 1
AddEmitter largesmoke 4 [-87,75,0] [5,4,5] [0,0,0] 0 1 0 0.4 core

//Owie 2
AddEmitter flame 2 [-87,75,0] [5,2,5] [-0.25,0,0] 0 1 0 0.2 core