// Identity
Name M4 Sherman
ShortName Sherman
Description American Medium Tank

// Item and rendering
Icon Sherman
Model ww2.Sherman
FlashModel DefaultFlash
Texture sherman
RotateWheels true
AddDye 10 green
ModelScale 1.15

// Recipe
AddRecipeParts turret 1 mediumTankTurret 1 vehicleSeat
AddRecipeParts core 1 mediumTankBody
AddRecipeParts leftTrack 1 catTrack
AddRecipeParts rightTrack 1 catTrack

// Inventory
FuelTankSize 2000
CargoSlots 20
ShellSlots 5
AddAmmo shell
AddAmmo HEshell
AddAmmo Allied75APShell
AddAmmo Allied75HEShell
AllowAllAmmo false

// Real-world physics
RealMassKg 30300
RealEnginePowerHp 400
RealMaxSpeedKmh 39
DriveType TRACKED
RealMaxReverseSpeedKmh 5

// Movement
MaxThrottle 0.65
MaxNegativeThrottle 0.45
TurnLeftSpeed 0.3
TurnRightSpeed 0.3
RealTurnRateDegPerSec 18
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive true
Tank true

// Weaponry
AddGun 8 35.6 -8 turret browning
BarrelPosition 78.8 37.4 0
ShootDelay 2
ShellDelay 110
DamageModifierPrimary 44
ShootDelayPrimarySeconds 6
ReadWeaponsFromGunTypes true

// Optics
hasScope true
Gunsight official_m4a3
gunsightZoom 4

// Health and armour
SetupPart core 10720 -61 -3 -15 114 28 30
SetupPart turret 10520 -25 25 -25 50 18 50
SetupPart leftTrack 8000 -61 -10 -28 112 17 13
SetupPart rightTrack 8000 -61 -10 15 112 17 13
BulletDetection 7
ArmorFrontMm 50 56
ArmorSideMm 38
ArmorRearMm 38
ArmorTopMm 19
ArmorBottomMm 13
TurretArmorFrontMm 76
TurretArmorSideMm 50
TurretArmorRearMm 50
TurretArmorTopMm 25
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 7.5
WheelPosition 0 -32 -10 -18
WheelPosition 1 -32 -10 18
WheelPosition 2 32 -10 18
WheelPosition 3 32 -10 -18
Driver 0 32 0 -360 360 -10 25
RotatedDriverOffset -12 0 8
Passengers 0
DriverAimSpeed 1.0f 0.8f 0f
DriverYawBeforePitch false

// Sounds and particles
StartSound tankidle2
StartSoundLength 41
EngineSound engine_mt_m4
EngineSoundLength 39
ShootSoundPrimary 75mmGun
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 BrowningShoot
AddEmitter explode 8 [-60,12,-8] [5,5,5] [0,1,0] 0.33 0.66 0 1 core
AddEmitter explode 8 [-60,12,8] [5,5,5] [0,1,0] 0.33 0.66 0 1 core
DriverTraverseSounds true
PitchSound TurretTraverse1
PitchSoundLength 61
YawSound TurretTraverse2
YawSoundLength 38
AddEmitter largesmoke 1 [-53,5,5] [1,1,1] [0,0,0] 0.02 0.07 0 1 core
AddEmitter largesmoke 1 [-53,5,-5] [1,1,1] [0,0,0] 0.02 0.07 0 1 core
AddEmitter explode 1 [-53,5,5] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core
AddEmitter explode 1 [-53,5,-5] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core
AddEmitter largesmoke 1 [-53,5,5] [1,1,1] [0,3,0] 0.2 0.25 0 1 core
AddEmitter largesmoke 1 [-53,5,-5] [1,1,1] [0,3,0] 0.2 0.25 0 1 core
AddEmitter explode 1 [-53,5,5] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core
AddEmitter explode 1 [-53,5,-5] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core
AddEmitter largesmoke 1 [-53,5,5] [1,1,1] [0,4,0] 0.5 0.52 0 1 core
AddEmitter largesmoke 1 [-53,5,-5] [1,1,1] [0,4,0] 0.5 0.52 0 1 core
AddEmitter flame 1 [-53,5,5] [1,1,1] [0,2,0] 0.5 0.51 0 1 core
AddEmitter flame 1 [-53,5,-5] [1,1,1] [0,2,0] 0.5 0.51 0 1 core
AddEmitter explode 1 [-53,5,5] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter explode 1 [-53,5,-5] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter largesmoke 3 [-53,5,5] [1,1,1] [0,0,0] 0.8 2 0 1 core
AddEmitter largesmoke 3 [-53,5,-5] [1,1,1] [0,0,0] 0.8 2 0 1 core
AddEmitter largesmoke 1 [-53,5,5] [1,1,1] [0,5,0] 0.7 0.75 0 1 core
AddEmitter largesmoke 1 [-53,5,-5] [1,1,1] [0,5,0] 0.7 0.75 0 1 core
AddEmitter flame 1 [-53,5,5] [1,1,1] [0,5,0] 0.7 0.73 0 1 core
AddEmitter flame 1 [-53,5,-5] [1,1,1] [0,5,0] 0.7 0.73 0 1 core
