// Identity
Name M1-57 MM
ShortName M157mm
Description American Anti-Tank Gun

// Item and rendering
Icon M157MM
Model ww2.M157MM
Texture m157mmgun
AddDye 5 green
ModelScale 1.1

// Recipe
AddRecipeParts core 1 tankBarrel 1 gunShield
AddRecipeParts frontLeftWheel 1 largeWheel
AddRecipeParts frontRightWheel 1 largeWheel

// Inventory
FuelTankSize 2000
CargoSlots 0
ShellSlots 5
AddAmmo shell
AddAmmo HEshell
AddAmmo American57APShell
AllowAllAmmo false

// Real-world physics
RealMassKg 1225

// Movement
MaxThrottle 0
MaxNegativeThrottle 0
TurnLeftSpeed 0
TurnRightSpeed 0
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive true
Tank true

// Weaponry
BarrelPosition 0 20 0
ShootDelay 1
ShellDelay 98
TurretRotationSpeed 0.03
DamageModifierPrimary 30
ShootDelayPrimarySeconds 4
ReadWeaponsFromGunTypes true

// Optics
hasScope true
Gunsight official_6pdrat
gunsightZoom 3.5

// Health and armour
SetupPart core 1500 -40 -8 -18 60 24 36
SetupPart leftTrack 1200 4 -8 -22 12 12 4
SetupPart rightTrack 1200 4 -8 18 12 12 4
BulletDetection 7
ArmorFrontMm 6
ArmorSideMm 0
ArmorRearMm 0
ArmorTopMm 0
ArmorBottomMm 0
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 7.5
WheelPosition 0 -32 -10 -18
WheelPosition 1 -32 -10 18
WheelPosition 2 20 -10 18
WheelPosition 3 20 -10 -18
Driver -14 -3 -11 -15 15 -5 8
RotatedDriverOffset 0 0 0
Passengers 0
DriverAimSpeed 0.4f 0.3f 0f
DriverYawBeforePitch true

// Sounds and particles
StartSound
StartSoundLength 0
EngineSound
EngineSoundLength 0
ShootSoundPrimary 57mmGun
DriverTraverseSounds true
PitchSound TurretTraverse1
PitchSoundLength 61
YawSound TurretTraverse2
YawSoundLength 38
