// ------------------------------------------------------ Naming ------------------------------------------------------
Name AC-130U
Description American Heavy Gunship
ShortName GFS_AC-130U
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon IconAC130
Model gfs.AC130U
Texture SkinAC130U
//Third Person Camera Distance
CameraDistance 30.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
HasGear True
ModelScale 1
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 0.8
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2.0
TurnRightSpeed 2.0
//Pitch modifiers
LookUpSpeed 1.75
LookDownSpeed 1.75
//Roll modifiers
RollLeftSpeed 1.75
RollRightSpeed 1.75
ForwardSpeed 1.0
HeightLimit 800
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -20 -12 -15
WheelPosition 1 -20 -12 15
WheelPosition 2 162 -12 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -103 -66 -107 core metalPropeller
Propeller 1 -103 -66 -202 core metalPropeller
Propeller 2 -103 -66 107 core metalPropeller
Propeller 3 -103 -66 202 core metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
WeaponHud True
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary None
Secondary None
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 0
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
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 0
FlareSlots 8
AllowAllAmmo False
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 12000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 233 46 -14
Passengers 5 233 46 14 core
Passenger 1 210 46 0 core
Passenger 2 114 18 24 core
Passenger 3 146 22 -12 core -125 -60 -65 30 GFS_20mmCannon PassengerGun3
Passenger 4 129 22 -12 core -125 -60 -65 30 GFS_30mmCannon PassengerGun4
Passenger 5 112 22 -12 core -125 -60 -65 30 GFS_105mmCannon PassengerGun5
GunOrigin 3 115 -17 -26
GunOrigin 4 -66 -17 -29
GunOrigin 5 -90 -17 -15
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound Engine_Jet_AC130
StartSoundLength 39
PropSound Engine_Jet_AC130
PropSoundLength 39

//Damage
AddEmitter flame 1 [40,60,107] [12,1,12] [-0.15,0,0] -1 1 0 0.25 core
AddEmitter flame 1 [40,60,-107] [12,1,12] [-0.15,0,0] -1 1 0 0.25 core
AddEmitter flame 1 [40,60,202] [12,1,12] [-0.15,0,0] -1 1 0 0.25 core
AddEmitter flame 1 [40,60,-202] [12,1,12] [-0.15,0,0] -1 1 0 0.25 core
AddEmitter smoke 1 [40,60,107] [12,1,12] [-0.15,0,0] -1 1 0 0.5 core
AddEmitter smoke 1 [40,60,-107] [12,1,12] [-0.15,0,0] -1 1 0 0.5 core
AddEmitter smoke 1 [40,60,202] [12,1,12] [-0.15,0,0] -1 1 0 0.5 core
AddEmitter smoke 1 [40,60,-202] [12,1,12] [-0.15,0,0] -1 1 0 0.5 core

// ------------------------------------------------------ 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
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 7000 -63 4 -37 313 76 74
SetupPart tail 4000 -223 10 -19 160 86 38
SetupPart rightWing 4500 -46 69 36 98 11 363
SetupPart leftWing 4500 -46 69 -399 98 11 363

BulletDetection 10
