// ------------------------------------------------------ Naming ------------------------------------------------------
Name Douglas AC-47D Spooky
ShortName AC-47D
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconac47d
Model usafvw.ac47d
Texture ac47d
//Third Person Camera Distance
CameraDistance 45.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 ------------------------------------------------------
//Throttle
MaxThrottle 1.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1
TurnRightSpeed 1
//Pitch modifiers
LookUpSpeed 1
LookDownSpeed 1
//Roll modifiers
RollLeftSpeed 1
RollRightSpeed 1
//Drag (A (maxThrottle * numPropellers) : drag ratio of 1 : 1 with mass should keep the plane going at some reasonable speed at full throttle
Drag 1.0
//Lift (A lift : mass ratio of 1 : 1 should keep the plane perfectly level at full throttle
//Mass (In tons)
//Moment of Inertia (in crazy units. Just fiddle with this until you find something nice)
//More bounciness means the vehicle will bounce more upon going up sopes, but fall through the ground less
Bounciness 1.0
//Wheels
NumWheels 3
WheelPosition 0 84 -40 -67
WheelPosition 1 84 -40 67
WheelPosition 2 -155 -10 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -153 -27 -62 leftWing metalPropeller
Propeller 1 -153 -27 62 rightWing metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//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 15
BombSlots 0
MissileSlots 0
AllowAllAmmo False
AddAmmo none
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 164 9 -12
Passengers 4
Passenger 1 164 9 12 core
Passenger 2 -25 2 7 core -105 -80 -45 10 minigun PassengerGun2
Passenger 3 -4 2 7 core -105 -80 -45 10 minigun PassengerGun3
Passenger 4 -51 2 4 core -105 -80 -45 10 minigun PassengerGun4
GunOrigin 2 24 46 11
GunOrigin 3 3 46 11
GunOrigin 4 51 49 11
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound propStart
StartSoundLength 60
PropSound propSound
PropSoundLength 47
ShootSoundPrimary M60Shoot
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 1 advancedMetalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail
AddRecipeParts rightWingWheel 1 wheel
AddRecipeParts leftWingWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 white
AddDye 1 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 193 1 -18 22 24 36
SetupPart core 100 151 -6 -24 43 45 48
SetupPart core 100 -60 -12 -28 211 51 56
SetupPart tail 100 -214 -6 -26 154 41 52
SetupPart tail 100 -208 32 -5 83 43 10
SetupPart tail 100 -208 11 -89 83 5 178
SetupPart leftWing 100 12 -12 -322 100 31 294
SetupPart leftWing 100 51 -12 -80 100 23 36
SetupPart rightWing 100 12 -12 28 100 31 294
SetupPart rightWing 100 51 -12 45 100 23 36

BulletDetection 25
CollisionPoint 215 12 0 nose
CollisionPoint 197 12 0 nose
CollisionPoint 165 12 0 core
CollisionPoint 122 12 0 core
CollisionPoint 82 12 0 core
CollisionPoint 27 12 0 core
CollisionPoint -18 12 0 core
CollisionPoint -80 12 0 tail
CollisionPoint -115 12 0 tail
CollisionPoint -177 12 0 tail
CollisionPoint -177 59 0 tail
CollisionPoint -177 12 -71 tail
CollisionPoint -177 12 72 tail
CollisionPoint 59 -2 -71 leftWing
CollisionPoint 46 7 -203 leftWing
CollisionPoint 136 -2 -63 leftWing
CollisionPoint 59 -2 71 rightWing
CollisionPoint 46 7 203 rightWing
CollisionPoint 136 -2 63 rightWing

HasGear True
HasDoor False

//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

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.30
CollisionDamageTimes 20
