// Identity
Name Bofors 40mm AA Gun
ShortName bofors
Description British AA Gun

// Item and rendering
Icon Bofors
Model ww2.Bofors
Texture bofors
AddDye 4 green
ModelScale 1.1

// Recipe
AddRecipeParts turret 1 aaBarrel
AddRecipeParts core 1 blockIron 2 vehicleSeat
AddRecipeParts frontLeftWheel 1 wheel
AddRecipeParts frontRightWheel 1 wheel
AddRecipeParts backLeftWheel 1 wheel
AddRecipeParts backRightWheel 1 wheel

// Inventory
CargoSlots 0
BombSlots 0
MissileSlots 1
AllowAllAmmo False
AddAmmo boforsAmmo
FuelTankSize 0

// Real-world physics
RealMassKg 1981

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

// Weaponry
Primary Shell
Secondary None
ShootDelayPrimary 20
ShootDelaySecondary 0
AlternatePrimary True
AlternateSecondary False
ModePrimary FullAuto
ModeSecondary FullAuto
BarrelPosition 14 14 0
TurretRotationSpeed 0.03
RoundsPerMinPrimary 120
ReloadTimePrimary 20
ReloadRoundsPrimary 4
ReadWeaponsFromGunTypes true

// Optics
hasScope true
Gunsight official_20mmtank
gunsightZoom 2.5

// Health and armour
SetupPart core 2000 -41 -10 -26 75 35 52
BulletDetection 7
ArmorFrontMm 0
ArmorSideMm 0
ArmorRearMm 0
ArmorTopMm 0
ArmorBottomMm 0
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 7.5
WheelPosition 0 -20 -10 -12
WheelPosition 1 -20 -10 12
WheelPosition 2 20 -10 12
WheelPosition 3 20 -10 -12
Driver 0 1 0 -360 360 0 89
RotatedDriverOffset -3 0 12
Passengers 0

// Sounds and particles
StartSound None
StartSoundLength 0
EngineSound None
EngineSoundLength 0
ShootSoundPrimary aagun_40mm_boforsfire
