// Identity
Name SdkFz.222 Armored Car
ShortName SdkFz222

// Item and rendering
Icon SdkFz222
Model ww2.SdkFz222
Texture sdkfz222
RotateWheels true
AddDye 10 gray
ModelScale 1.3

// Recipe
AddRecipeParts turret 1 mediumTankTurret 1 vehicleSeat
AddRecipeParts core 1 mediumTankBody 1 vehicleSeat
AddRecipeParts leftTrack 1 catTrack
AddRecipeParts rightTrack 1 catTrack

// Inventory
FuelTankSize 2000
CargoSlots 20
ShellSlots 4
AllowAllAmmo False
AddAmmo 20mmAmmo

// Real-world physics
RealMassKg 4800
RealEnginePowerPS 75
RealMaxSpeedKmh 85
DriveType AWD
RealMaxReverseSpeedKmh 15

// Movement
MaxThrottle 0.55
MaxNegativeThrottle 0.35
TurnLeftSpeed 0.5
TurnRightSpeed 0.5
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive true
Tank false

// Weaponry
BarrelPosition 0 0 0
ShootDelay 1
ShellDelay 100
RoundsPerMinPrimary 280
ReloadTimePrimary 57
ReloadRoundsPrimary 10
ReadWeaponsFromGunTypes true

// Optics
hasScope true
Gunsight official_20mmtank
gunsightZoom 4
heliGUI official_gercomm

// Health and armour
SetupPart core 540 -43 -3 -26 85 23 52
SetupPart turret 440 -28 20 -25 50 12 49
SetupPart rightTrack 270 -48 -10 -25 102 19 7
SetupPart leftTrack 270 -48 -10 18 102 19 7
BulletDetection 7
ArmorFrontMm 30
ArmorSideMm 8
ArmorRearMm 8
ArmorTopMm 5.5
ArmorBottomMm 5.5
TurretArmorFrontMm 14.5
TurretArmorSideMm 8
TurretArmorRearMm 8
TurretArmorTopMm 0
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 7.5
WheelPosition 0 -35 -10 -22
WheelPosition 1 -35 -10 22
WheelPosition 2 40 -10 22
WheelPosition 3 40 -10 -22
Driver 0 12 0 -360 360 -5 70
RotatedDriverOffset -10 0 4
Passengers 0
DriverAimSpeed 0.8f 0.6f 0f
DriverYawBeforePitch true

// Sounds and particles
StartSound jeepidle
StartSoundLength 7
EngineSound jeepmove
EngineSoundLength 61
ShootSoundPrimary shoot_20mmpzii
ShootSoundSecondary MG42Shoot
DriverTraverseSounds true
PitchSound TurretTraverse1
PitchSoundLength 61
YawSound TurretTraverse2
YawSoundLength 38
AddEmitter explode 1 [-37,0,8] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core
AddEmitter explode 1 [-37,0,8] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core
AddEmitter explode 1 [-37,0,8] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter largesmoke 3 [-37,0,8] [1,1,1] [0,0.5,0] 0.8 2 0 1 core
AddEmitter largesmoke 1 [-37,0,8] [1,1,1] [0,5,0] 0.7 0.75 0 1 core
