// ------------------------------------------------------ Naming ------------------------------------------------------
Name C-130E Hercules
Description American Heavy Lift Transport Aircraft_Introduction: 1954
ShortName GFS_C-130E
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon IconC130
Model gfs.C130
Texture SkinC130
//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 1.25
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.0
TurnRightSpeed 1.0
//Pitch modifiers
LookUpSpeed 1.75
LookDownSpeed 1.75
//Roll modifiers
RollLeftSpeed 1.75
RollRightSpeed 1.75
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.0
//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 ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Bomb
Secondary None
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 800
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 7 -10 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 36
ReloadTimePrimary 500
BombSlots 1
MissileSlots 0
AllowAllAmmo False
AddAmmo GFS_MOAB
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 233 46 -14
Passengers 37
Passenger 1 233 46 14 core
Passenger 2 210 46 0 core
Passenger 3 114 18 24 core
Passenger 4 126 18 24 core
Passenger 5 138 18 24 core
Passenger 6 150 18 24 core
Passenger 7 162 18 24 core
Passenger 8 114 18 -24 core
Passenger 9 93 18 19 core
Passenger 10 81 18 19 core
Passenger 11 69 18 19 core
Passenger 12 57 18 19 core
Passenger 13 45 18 19 core
Passenger 14 33 18 19 core
Passenger 15 19 18 19 core
Passenger 16 7 18 19 core
Passenger 17 -5 18 19 core
Passenger 18 -17 18 19 core
Passenger 19 -29 18 19 core
Passenger 20 -41 18 19 core
Passenger 21 -53 18 19 core
Passenger 22 93 18 -18 core
Passenger 23 81 18 -18 core
Passenger 24 69 18 -18 core
Passenger 25 57 18 -18 core
Passenger 26 45 18 -18 core
Passenger 27 33 18 -18 core
Passenger 28 21 18 -18 core
Passenger 29 9 18 -18 core
Passenger 30 -3 18 -18 core
Passenger 31 -15 18 -18 core
Passenger 32 -27 18 -18 core
Passenger 33 -39 18 -18 core
Passenger 34 -51 18 -18 core
Passenger 35 126 18 -24 core
Passenger 36 138 18 -24 core
Passenger 37 150 18 -24 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound Engine_Jet_AC130
StartSoundLength 20
PropSound Engine_Jet_AC130
PropSoundLength 20
ShootSoundPrimary Shoot_Bomb
ShootSoundSecondary RocketFire2
//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
AddRecipeParts core 1 GFS_BomberFrame
AddRecipeParts rightWing 1 GFS_BomberWing
AddRecipeParts leftWing 1 GFS_BomberWing
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 16 white
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 600 -63 4 -37 313 76 74
SetupPart tail 300 -223 10 -19 160 86 38
SetupPart rightWing 250 -46 69 36 98 11 363
SetupPart leftWing 250 -46 69 -399 98 11 363

BulletDetection 10
