// ------------------------------------------------------ Naming ------------------------------------------------------
Name Shenyang J-8B Finback
ShortName J-8B
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconj8b
Model pla.j8b
Texture j8b
//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
// ------------------------------------------------------ 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
Acceleration 1.5 2.0
//Yaw modifiers
TurnLeftSpeed 0.8
TurnRightSpeed 0.8
//Pitch modifiers
LookUpSpeed 0.55
LookDownSpeed 0.55
//Roll modifiers
RollLeftSpeed 2.0
RollRightSpeed 2.0
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.35
//Wheels
NumWheels 3
WheelPosition 0 -42 -10 -50
WheelPosition 1 -42 -10 50
WheelPosition 2 135 -10 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 54 2 0 nose parts_metalpropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Missile
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
ShootDelaySecondary 20
//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 80 20 0 core browning
ShootPointSecondary 56 23 -34 leftWing
ShootPointSecondary -13 24 -71 leftWing
ShootPointSecondary 56 23 34 rightWing
ShootPointSecondary -13 24 71 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 2
AllowAllAmmo False
AddAmmo PL-2
AddAmmo PL-5
AddAmmo PL-8
AddAmmo PL-12
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 10000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 134 39 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound PlaneA
StartSoundLength 20
PropSound Mig21Engine
PropSoundLength 60
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 1 parts_metalcockpit 32 iron 8 flint
AddRecipeParts coreWheel 2 parts_smallwheel
AddRecipeParts nose 1 parts_metalnose
AddRecipeParts rightWing 1 parts_metalwingsmall
AddRecipeParts leftWing 1 parts_metalwingsmall
AddRecipeParts bay 1 parts_bombbay
AddRecipeParts tail 1 parts_metaltail
AddRecipeParts tailWheel 1 parts_smallwheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 0 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 150 -39 4 -9 157 26 18
SetupPart leftWing 150 -41 10 -56 92 4 47
SetupPart rightWing 150 -41 10 10 92 4 47
SetupPart tail 100 -100 4 -9 61 24 18
HasGear True
BulletDetection 5
Size 64 20
//Collision points for breaking wings etc. upon crashing
//Core
IsExplosionWhenDestroyed true
CollisionDamageEnable false
CollisionDamageThrottle 0.20
CollisionDamageTimes 0

HasFlare True
FlareDelay 50
FlareSound FlareDeploy
TimeFlareUsing 2
LockedOnSound LockonWarning
SoundTime 14
LockedOnSoundRange 5

hasAfterBurner true

particleAfterBurn flansmod.fmflame 1 [-191,40,-11] [3,3,3] [3,0,0] tail
particleAfterBurn flansmod.fmsmoke 1 [-191,40,-11] [3,3,3] [3,0,0] tail
particleAfterBurn flansmod.fmflame 1 [-191,40,11] [3,3,3] [3,0,0] tail
particleAfterBurn flansmod.fmsmoke 1 [-191,40,11] [3,3,3] [3,0,0] tail