// ------------------------------------------------------ Naming ------------------------------------------------------
Name Huey Cobra
ShortName cobra
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon Cobra
Model mw.Cobra
Texture Cobra
//Third Person Camera Distance
CameraDistance 15.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 0.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Heli
//Throttle
MaxThrottle 3.75
MaxNegativeThrottle 0.0

YawSpeed 3.3
PitchSpeed 3.6
RollSpeed 3.6
ForwardSpeed 0.8
SidewaysSpeed 0.8
ClimbSpeed 0.6
Weight 0.65
DiagonalLift 0.7
EnergyRetention 1.2
HeightLimit 250

//Wheels (Fake wheels imitating skids)
NumWheels 4
WheelPosition 0 -32 -28 -24
WheelPosition 1 -32 -28 24
WheelPosition 2 48 -28 24
WheelPosition 3 48 -28 -24
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
HeliPropeller 0 0 48 0 blades metalPropeller
HasLandingGear false
// ------------------------------------------------------ Weaponry ------------------------------------------------------
WeaponHud True
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Missile
Secondary None
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 40
ShootDelaySecondary 0
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 12 -4 -29 rightWing
ShootPointPrimary 12 -4 29 leftWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
FlareSlots 1
CargoSlots 0
BombSlots 0
MissileSlots 8
AllowAllAmmo False
AddAmmo mk4Rocket
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 32 -4 0
Passengers 1
Passenger 1 52 -8 0 nose -100 100 -75 10 minigun Nose
GunOrigin 1 64 -28 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HelicopterStart
StartSoundLength 100
PropSound Helicopter1
PropSoundLength 93
ShootSoundPrimary sound_rocketSmall
//ShootSoundSecondary None
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
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
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 6 green
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
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
CollisionPoint -94 0 0 tail
CollisionPoint 52 -8 0 core
CollisionPoint 0 -4 0 core
CollisionPoint 12 -4 27 rightWing
CollisionPoint 12 -4 -27 leftWing
BulletDetection 10