// ------------------------------------------------------ Naming ------------------------------------------------------
Name Mikoyan MiG-29SMT Fulcrum
ShortName MiG-29SMT
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconmig29smt
Model russia.mig29smt
Texture mig29smt
//Third Person Camera Distance
CameraDistance 15.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 5.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 1.9
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.87
TurnRightSpeed 1.87
//Pitch modifiers
LookUpSpeed 0.89
LookDownSpeed 0.89
//Roll modifiers
RollLeftSpeed 1.58
RollRightSpeed 1.58
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.25
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -92 -22 -15
WheelPosition 1 -92 -22 15
WheelPosition 2 12 -19 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 Missile
Secondary Bomb
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 10
ShootDelaySecondary 10
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary SemiAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary -4 15 -64 leftWing
ShootPointPrimary -4 15 64 leftWing
ShootPointSecondary -59 13 -84 leftWing
ShootPointSecondary -59 13 84 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
AddAmmo 250_Ib_General-Purpose_Bomb
AddAmmo 500_Ib_General-Purpose_Bomb
AddAmmo KAB-500KR
AddAmmo KAB-500L
AddAmmo KAB-500M64
AddAmmo KAB-500U
AddAmmo largeBomb
AddAmmo smallBomb
AddAmmo napalm
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 57 30 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound JetStart
StartSoundLength 205
PropSound Mig29Engine
PropSoundLength 60
ShootSoundPrimary MissileShoot
ShootSoundSecondary bomb
flightCeiling 1800 
// ------------------------------------------------------ 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 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 40 69 32 -5 10 20 10
SetupPart core 390 -93 9 -23 139 31 46
SetupPart tail 140 -149 16 -16 56 14 32
SetupPart leftWing 170 -78 25 -101 40 3 83
SetupPart rightWing 170 -78 25 18 40 3 83
BulletDetection 4
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 28 0 core
CollisionPoint 46 28 0 core

//Tail
CollisionPoint -134 29 0 tail

BulletSpeed 7
BulletSpread 1

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 50

hasPlaneRadar true
radarPositionOffset 20
radarRange 2000
radarVisible true 
radarRefreshDelay 10

HasFlare True
FlareDelay 300
FlareSound Flare
TimeFlareUsing 5
ReloadSoundSecondary PlaneBomb_reload1
LockedOnSound Lock
SoundTime 8
LockedOnSoundRange 15
ReloadSoundPrimary PG_reload
ReloadTimePrimary 60
ReloadTimeSecondary 120
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

LockOnToPlanes True
LockOnToVehicles True
LockOnToPlayers False
LockOnToLivings False
CanLockOnAngle 10
MaxRangeLockOn 250
LockedOnSound LockOnTarget
SoundTime 10
LockedOnSoundRange 20
LockOnSound LockOnTarget
LockOnSoundTime 10

Description Russian Fighter_Entered Service 1982_Has Radar_1800 Block Flight Ceiling_Max Speed 1500mph_Has Afterburner_2.8 minutes of fuel
//---new shit ---
//max speeds sea level and high alt when afterburning or WEPing
maxSpeed 1.8
highAltMax 2.6

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

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

//bonus multiplier for gaining energy while diving
energyGainRate 2.0

//how fast energy is lost multiplier
energyLossRate 1.2

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

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

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 [-135,18,-18] [3,3,3] [3,0,0] tail
particleAfterBurn flansmod.fmflame 1 [-135,18,18] [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----