// ------------------------------------------------------ Naming ------------------------------------------------------
Name McDonnell Douglas F-4J Phantom II
ShortName F-4J
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconf4j
Model usnvw.f4j
Texture f4j
//Third Person Camera Distance
CameraDistance 20.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.0
HasGear True
HasWing 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.80
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.5
TurnRightSpeed 1.5
//Pitch modifiers
LookUpSpeed 2
LookDownSpeed 2
//Roll modifiers
RollLeftSpeed 2.75
RollRightSpeed 2.75
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.69
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -40 -10 -58
WheelPosition 1 -40 -10 58
WheelPosition 2 118 -10 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 54 0 0 core Repair
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
ShootParticlesPrimary flansmod.fmflame 0 0 0
Secondary Missile
ShootParticlesSecondary flansmod.fmflame 0 0 0
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 1
ShootDelaySecondary 20
//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 166 20 0 nose minigun
ShootPointPrimary 50 15 -37 leftWing
ShootPointPrimary 50 15 -55 leftWing
ShootPointPrimary 50 15 37 rightWing
ShootPointPrimary 50 15 55 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 8
AllowAllAmmo False
AddAmmo AIM-7
AddAmmo AIM-9
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 94 42 0
Passengers 1
Passenger 1 61 46 0 core
flightCeiling 1800
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound PlaneA
StartSoundLength 60
PropSound PlaneB
PropSoundLength 47
ShootSoundPrimary JetShoot
ShootSoundSecondary MissileShoot
// ------------------------------------------------------ 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 Repair
AddRecipeParts engine2 3 Repair
AddRecipeParts engine 3 Repair
AddRecipeParts rightWing 1 lostWing
AddRecipeParts leftWing 1 lostWing
AddRecipeParts tail 5 Repair
AddRecipeParts airframe 1 lostWing
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 168 23 -11 30 22 22
SetupPart nose 100 146 23 -12 22 26 24
SetupPart core 100 122 23 -13 24 31 26
SetupPart core 100 44 23 -14 78 47 28
SetupPart core 100 6 23 -14 38 47 28
SetupPart core 100 6 23 -31 70 33 17
SetupPart core 100 6 23 14 70 33 16
SetupPart core 100 -86 15 -14 92 52 28
SetupPart core 100 -86 15 -31 92 41 17
SetupPart core 100 -86 15 14 92 41 17
SetupPart tail 100 -144 15 -14 58 49 28
SetupPart tail 100 -128 15 -31 42 41 17
SetupPart tail 100 -128 15 14 42 41 17
SetupPart tail 100 -208 27 -14 64 36 28
SetupPart tail 100 -210 62 -3 106 38 6
SetupPart tail 100 -208 22 -55 54 29 41
SetupPart tail 100 -208 22 14 54 29 41
SetupPart leftWing 100 -100 22 -90 142 10 59
SetupPart leftWing 100 -111 22 -130 94 11 40
SetupPart rightWing 100 -100 22 31 142 10 59
SetupPart rightWing 100 -111 22 90 94 11 40

//Collison Points
CollisionPoint 198 31 0 nose
CollisionPoint 177 31 0 nose
CollisionPoint 157 39 0 nose
CollisionPoint 136 45 0 core
CollisionPoint 76 54 0 core
CollisionPoint 22 55 0 core
CollisionPoint -37 55 0 core
CollisionPoint 40 38 -20 core
CollisionPoint -45 37 -20 core
CollisionPoint 40 38 20 core
CollisionPoint -45 37 20 core
CollisionPoint -116 55 0 tail
CollisionPoint -176 63 0 tail
CollisionPoint -191 86 0 tail
CollisionPoint -190 38 -28 tail
CollisionPoint -190 37 27 tail
CollisionPoint -116 25 -15 tail
CollisionPoint -116 25 15 tail
CollisionPoint -48 24 -59 leftWing
CollisionPoint -89 31 -121 leftWing
CollisionPoint -48 24 59 rightWing
CollisionPoint -89 31 121 rightWing

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 50

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 100

BulletDetection 7

BulletSpeed 3.5
BulletSpread 2

Afterbuner_5.7 minutes of fuel
hasPlaneRadar true
radarPositionOffset 20
radarRange 1250
radarVisible true 
radarRefreshDelay 15

ShootParticlesPrimary cloud 0 0 0
ShootParticlesSecondary cloud 1 0 0
ShootParticlesSecondary cloud -1 0 0
ShootParticlesSecondary explode -1 0 0
ShootParticlesSecondary flame -1 0 0

EngineSoundRange 1000

ReloadSoundPrimary PG_reload
ReloadTimePrimary 80
ReloadTimeSecondary 80
ReloadSoundSecondary PlaneBomb_reload1

HasFlare True
FlareDelay 400
FlareSound Flare
TimeFlareUsing 5
LockedOnSound Lock
SoundTime 8
LockedOnSoundRange 15

//---new stuff ---
//max speeds sea level and high alt when afterburning or WEPing
maxSpeed 1.786
highAltMax 2.57

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

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

//bonus multiplier for gaining energy while diving
energyGainRate 0.8

//how fast energy is lost multiplier
energyLossRate 0.6

//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 1.2
yawBonus 1.2
pitchBonus 1.5

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

hasAfterBurner true
//use this to rename afterburner to WEP or 110% throttle or Notleistung

//afterburner particle emitter
AddEmitter flansmod.fmflame 1 [-116,25,-15] [3,3,3] [-3,0,0] 0.75 2 0 1 tail
AddEmitter flansmod.fmsmoke 1 [-116,25,-15] [1,1,1] [-1,0,0] 0.25 0.5 0 1 tail
AddEmitter flansmod.fmflame 1 [-116,25,15] [3,3,3] [-3,0,0] 0.75 2 0 1 tail
AddEmitter flansmod.fmsmoke 1 [-116,25,15] [1,1,1] [-1,0,0] 0.25 0.5 0 1 tail

//multiplier to fuel consumption when afterburner on
afterBurnFuelPenalty 3

//measured in seconds at 100%throttle afterburner off
labjacFuel 720
//---end of new stuff----