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

// Item and rendering
Icon Panzer
Model ww2.Panzer
FlashModel DefaultFlash
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
RealTurnRateDegPerSec 12
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive true
Tank true

// Weaponry
BarrelPosition 73.8 28.3 -0.9
AddGun 27.9 27.5 5.9 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 10
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
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 MG42Shoot
