// Identity
Name SdkFz.2
ShortName SdkFz2
Description German light half-track gun tractor

// Item and rendering
Icon SdkFz2
Model ww2.SdkFz2
Texture sdkfz2
RotateWheels true
AddDye 5 gray

// Recipe
AddRecipeParts core 1 smallChassis 3 vehicleSeat
AddRecipeParts frontLeftWheel 1 wheel
AddRecipeParts frontRightWheel 1 wheel
AddRecipeParts backLeftWheel 1 wheel
AddRecipeParts backRightWheel 1 wheel

// Inventory
FuelTankSize 1000
CargoSlots 36
ShellSlots 0

// Real-world physics
RealMassKg 1560
RealEnginePowerPS 36
RealMaxSpeedKmh 70
DriveType TRACKED
RealMaxReverseSpeedKmh 8

// Movement
MaxThrottle 0.5
MaxNegativeThrottle 0.4
TurnLeftSpeed 0.45
TurnRightSpeed 0.45
Drag 1.0
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive false
Tank true

// Weaponry
GunOrigin 1 -45 0 0
ShootDelay 999
ShellDelay 999
ReadWeaponsFromGunTypes true

// Health and armour
SetupPart core 3000 -46 -10 -13 72 29 27
BulletDetection 5
ArmorFrontMm 0
ArmorSideMm 0
ArmorRearMm 0
ArmorTopMm 0
ArmorBottomMm 0
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 5.0
WheelPosition 0 -28 -10 -14
WheelPosition 1 -28 -10 14
WheelPosition 2 24 -10 14
WheelPosition 3 24 -10 -14
Driver -11 8 0
RotatedDriverOffset 0 0 0
Passengers 1
Passenger 1 -29 6 0 core 140 220 -10 45 mg42 PassengerGun1
PassengerLegacyAiming 1 true
DriverAimSpeed 3.0f 3.0f 0f
DriverYawBeforePitch false

// Sounds and particles
StartSound jeepidle
StartSoundLength 7
EngineSound jeepmove
EngineSoundLength 61
ShootSound bullet
ShellSound shell
AddEmitter explode 1 [-40,-4,0] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core
AddEmitter explode 1 [-40,-4,0] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core
AddEmitter explode 1 [-40,-4,0] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter largesmoke 3 [-40,-4,0] [1,1,1] [0,0.5,0] 0.8 2 0 1 core
AddEmitter largesmoke 1 [-40,-4,0] [1,1,1] [0,5,0] 0.7 0.75 0 1 core