// Identity
Name Huey Cobra
ShortName cobra

// Item and rendering
Icon Cobra
Model mw.Cobra
Texture Cobra
AddDye 6 green

// Recipe
AddRecipeParts core 1 advancedMetalCockpit
AddRecipeParts skids 2 helicopterSkid
AddRecipeParts blades 2 helicopterBlade
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail 1 metalPropeller

// Inventory
CargoSlots 0
BombSlots 0
MissileSlots 8
AllowAllAmmo False
AddAmmo mk4Rocket
FuelTankSize 5000

// Real-world physics
RealMassKg 4309
RealEnginePowerHp 1400
RealMaxSpeedKmh 277
RealRotorDiameterM 13.41
RealClimbRateMs 6.25

// Movement
RestingPitch 0.0
MaxThrottle 3.5
MaxNegativeThrottle 0.0
TurnLeftSpeed 2
TurnRightSpeed 2
LookUpSpeed 2
LookDownSpeed 2
RollLeftSpeed 2
RollRightSpeed 2
Drag 1.0
WheelSpringStrength 0.125
HasLandingGear false

// Weaponry
Mode Heli
Primary Missile
Secondary None
ShootDelayPrimary 20
ShootDelaySecondary 0
AlternatePrimary False
AlternateSecondary False
ModePrimary FullAuto
ModeSecondary FullAuto
ShootPointPrimary 12 -4 -29 rightWing
ShootPointPrimary 12 -4 29 leftWing
GunOrigin 1 64 -28 0
ReadWeaponsFromGunTypes true

// Health and armour
SetupPart core 2500 -24 -12 -10 96 32 20
SetupPart blades 1000 -24 20 -20 48 16 40
SetupPart rightWing 2000 -12 1 -38 24 2 28
SetupPart leftWing 2000 -12 1 10 24 2 28
SetupPart tail 2000 -100 -12 -9 76 24 18
BulletDetection 10
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 15.0
WheelPosition 0 -32 -28 -24
WheelPosition 1 -32 -28 24
WheelPosition 2 48 -28 24
WheelPosition 3 48 -28 -24
HeliPropeller 0 0 48 0 blades metalPropeller
Pilot 32 -4 0
Passengers 1
Passenger 1 52 -8 0 nose -30 30 -30 0 minigun Nose

// Sounds and particles
StartSound HelicopterStart
StartSoundLength 100
PropSound Helicopter1
PropSoundLength 93
ShootSoundPrimary RocketFire1