// ------------------------------------------------------ Naming ------------------------------------------------------
Name Shenyang J-11B
ShortName J-11B
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconj11b
Model pla.j11b
Texture j11b
//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
ModelScale 1.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 0.85
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.88
TurnRightSpeed 1.88
//Pitch modifiers
LookUpSpeed 0.91
LookDownSpeed 0.91
//Roll modifiers
RollLeftSpeed 1.6
RollRightSpeed 1.6
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.5
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -57 -10 -45
WheelPosition 1 -57 -10 45
WheelPosition 2 50 -10 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 0 0 0 core Repair
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
ShootParticlesPrimary flansmod.fmflame 0 0 0
ShootParticlesSecondary flansmod.fmflame 0 0 0
Secondary Missile
//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 FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 85 45 17 core rpd
ShootPointSecondary 39 20 0 core
ShootPointSecondary 22 9 -25 core
ShootPointSecondary 12 28 -64 leftWing
ShootPointSecondary -7 28 -90 leftWing
ShootPointSecondary -40 27 -113 leftWing
ShootPointSecondary -45 34 -146 leftWing
ShootPointSecondary 12 28 64 rightWing
ShootPointSecondary -7 28 90 rightWing
ShootPointSecondary -40 27 113 rightWing
ShootPointSecondary -45 34 146 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 8
AllowAllAmmo False
AddAmmo PL-8
AddAmmo PL-12
AddAmmo R-27
AddAmmo R-27T
AddAmmo R-73
AddAmmo R-77
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 121 42 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound JetStart
StartSoundLength 205
PropSound SU27Engine
PropSoundLength 60
ShootSoundPrimary GSHShoot
ShootSoundSecondary MissileShoot
flightCeiling 1900
// ------------------------------------------------------ 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 4 Repair
AddRecipeParts rightWing 1 lostWing
AddRecipeParts leftWing 1 lostWing
AddRecipeParts tail 20 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 core 40 116 40 -5 10 20 10
SetupPart airframe 580 -80 21 -28 250 32 56
SetupPart tail 200 -200 21 -80 120 32 160
SetupPart leftWing 260 -120 21 -148 100 32 120
SetupPart rightWing 260 -120 21 28 100 32 120
BulletDetection 6
HasWing False


//RightWing
CollisionPoint -43 28 -18 rightWing
CollisionPoint -43 28 -101 rightWing
CollisionPoint -3 28 -18 rightWing
CollisionPoint -3 28 -101 rightWing
//LeftWing
CollisionPoint -43 28 18 leftWing
CollisionPoint -43 28 101 leftWing
CollisionPoint -3 28 18 leftWing
CollisionPoint -3 28 101 leftWing
//Nose
CollisionPoint 81 38 0 core
CollisionPoint 46 38 0 core
CollisionPoint 81 38 0 core
CollisionPoint 46 38 0 core
CollisionPoint 81 38 0 core
CollisionPoint 46 38 0 core
CollisionPoint 81 38 0 core
CollisionPoint 46 38 0 core

//Tail
CollisionPoint -134 29 0 tail

BulletSpeed 3.5
BulletSpread 1

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.24
CollisionDamageTimes 50

hasPlaneRadar true
radarPositionOffset 20
radarRange 2000
radarVisible true 
radarRefreshDelay 10

ReloadSoundPrimary PG_reload
ReloadTimePrimary 60
ReloadTimeSecondary 100
ReloadSoundSecondary PlaneBomb_reload1

EngineSoundRange 1000

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

Description Russian Fighter_Entered Service 1985_Has Radar_1900 Block Flight Ceiling_Max Speed 1600mph_Has Afterburner_5.2 minutes of fuel
//---new shit ---
//max speeds sea level and high alt when afterburning or WEPing
maxSpeed 1.7
highAltMax 3.15

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

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

//bonus multiplier for gaining energy while diving
energyGainRate 1.1

//how fast energy is lost multiplier
energyLossRate 0.5

//flight ceiling
flightCeiling 1900

//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 or whatever the fuck


//afterburner particle emitter
particleAfterBurn flansmod.fmflame 1 [-191,30,-21] [3,3,3] [3,0,0] tail
particleAfterBurn flansmod.fmflame 1 [-191,30,21] [3,3,3] [3,0,0] tail

//multiplier to fuel consumption when afterburner on
afterBurnFuelPenalty 3

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