// Identity
Name StuG IV
ShortName StuG
Description German Medium Tank Destroyer

// Item and rendering
Icon StuG
Model ww2.StuG
Texture stug
RotateWheels True
AddDye 10 gray
ModelScale 0.85

// Recipe
AddRecipeParts core 1 mediumTankBody 2 vehicleSeat 1 tankBarrel
AddRecipeParts leftTrack 1 catTrack
AddRecipeParts rightTrack 1 catTrack

// Inventory
FuelTankSize 2000
CargoSlots 20
ShellSlots 5
AllowAllAmmo False
AddAmmo shell
AddAmmo HEshell
AddAmmo German75APShell
AddAmmo German75HEShell

// Real-world physics
RealMassKg 25900
RealEnginePowerPS 265
RealMaxSpeedKmh 38
DriveType TRACKED
RealMaxReverseSpeedKmh 10

// Movement
MaxThrottle 0.55
MaxNegativeThrottle 0.45
TurnLeftSpeed 0.3
TurnRightSpeed 0.3
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive true
Tank true

// Weaponry
GunOrigin 1 -5 12 15
BarrelPosition 20 25 5
ShootDelay 1
ShellDelay 90
TurretRotationSpeed 0.03
DamageModifierPrimary 42
ShootDelayPrimarySeconds 6
ReadWeaponsFromGunTypes true

// Optics
hasScope true
Gunsight official_stug
gunsightZoom 4.5

// Health and armour
SetupPart core 9800 -47 -3 -13 92 33 36
SetupPart rightTrack 7000 -55 -12 -21 101 21 8
SetupPart leftTrack 7000 -55 -12 23 101 21 7
BulletDetection 7
ArmorFrontMm 80
ArmorSideMm 30
ArmorRearMm 30
ArmorTopMm 10
ArmorBottomMm 10
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 7.5
WheelPosition 0 -35 -10 -18
WheelPosition 1 -35 -10 26
WheelPosition 2 35 -10 26
WheelPosition 3 35 -10 -18
Driver -14 23 -7 -8 8 -6 20
RotatedDriverOffset 0 0 0
Passengers 1
Passenger 1 -18 20 18 core -12 12 -10 12 mg42 PassengerGun1
RotatedPassengerOffset 1 0 0 0

// Sounds and particles
StartSound tankidle2
StartSoundLength 41
EngineSound engine_mt_pziii
EngineSoundLength 39
ShootSoundPrimary shoot_75mmde
ShootSoundSecondary MG42Shoot
