// Identity
Name SdKfz.251 Hanomag
ShortName 44_M3Halftrack
Description American Halftrack__Year Introduced : 1943

// Rendering
Icon 44_M3Halftrack
Model W44.M3Halftrack
FlashModel DefaultFlash
ModelScale 1.1
Texture Skin44_M3Halftrack
RotateWheels true
CameraDistance 7.5

// Recipe and inventory
AddRecipeParts core 1 44_Car_Chassis 4 44_Vehicle_Seat
AddRecipeParts frontLeftWheel 1 44_Car_Wheel
AddRecipeParts frontRightWheel 1 44_Car_Wheel
AddRecipeParts leftTrack 1 44_Tank_Track
AddRecipeParts rightTrack 1 44_Tank_Track
CargoSlots 36
ShellSlots 0
FuelTankSize 1000

// Paintjobs
AddDye 4 green

// Real-world specifications
DriveType TRACKED
RealMassKg 9070
RealEnginePowerHp 148
RealMaxSpeedKmh 72
RealMaxReverseSpeedKmh 17

// Movement
FourWheelDrive false
MaxThrottle 0.75
MaxNegativeThrottle 0.45
TurnLeftSpeed 0.45
TurnRightSpeed 0.45
RealTurnRateDegPerSec 18

// Wheels and tracks
WheelRadius 1.0
WheelPosition 0 -28 -8 -14
WheelPosition 1 -28 -8 14
WheelPosition 2 24 -8 14
WheelPosition 3 24 -8 -14
WheelSpringStrength 0.5
TrackLinkLength 3
LeftLinkPoint [-4,8,13]
LeftLinkPoint [-1.3,6,13]
LeftLinkPoint [-1.3,-2,13]
LeftLinkPoint [-10,-8,13]
LeftLinkPoint [-48,-8,13]
LeftLinkPoint [-56.5,-2,13]
LeftLinkPoint [-56.5,5,13]
LeftLinkPoint [-53,8,13]
LeftLinkPoint [-11,8,13]
LeftLinkPoint [-6,8,13]
RightLinkPoint [-4,8,-13]
RightLinkPoint [-1.3,6,-13]
RightLinkPoint [-1.3,-2,-13]
RightLinkPoint [-10,-8,-13]
RightLinkPoint [-48,-8,-13]
RightLinkPoint [-56.5,-2,-13]
RightLinkPoint [-56.5,5,-13]
RightLinkPoint [-53,8,-13]
RightLinkPoint [-11,8,-13]
RightLinkPoint [-6,8,-13]

// Weapons
ReadWeaponsFromGunTypes true
ShellDelay 999
ShootDelay 999
ReloadTimeSecondary 100
PlaceTimePrimary 80
BulletDetection 5
GunOrigin 4 28.6 16.9 8.3
GunOrigin 5 -48.6 10.9 -7.7

// Armour and damage
UseRealisticVehicleHealth true
ArmorFrontMm 13
ArmorSideMm 6
ArmorRearMm 6
ArmorTopMm 0
ArmorBottomMm 6
IsExplosionWhenDestroyed true

// Parts and collision
SetupPart core 7316 -61 1 -20 110 28 40
SetupPart frontRightWheel 60 32 -10 11 17 17 8
SetupPart frontLeftWheel 60 32 -10 -19 17 17 8
SetupPart rightTrack 817 -61 -10 9 60 19 8
SetupPart leftTrack 817 -61 -10 -17 60 19 8

// Seats
Driver 6 5 -7
Passengers 5
Passenger 1 6 5 7 core
Passenger 2 -37 12 12 core
Passenger 3 -23 13 -12 core
Passenger 4 -7 28 8 core -50 50 -10 30 44_50Cal PassengerGun4
Passenger 5 -47 18 -7 core 130 230 -20 20 44_30Cal PassengerGun5
RotatedDriverOffset 0 0 0
DriverAimSpeed 3.0f 3.0f 0f
DriverYawBeforePitch false

// Sounds
StartSound TankIdle1
StartSoundLength 41
StartSoundRange 12
EngineSound TankRun1
EngineSoundLength 39
EngineSoundRange 50
BackSound Engine_TR_Halftrack
BackSoundLength 39
BackSoundLength 61
BackSoundRange 25
ShootSoundPrimary None
ShootSoundSecondary None
PlaceSoundPrimary TankPlace
ReloadSoundSecondary Mg34Reload

// Effects
AddEmitter smoke 1 [-60,3,-8] [1,1,1] [0,0.5,0] -1 1 0 1 core
AddEmitter explode 1 [-60,3,-8] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core
AddEmitter explode 1 [-60,3,-8] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core
AddEmitter explode 1 [-60,3,-8] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter largesmoke 3 [-60,3,-8] [1,1,1] [0,0.5,0] 0.8 2 0 1 core
AddEmitter largesmoke 1 [-60,3,-8] [1,1,1] [0,5,0] 0.7 0.75 0 1 core