// Identity
Name M24 Chaffee
ShortName Chaffee
Description American Light Tank

// Item and rendering
Icon Chaffee
Model ww2.Chaffee
FlashModel DefaultFlash
Texture chaffee
RotateWheels True
AddDye 8 green
ModelScale 1

// Recipe
AddRecipeParts turret 1 lightTankBody 1 vehicleSeat
AddRecipeParts core 1 lightTankBody
AddRecipeParts leftTrack 1 catTrack
AddRecipeParts rightTrack 1 catTrack

// Inventory
FuelTankSize 2000
CargoSlots 10
ShellSlots 5
AllowAllAmmo False
AddAmmo shell
AddAmmo HEshell
AddAmmo Allied75APShell
AddAmmo Allied75HEShell

// Real-world physics
RealMassKg 18370
RealEnginePowerHp 220
RealMaxSpeedKmh 56
DriveType TRACKED
RealMaxReverseSpeedKmh 23

// Movement
MaxThrottle 0.8
MaxNegativeThrottle 0.6
TurnLeftSpeed 0.35
TurnRightSpeed 0.35
RealTurnRateDegPerSec 30
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive true
Tank true

// Weaponry
BarrelPosition 53 26.5 0
AddGun 22 27.5 5.5 turret browning
ShootDelay 1
ShellDelay 85
TurretRotationSpeed 0.02
DamageModifierPrimary 38
ShootDelayPrimarySeconds 6
ReadWeaponsFromGunTypes true

// Optics
hasScope true
Gunsight official_m4a3
gunsightZoom 4

// Health and armour
SetupPart core 9000 -56 -1 -21 101 23 42
SetupPart turret 8800 -36 22 -28 56 22 56
SetupPart rightTrack 6000 -50 -10 -28 94 19 7
SetupPart leftTrack 6000 -50 -10 21 94 19 7
BulletDetection 7
ArmorFrontMm 25 60
ArmorSideMm 25
ArmorRearMm 19
ArmorTopMm 13
ArmorBottomMm 10
TurretArmorFrontMm 25
TurretArmorSideMm 25
TurretArmorRearMm 25
TurretArmorTopMm 13
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 7.5
WheelPosition 0 -20 -10 -18
WheelPosition 1 -20 -10 18
WheelPosition 2 20 -10 18
WheelPosition 3 20 -10 -18
Driver 0 28 0 -360 360 -15 20
RotatedDriverOffset -5 0 -9
Passengers 0

// Sounds and particles
StartSound tankidle2
StartSoundLength 41
EngineSound engine_mt_m4a3
EngineSoundLength 39
ShootSoundPrimary shoot_75mmus
ShootParticlesPrimary largeexplode 0 0 0
ShootParticlesPrimary explode 1.0 0 0
ShootParticlesPrimary flansmod.fmflame 1.25 0 0
ShootParticlesPrimary flansmod.fmflame 0.68 0.07 0.09
ShootParticlesPrimary flansmod.fmflame 0.64 -0.07 -0.09
ShootParticlesPrimary largesmoke 0.4 0.08 0.1
ShootParticlesPrimary largesmoke 0.38 -0.08 -0.1
ShootParticlesPrimary cloud 0.06 0 0
ShootSoundSecondary BrenShoot
