// ------------------------------------------------------ Naming ------------------------------------------------------
Name  Mikoyan-Gurevich MiG-23 Flogger
ShortName MiG-23
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconmig23
Model russia.mig23
Texture mig23
//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.83
TurnRightSpeed 1.83
//Pitch modifiers
LookUpSpeed 0.87
LookDownSpeed 0.87
//Roll modifiers
RollLeftSpeed 1.55
RollRightSpeed 1.55
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -51 -10 -31
WheelPosition 1 -51 -10 31
WheelPosition 2 74 -14 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
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
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 45 10 -1 bay rpd
ShootPointPrimary 45 10 1 bay rpd
ShootPointSecondary 30 27 -26 leftWing
ShootPointSecondary 38 8 -12 leftWing
ShootPointSecondary 30 27 26 rightWing
ShootPointSecondary 38 8 12 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 4
AllowAllAmmo False
AddAmmo R-27
AddAmmo R-27T
AddAmmo R-60
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 62 19 0
Passengers 0
flightCeiling 1400
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound PlaneA
StartSoundLength 20
PropSound PlaneB
PropSoundLength 30
ShootSoundPrimary N37_Fire
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 rightWing 1 lostWing
AddRecipeParts leftWing 1 lostWing
AddRecipeParts tail 12 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 70 54 31 -6 15 12 10
SetupPart airframe 327 -45 14 -14 187 31 31
SetupPart leftWing 245 -73 23 -144 109 6 124
SetupPart tail 327 -158 11 -14 112 67 31
SetupPart rightWing 245 -73 23 15 109 6 124
SetupPart engine 57 -162 14 -16 106 31 33

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 5


//Collison Points

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 50

BulletSpeed 3.5
BulletSpread 2


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

ReloadSoundPrimary PG_reload
ReloadTimePrimary 80
ReloadTimeSecondary 100
ReloadSoundSecondary PlaneBomb_reload1

EngineSoundRange 1000

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


maxSpeed 1.8
highAltMax 2.12


maxSpeedDry 1.4
highAltMaxDry 1.5


diveBonus 2.3

stallSuffering 1


energyGainRate 0.8


energyLossRate 0.6



rollBonus 1.2
yawBonus 1.2
pitchBonus 1.5


rollStall 0.8
yawStall 0.8
pitchStall 0.7

hasAfterBurner true

particleAfterBurn flansmod.fmflame 1 [-144,27,4] [3,3,3] [3,0,0] tail
particleAfterBurn flansmod.fmflame 1 [-144,27,-4] [3,3,3] [3,0,0] tail
particleAfterBurn flansmod.fmflame 1 [-144,27,4] [3,3,3] [3,0,0] tail
particleAfterBurn flansmod.fmflame 1 [-144,27,-4] [3,3,3] [3,0,0] tail
particleAfterBurn flansmod.fmflame 1 [-144,27,0] [3,3,3] [3,0,0] tail

afterBurnFuelPenalty 3

//measured in seconds at 100%throttle afterburner off
labjacFuel 720