// ------------------------------------------------------ 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 -12 -18
WheelPosition 1 11 -12 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 CRV7
ShootPointPrimary 10 13 57 rightWing CRV7
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 280 -88 16 -25 210 48 50
BulletDetection 8
HasGear True
ModelScale 1
IsExplosionWhenDestroyed true

