// Identity
Name SdkFz.251 Halftrack
ShortName SdkFz251

// Item and rendering
Icon SdkFz251
Model ww2.SdkFz251
Texture sdkfz251
RotateWheels true
AddDye 10 gray
ModelScale 1.1

// 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 0
AllowAllAmmo False
AddAmmo none

// Real-world physics
RealMassKg 7000
RealEnginePowerPS 100
RealMaxSpeedKmh 52.5
DriveType TRACKED
RealMaxReverseSpeedKmh 9

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

// Weaponry
GunOrigin 1 -3 14 0
GunOrigin 2 -58 16 0
BarrelPosition 0 0 0
ShootDelay 1
ShellDelay 100
ReadWeaponsFromGunTypes true

// 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 14.5
ArmorSideMm 8
ArmorRearMm 8
ArmorBottomMm 5.5
ArmorTopMm 0
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 4 5 -7 -360 360 -89 89
RotatedDriverOffset 0 0 0
Passengers 5
Passenger 1 -13 20 0 core -30 30 -10 25 mg42 PassengerGun1
Passenger 2 -49 20 0 core 160 200 -20 20 mg42 PassengerGun2
Passenger 3 -40 6 -10 core -360 360 -89 89
Passenger 4 -21 6 10 core -360 360 -89 89
Passenger 5 2 7 7 core -360 360 -89 89
PassengerLegacyAiming 1 true
PassengerLegacyAiming 2 true
DriverAimSpeed 3.0f 3.0f 0f
DriverYawBeforePitch false

// Sounds and particles
StartSound tankidle1
StartSoundLength 41
EngineSound engine_tr_halftrack
EngineSoundLength 39
ShootSoundPrimary None
ShootSoundSecondary MG42Shoot
DriverTraverseSounds true
PitchSound TurretTraverse1
PitchSoundLength 61
YawSound TurretTraverse2
YawSoundLength 38