// Identity
Name Flakvierling 20mm AA Gun
ShortName flakvierling
Description German AA Gun

// Item and rendering
Icon Flakvierling
Model ww2.Flakvierling
Texture flakvierling
AddDye 5 gray
ModelScale 1.5

// Recipe
AddRecipeParts turret 4 aaBarrel 9 ingotIron
AddRecipeParts core 1 blockIron 1 vehicleSeat

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

// Real-world physics
RealMassKg 1514

// 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 4
ShootDelaySecondary 0
AlternatePrimary True
AlternateSecondary False
ModePrimary FullAuto
ModeSecondary FullAuto
ShootPointPrimary 48 6 4 turret
BarrelPosition 30 10 5
BarrelPosition 30 5 5
BarrelPosition 30 10 -5
BarrelPosition 30 5 -5
TurretRotationSpeed 0.06
RoundsPerMinPrimary 1400
ReloadTimePrimary 51
ReloadRoundsPrimary 80
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 -26 -8 0
WheelPosition 1 -26 -8 0
WheelPosition 2 20 -8 18
WheelPosition 3 20 -8 -18
Driver 0 -1 0 -360 360 0 89
RotatedDriverOffset -20 0 0
Passengers 0

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