// Identity
Name M45 .50Cal Quad Mount
ShortName M45Quad
Description Amercian AA Gun

// Item and rendering
Icon M45Quad
Model ww2.M45Quad
Texture quadmount
AddDye 4 green
ModelScale 1

// Recipe
AddRecipeParts core 1 blockIron 1 vehicleSeat 4 50Cal
AddRecipeParts leftTrack 1 wheel
AddRecipeParts rightTrack 1 wheel

// Inventory
CargoSlots 0
BombSlots 0
MissileSlots 0
AllowAllAmmo False
AddAmmo browningAmmo
FuelTankSize 0

// Real-world physics
RealMassKg 1087

// Movement
MaxThrottle 0
MaxNegativeThrottle 0
TurnLeftSpeed 0
TurnRightSpeed 0
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive true
Tank true

// Weaponry
Primary Gun
Secondary None
ShootDelayPrimary 3
ShootDelaySecondary 0
AlternatePrimary True
AlternateSecondary False
ModePrimary FullAuto
ModeSecondary FullAuto
ShootPointPrimary -16 17 14 turret 50Cal
ShootPointPrimary -12 12 16 turret 50Cal
ShootPointPrimary -16 17 -15 turret 50Cal
ShootPointPrimary -12 12 -17 turret 50Cal
TurretRotationSpeed 0.08
RoundsPerMinPrimary 2300
ReadWeaponsFromGunTypes true

// Optics
hasScope true
Gunsight official_20mmtank
gunsightZoom 2.5

// Health and armour
SetupPart core 50 -20 -8 -8 40 4 16
SetupPart turret 40 -10 -4 -10 20 12 20
SetupPart leftTrack 20 -20 -8 -10 40 6 2
SetupPart rightTrack 20 -20 -8 8 40 6 2
BulletDetection 7
ArmorFrontMm 6.35
ArmorSideMm 0
ArmorRearMm 0
ArmorTopMm 0
ArmorBottomMm 0
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 7.5
WheelPosition 0 -26 -10 0
WheelPosition 1 -26 -10 0
WheelPosition 2 20 -10 18
WheelPosition 3 20 -10 -18
Driver 0 3 0 -360 360 -5 89
RotatedDriverOffset -6 0 2
Passengers 0

// Sounds and particles
StartSound None
StartSoundLength 0
EngineSound None
EngineSoundLength 0
ShootSoundPrimary 50CalShoot
