// Identity
Name Panzerkampfwagen IV - Version G
ShortName WW2_Vehicle_PanzerIV_1A

// Model and Rendering
Model Manus_WW2.Vehicle.WW2_Vehicle_PanzerIV_1
FlashModel DefaultFlash
Icon Icon_WW2_Vehicle_PanzerIV_1A
Texture Skin_WW2_Vehicle_PanzerIV_1A
RotateWheels True

// Recipe and Inventory
FuelTankSize 2000
CargoSlots 0
ShellSlots 5
AddRecipeParts turret 1 SMP_Part_Turret_Tank 8 SMP_Part_Mat_Armor_Steel
AddRecipeParts core 1 SMP_Part_Chassis_Tank 12 SMP_Part_Mat_Armor_Steel
AddRecipeParts leftTrack 1 SMP_Part_Wheel_Tanktrack
AddRecipeParts rightTrack 1 SMP_Part_Wheel_Tanktrack
AddDye 10 gray
AllowAllAmmo False
AddAmmo WW2_Shell_German75mmKwK40AP
AddAmmo WW2_Shell_German75mmHE
AddAmmo WW2_Shell_German75mmKwK40APCR

// Movement and Physics
MaxThrottle 0.6
MaxNegativeThrottle 0.3
Drag 1.0
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive true
TurnLeftSpeed 1
TurnRightSpeed 1
SquashMobs True
Tank true
RealMassKg 23600
RealEnginePowerPS 265
RealMaxSpeedKmh 38
DriveType TRACKED
RealMaxReverseSpeedKmh 7
RealTurnRateDegPerSec 12

// Weapons
AddGun 28 32 8 turret WW2_MG_MG42ZB_1A
BarrelPosition 81 32 0
ShootParticlesPrimary largeexplode 0 0 0
ShootParticlesPrimary explode 0.75 0 0
ShootParticlesPrimary flansmod.fmflame 0.28 0 0.82
ShootParticlesPrimary flansmod.fmflame 0.28 0 -0.82
ShootParticlesPrimary flansmod.fmflame 0.24 0.12 0.68
ShootParticlesPrimary flansmod.fmflame 0.24 -0.1 -0.68
ShootParticlesPrimary largesmoke 0.18 0.03 0.46
ShootParticlesPrimary largesmoke 0.18 0.03 -0.46
ShootParticlesPrimary largesmoke 0.16 0.1 0.38
ShootParticlesPrimary largesmoke 0.16 -0.08 -0.38
ShellDelay 110
ShootDelay 5
GunOrigin 1 47.5 -2.1 11.5
PlaceTimePrimary 80
ReloadTimeSecondary 100
ShootDelayPrimarySeconds 6
ReadWeaponsFromGunTypes true

// Protection
IsExplosionWhenDestroyed true
ArmorFrontMm 80 10
ArmorSideMm 30
ArmorRearMm 20
ArmorTopMm 11
ArmorBottomMm 10
TurretArmorFrontMm 50
TurretArmorSideMm 30
TurretArmorRearMm 30
TurretArmorTopMm 10
UseRealisticVehicleHealth true

// Parts and Seats
WheelPosition 0 -35 -8 -28
WheelPosition 1 -35 -8 28
WheelPosition 2 46 -8 28
WheelPosition 3 46 -8 -28
Driver 0 32 0 -360 360 -10 20
RotatedDriverOffset -13 0 0
Passengers 1
Passenger 1 31 12 12 core -30 30 -10 10 WW2_MG_MG42ZB_1A FrontMG
SetupPart leftTrack 300 -55 -10 22 110 22 8
SetupPart turret 3000 -36 26 -22 57 14 44
SetupPart rightTrack 300 -55 -10 -30 110 22 8
SetupPart core 3000 -48 -3 -22 111 28 44
BulletDetection 7
CameraDistance 7.5

// Optics
hasScope true
Gunsight manus_pz4
gunsightZoom 3.5

// Sounds
StartSound TankIdle2
StartSoundLength 41
EngineSound TankRun2
EngineSoundLength 41
BackSoundLength 41
BackSound TankBack2
StartSoundRange 12
EngineSoundRange 22
BackSoundRange 10
PlaceSoundPrimary TankPlace
ReloadSoundSecondary Mg34Reload
ShootSoundPrimary 75mmShoot
ShootSoundSecondary Mg34Shoot
