// ------------------------------------------------------ Naming ------------------------------------------------------
Name Sukhoi Su-24M Fencer
ShortName Su-24M
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconsu24m
Model russia.su24m
Texture su24m
//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
HasWing 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 1.7
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2.2
TurnRightSpeed 2.2
//Pitch modifiers
LookUpSpeed 1.8
LookDownSpeed 1.8
//Roll modifiers
RollLeftSpeed 2
RollRightSpeed 2
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.42
//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 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 FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 134 46 12 core twentyThreeMM
ShootPointSecondary -35 29 -83 leftWing
ShootPointSecondary -42 29 -113 leftWing
ShootPointSecondary -60 29 -152 leftWing
ShootPointSecondary -35 29 80 rightWing
ShootPointSecondary -44 29 113 rightWing
ShootPointSecondary -60 29 153 rightWing

// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 8
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 91 36 -7
Passengers 2
Passenger 1 -50 29 0 core -360 360 -90 -30 ManualBomb TVGuidedBombs
Passenger 2 91 36 7 core -360 360 -360 360 dummyGun Bombs
GunOrigin 1 12 0 0
flightCeiling 1100
invisiblePassenger 1 true
heliGuiSeat 1 true
heliGUI bombsightgui
passengerZoom 1 4
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound PlaneA
StartSoundLength 20
PropSound PlaneB
PropSoundLength 30
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 3 Repair
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 86 36 -5 10 20 10
SetupPart airframe 750 -120 17 -26 250 34 52
SetupPart tail 260 -195 17 -26 75 34 52
SetupPart leftWing 360 -90 29 -180 44 14 360
CollisionPoint 210 53 0 core
CollisionPoint 210 53 0 core
CollisionPoint 210 53 0 core
CollisionPoint 210 53 0 core
CollisionPoint 210 53 0 core
CollisionPoint 210 53 0 core
CollisionPoint 210 53 0 core
CollisionPoint 210 53 0 core
CollisionPoint -8 24 0 core
CollisionPoint -78 38 71 rightWing
CollisionPoint -78 38 -71 leftWing
CollisionPoint -171 51 0 tail
BulletSpeed 6
BulletSpread 2
BulletDetection 7


//Collison Points

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.27
CollisionDamageTimes 30

Description Tier 3_Russian Attacker_Has Radar_Has 1100 Block Flight Ceiling
hasPlaneRadar true
radarPositionOffset 20
radarRange 1250
radarVisible true 
radarRefreshDelay 15


ReloadSoundPrimary PG_reload
ReloadTimePrimary 80
ReloadTimeSecondary 120
ReloadSoundSecondary PlaneBomb_reload1

EngineSoundRange 1000

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

hasAfterBurner true

AddEmitter flansmod.fmsmoke 1 [-196,30,13] [1,1,1] [-3,0,0] 0.05 0.2 0 1 tail
AddEmitter flansmod.fmflame 1 [-196,30,13] [1,1,1] [-2,0,0] 0.2 0.5 0 1 tail
AddEmitter flansmod.fmflame 1 [-196,30,13] [1,1,1] [-4,0,0] 0.5 0.8 0 1 tail

AddEmitter flansmod.fmflame 1 [-196,30,13] [3,1,1] [-1,0,0] 0.5 0.8 0 1 tail
AddEmitter flansmod.fmflame 1 [-196,30,13] [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-196,30,13] [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-196,30,13] [3,3,3] [3,0,0] 0.8 2 0 1 tail

AddEmitter flansmod.fmsmoke 1 [-196,30,-13] [1,1,1] [-3,0,0] 0.05 0.2 0 1 tail
AddEmitter flansmod.fmflame 1 [-195,30,-13] [1,1,1] [-2,0,0] 0.2 0.5 0 1 tail
AddEmitter flansmod.fmflame 1 [-196,30,-13] [1,1,1] [-4,0,0] 0.5 0.8 0 1 tail

AddEmitter flansmod.fmflame 1 [-196,30,-13] [3,1,1] [-1,0,0] 0.5 0.8 0 1 tail
AddEmitter flansmod.fmflame 1 [-196,30,-13] [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-196,30,-13] [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-196,30,-13] [3,3,3] [3,0,0] 0.8 2 0 1 tail

afterBurnFuelPenalty 3

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