// ------------------------------------------------------ Naming ------------------------------------------------------
Name Chengdu J-7 Fishcan
ShortName J-7
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconj7
Model pla.j7
Texture j7
//Third Person Camera Distance
CameraDistance 15.0
HasGear 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.9
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.5
TurnRightSpeed 1.5
//Pitch modifiers
LookUpSpeed 2.2
LookDownSpeed 2.2
//Roll modifiers
RollLeftSpeed 3
RollRightSpeed 3
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.35
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -27 -10 -32
WheelPosition 1 -27 -10 32
WheelPosition 2 78 -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
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 SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appea
ShootPointPrimary 48 11 1 bay rpd
ShootPointPrimary 48 11 -1 bay rpd
ShootPointSecondary 11 18 -43 leftWing
ShootPointSecondary 11 18 43 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 2
AllowAllAmmo False
AddAmmo PL-2
AddAmmo PL-5
AddAmmo PL-8
AddAmmo K-13M
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 61 27 0
Passengers 0
flightCeiling 1850
// ------------------------------------------------------ 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 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 core 35 65 11 -5 10 20 10
SetupPart airframe 190 -39 4 -9 157 26 18
SetupPart leftWing 82 -41 10 -56 92 4 47
SetupPart rightWing 82 -41 10 10 92 4 47
SetupPart tail 64 -100 4 -9 61 24 18

Size 64 20
BulletDetection 3

CollisionPoint 100 24 0 core
CollisionPoint 100 40 0 core
CollisionPoint 100 24 0 core
CollisionPoint 100 40 0 core
CollisionPoint 100 24 0 core
CollisionPoint 100 40 0 core
CollisionPoint 100 24 0 core
CollisionPoint 100 40 0 core
CollisionPoint -14 10 98 leftWing
CollisionPoint -14 10 -98 leftWing
CollisionPoint -78 68 0 tail
CollisionPoint -82 31 -32 tail
CollisionPoint -82 31 32 tail

BulletDetection 3


IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 50

BulletSpeed 6
BulletSpread 2

ReloadSoundPrimary PG_reload
ReloadTimePrimary 80
ReloadTimeSecondary 150
ReloadSoundSecondary PlaneBomb_reload1

EngineSoundRange 1000

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

hasPlaneRadar true
radarPositionOffset 20
radarRange 2000
radarVisible true 
radarRefreshDelay 10
ShootParticlesPrimary flansmod.fmflame 0 0 0
ShootParticlesSecondary cloud 1 0 0
ShootParticlesSecondary cloud -1 0 0
ShootParticlesSecondary explode -1 0 0
ShootParticlesSecondary flame -1 0 0

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

//afterburner particle emitter
particleAfterBurn flansmod.fmflame 1 [-126,24,0] [3,3,3] [3,0,0] tail

//multiplier to fuel consumption when afterburner on
afterBurnFuelPenalty 3