// ------------------------------------------------------ Naming ------------------------------------------------------
Name Boeing AH-64D Apache Longbow
ShortName AH-64D
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon IconAH64D
Model usamw.ah64d
Texture AH64D
//Third Person Camera Distance
CameraDistance 17.5
//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 3.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2
TurnRightSpeed 2
//Pitch modifiers
LookUpSpeed 2
LookDownSpeed 2
//Roll modifiers
RollLeftSpeed 2
RollRightSpeed 2
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.7
//Lift
//Lift 2.5
//Wheels (Fake wheels imitating skids)
NumWheels 3
WheelPosition 0 11 -10 -18
WheelPosition 1 11 -10 18
WheelPosition 2 -204 7 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
HeliPropeller 0 54 0 0 core Thruster
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Missile
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 5
ShootDelaySecondary 20
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary True
//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 10 13 -57 leftWing M261
ShootPointPrimary 10 13 57 rightWing M261
ShootPointSecondary 18 12 -32 leftWing
ShootPointSecondary 18 12 -42 leftWing
ShootPointSecondary 18 6 -42 leftWing
ShootPointSecondary 18 6 -32 leftWing
ShootPointSecondary 18 12 32 rightWing
ShootPointSecondary 18 12 42 rightWing
ShootPointSecondary 18 6 42 rightWing
ShootPointSecondary 18 6 32 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 8
AllowAllAmmo True
AddAmmo AGM114
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 21 26 0
Passengers 3
Passenger 1 52 16 0 nose -360 360 -90 5 ADEN PassengerGun1
GunOrigin 1 -46 -8 0
Passenger 2 4 24 20 core
Passenger 3 4 30 -20 core
// ------------------------------------------------------ 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 550 -90 12 -19 175 48 38
SetupPart tail 350 -190 12 -15 100 24 30
SetupPart rightWing 350 -25 5 19 50 28 43
SetupPart leftWing 350 -25 5 -62 50 28 43
BulletDetection 8
ShootParticlesPrimary flansmod.fmflame 0 0 0
HasGear false
ModelScale 1
IsExplosionWhenDestroyed true
SpinWithoutTail true

HasFlare True
FlareDelay 250
FlareSound FlareDeploy
TimeFlareUsing 3
LockedOnSound LockonWarning
SoundTime 14
LockedOnSoundRange 5