// ------------------------------------------------------ Naming ------------------------------------------------------
Name Sukhoi Su-57M
ShortName sugoiSu57M
ItemID 23318
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon SU25
Model rainfire.Su57M
Texture SkinSu57M
//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 12.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 36
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 7
TurnRightSpeed 7
//Pitch modifiers
LookUpSpeed 7
LookDownSpeed 7
//Roll modifiers
RollLeftSpeed 7
RollRightSpeed 7
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.0
//Wheels
NumWheels 3
WheelPosition 0 -44 -9 -40
WheelPosition 1 -44 -9 40
WheelPosition 2 66 -9 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 0 0 0 nose metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Missile
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 1
ShootDelaySecondary 8
//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 31 30 25 core gsh301
ShootPointPrimary 31 30 -25 core gsh301
ShootPointSecondary -53 20 -80 core 
ShootPointSecondary -53 20 80 core 
ShootParticlesPrimary cloud 0.2 0 0
ShootParticlesPrimary flansmod.fmflame 0.3 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 4
BombSlots 0
MissileSlots 8
AllowAllAmmo True
AddAmmo ah1ZRocket
AddAmmo precisionBomb
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5510
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 97 32 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound JetEngine1
StartSoundLength 20
PropSound JetEngine2
PropSoundLength 30
ShootSoundPrimary 30mmFire
ShootSoundSecondary bazookaShoot
// ------------------------------------------------------ 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 bay 1 bombBay
AddRecipeParts tail 1 metalTail
AddRecipeParts tailWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 4 blue
AddDye 3 white
AddDye 2 red
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 550 -99 16 -20 235 30 40 9
SetupPart tail 200 -160 24 -64 59 49 128
SetupPart rightWing 200 -100 24 20 140 14 105
SetupPart leftWing 200 -100 24 -125 140 14 105
SetupPart nose 375 137 24 -12 37 17 24
BulletDetection 2
ModelScale 0.9
Description Modernized in 2038 and has faster firing missiles than standard SU-57.
BulletSpeed 24
BulletSpread 1
//Radar shit, range in blocks and delay in ticks. Visible means if it does/doesn't have stealth, offset the lowness on screen.
hasPlaneRadar true
radarPositionOffset 25
radarRange 2400
radarVisible false
radarRefreshDelay 8