// ------------------------------------------------------ Naming ------------------------------------------------------
Name Bell AH-1F Cobra
ShortName AH-1F
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconah1f
Model usamw.ah1f
Texture ah1f
//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
HasGear False
// ------------------------------------------------------ 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 1.5
MaxNegativeThrottle 0.0
TurnLeftSpeed 5.50
TurnRightSpeed 5.50
LookUpSpeed 5.25
LookDownSpeed 5.25
RollLeftSpeed 2.75
RollRightSpeed 2.75
Drag 0.8
//Wheels (Fake wheels imitating skids)
NumWheels 3
WheelPosition 0 81 -10 0
WheelPosition 1 -19 -10 34
WheelPosition 2 -19 -10 -34
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
//Propeller Positions
HeliPropeller 0 1 -50 -0,5 blades metalPropeller
HeliPropeller 1 135 -49 -2 blades metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary False
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 3
ShootDelaySecondary 20
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary SemiAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 47 11 -20 leftWing M261
ShootPointPrimary 46 13 -29 leftWing M261
ShootPointPrimary 47 11 20 leftWing M261
ShootPointPrimary 46 13 29 rightWing M261
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 10
BombSlots 0
MissileSlots 10
AllowAllAmmo True
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 57 19 0
Passengers 1
Passenger 1 84 14 0 core -115 115 -90 10 minigun PassengerGun2
GunOrigin 1 -94 8 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound heloB
StartSoundLength 20
PropSound heloB
PropSoundLength 30
ShootSoundPrimary RPGShoot
ShootSoundSecondary RocketFire2
// ------------------------------------------------------ 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 3 passengerBay
AddRecipeParts nose 1 advancedMetalCockpit
AddRecipeParts coreWheel 4 wheel
AddRecipeParts blades 6 helicopterBlade
AddRecipeParts tail 1 metalTail
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 16 green
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 350 -62 6 -11 141 37 22
SetupPart tail 150 -163 8 -9 100 18 18
SetupPart rightWing 50 -16 4 11 36 22 38
SetupPart leftWing 50 -16 4 -49 36 22 38
BulletDetection 10
IsExplosionWhenDestroyed true
SpinWithoutTail true