// Identity
Name Kubelwagen [MG-34]
ShortName 44_KubelwagenMg34
Description German Jeep __Year Introduced : 1934

// Rendering
Icon 44_KubelwagenMg34
Model W44.KubelwagenMg34
FlashModel DefaultFlash
ModelScale 1.1
Texture Skin44_Kubel
VehicleGunModelScale 1.3
RotateWheels true
CameraDistance 5.0

// 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 backLeftWheel 1 44_Car_Wheel
AddRecipeParts backRightWheel 1 44_Car_Wheel
CargoSlots 36
ShellSlots 0
FuelTankSize 1000

// Paintjobs
AddDye 4 gray

// Real-world specifications
DriveType RWD
RealMassKg 715
RealEnginePowerPS 25
RealMaxSpeedKmh 80
RealMaxReverseSpeedKmh 15

// Movement
FourWheelDrive false
MaxThrottle 1.15
MaxNegativeThrottle 0.4
TurnLeftSpeed 0.5
TurnRightSpeed 0.5
RealTurnRateDegPerSec 240
CanRoll false
Drag 1.0

// 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

// Weapons
ReadWeaponsFromGunTypes true
ShellDelay 999
ShootDelay 999
ReloadTimeSecondary 10
BulletDetection 5
GunOrigin 2 13.9 5.6 0

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

// Parts and collision
SetupPart core 635 -42 -4 -14 87 23 28
SetupPart backRightWheel 20 -32 -10 -18 15 16 5
SetupPart backLeftWheel 20 -32 -10 13 15 16 5
SetupPart frontRightWheel 20 26 -10 -18 15 16 5
SetupPart frontLeftWheel 20 26 -10 13 15 16 5

// Seats
Driver 3 4 -7
Passengers 2
Passenger 1 3 4 7 core
Passenger 2 -16 13 0 core -45 45 -10 30 44_Mg34 PassengerGun2
RotatedDriverOffset 0 0 0
DriverAimSpeed 3.0f 3.0f 0f
DriverYawBeforePitch false

// Sounds
StartSound JeepIdle
StartSoundLength 7
StartSoundRange 12
EngineSound JeepMove
EngineSoundLength 61
EngineSoundRange 50
BackSound JeepBack
BackSoundLength 61
BackSoundRange 25
ShootSound bullet
ShellSound shell
PlaceSoundPrimary TankPlace
ReloadSoundSecondary Mg34Reload

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