// ------------------------------------------------------ Naming ------------------------------------------------------
Name Douglas AD-4N Skyraider
ShortName AD-4N
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconad4n
Model usncw.ad4n
Texture ad4n
//Third Person Camera Distance
HasGear True
HasWing True
CameraDistance 10.0
// ------------------------------------------------------ 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.7
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.5
TurnRightSpeed 1.5
//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 1.4
//Wheels
NumWheels 3
WheelPosition 0 58 -30 -43
WheelPosition 1 58 -30 43
WheelPosition 2 -80 -10 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -115 -33 0 core metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Bomb
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 1
ShootDelaySecondary 5
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 64 6 -73 leftWing m60
ShootPointPrimary 64 7 -78 leftWing m60
ShootPointPrimary 64 6 73 rightWing m60
ShootPointPrimary 64 7 78 rightWing m60
ShootPointSecondary 34 -5 -76 leftWing
ShootPointSecondary 34 -4 -84 leftWing
ShootPointSecondary 34 -3 -92 leftWing
ShootPointSecondary 34 -2 -100 leftWing
ShootPointSecondary 34 -1 -108 leftWing
ShootPointSecondary 34 -5 76 rightWing
ShootPointSecondary 34 -4 84 rightWing
ShootPointSecondary 34 -3 92 rightWing
ShootPointSecondary 34 -2 100 rightWing
ShootPointSecondary 34 -1 108 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 8
MissileSlots 0
AllowAllAmmo False
AddAmmo CBU-87
AddAmmo 250_Ib_General-Purpose_Bomb
AddAmmo 500_Ib_General-Purpose_Bomb
AddAmmo largeBomb
AddAmmo smallBomb
AddAmmo napalm
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 54 16 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound propStart
StartSoundLength 20
PropSound propSound
PropSoundLength 30
ShootSoundPrimary PlaneShoot
ShootSoundSecondary bomb
// ------------------------------------------------------ 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 metalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts bay 1 bombBay
AddRecipeParts tail 1 metalTail
AddRecipeParts tailWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 6 green
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 70 49 38 -5 10 20 10
SetupPart airframe 190 -60 11 -13 169 27 26
SetupPart tail 65 -81 35 0 29 3 49
SetupPart rightWing 80 10 14 0 49 12 123
SetupPart leftWing 80 10 14 -123 49 12 123
CollisionPoint 98 24 0 core
CollisionPoint 24 24 0 core
CollisionPoint 98 24 0 core
CollisionPoint 24 24 0 core
CollisionPoint 98 24 0 core
CollisionPoint 24 24 0 core
CollisionPoint 98 24 0 core
CollisionPoint 24 24 0 core
CollisionPoint 35 24 123 rightWing
CollisionPoint 35 24 -123 leftWing
CollisionPoint -79 66 0 tail
BulletDetection 7
//Collision points for breaking wings etc. upon crashing
flightCeiling 850

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 30

//max speeds sea level and high alt when afterburning or WEPing
maxSpeed 1.32
highAltMax 1.32

//max speeds sea level and high alt when not afterburning dry thrust cruise speed
maxSpeedDry 1.26
highAltMaxDry 1.26

//max speed during a high energy death dive
diveBonus 1.4
//max speed when dying from low energy stall climb
stallSuffering 0.6

//bonus multiplier for gaining energy while diving
energyGainRate 0.6

//how fast energy is lost multiplier
energyLossRate 0.3

//maneuvrability multipliers applied when max energy, if low energy defaults to just x1  you can also use 0.x to simulate controls locking up at high speed
rollBonus 0.8
yawBonus 1.2
pitchBonus 1.5

//maneuvrability multiplier when low energy stall
rollStall 0.5
yawStall 0.8
pitchStall 0.8

//multiplier to fuel consumption when afterburner on
afterBurnFuelPenalty 1.5