// Identity
Name Panzer IV
ShortName Panzer
Description German Medium Tank

// Item and rendering
Icon Panzer
Model ww2.Panzer
Texture panzer
RotateWheels true
AddDye 10 gray
ModelScale 0.9

// 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
AllowAllAmmo False
AddAmmo shell
AddAmmo HEshell
AddAmmo German75APShell
AddAmmo German75HEShell

// Real-world physics
RealMassKg 25000
RealEnginePowerPS 265
RealMaxSpeedKmh 38
DriveType TRACKED
RealMaxReverseSpeedKmh 7

// Movement
MaxThrottle 0.6
MaxNegativeThrottle 0.4
TurnLeftSpeed 0.35
TurnRightSpeed 0.35
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive true
Tank true

// Weaponry
BarrelPosition 20 34 0
AddGun 8 34 8 turret mg42
ShootDelay 1
ShellDelay 95
TurretRotationSpeed 0.02
DamageModifierPrimary 41
ShootDelayPrimarySeconds 6
ReadWeaponsFromGunTypes true

// Optics
hasScope true
Gunsight official_stug
gunsightZoom 3.5

// Health and armour
SetupPart core 10720 -43 -3 -26 85 23 52
SetupPart turret 10570 -28 20 -25 50 12 49
SetupPart rightTrack 8270 -48 -10 -25 102 19 7
SetupPart leftTrack 8270 -48 -10 18 102 19 7
BulletDetection 7
ArmorFrontMm 80
ArmorSideMm 30
ArmorRearMm 20
ArmorTopMm 11
ArmorBottomMm 10
TurretArmorFrontMm 50
TurretArmorSideMm 30
TurretArmorRearMm 30
TurretArmorTopMm 16
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 7.5
WheelPosition 0 -35 -11 -22
WheelPosition 1 -35 -11 22
WheelPosition 2 35 -11 22
WheelPosition 3 35 -11 -22
Driver 0 28 0 -360 360 -10 20
RotatedDriverOffset -13 0 0
Passengers 0

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