// ------------------------------------------------------ Naming ------------------------------------------------------
Name Sukhoi Su-47 Berkut
ShortName Su-47
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconsu47
Model russia.su47
Texture su47
//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
// ------------------------------------------------------ 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.88
TurnRightSpeed 1.88
//Pitch modifiers
LookUpSpeed 0.95
LookDownSpeed 0.95
//Roll modifiers
RollLeftSpeed 1.61
RollRightSpeed 1.61
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.23
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -57 -10 -45
WheelPosition 1 -57 -10 45
WheelPosition 2 50 -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 None
//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 37 52 26 core rpd
ShootPointSecondary -29 18 0 core rpd
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 0
AllowAllAmmo False
AddAmmo r73
AddAmmo r27
AddAmmo r77
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 83 43 0
Passengers 0
flightCeiling 1900
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound JetStart
StartSoundLength 205
PropSound SU27Engine
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 4 Repair
AddRecipeParts rightWing 1 lostWing
AddRecipeParts leftWing 1 lostWing
AddRecipeParts tail 20 Repair
AddRecipeParts airframe 1 lostWing
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
flightCeiling 2000
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 40 91 21 -5 10 20 10
SetupPart airframe 580 -80 21 -28 250 32 56
SetupPart tail 290 -200 21 -80 120 32 160
SetupPart leftWing 200 -120 21 -148 100 32 120
SetupPart rightWing 200 -120 21 28 100 32 120
BulletDetection 5


//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 38 0 core
CollisionPoint 46 38 0 core
CollisionPoint 81 38 0 core
CollisionPoint 46 38 0 core
CollisionPoint 81 38 0 core
CollisionPoint 46 38 0 core
CollisionPoint 81 38 0 core
CollisionPoint 46 38 0 core
//Tail
CollisionPoint -114 10 0 tail

BulletSpeed 8
BulletSpread 1

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.24
CollisionDamageTimes 60

Description Tier 4.5_Russian Experimental Fighter_Has Radar_1900 Block Flight Ceiling
hasPlaneRadar true
radarPositionOffset 20
radarRange 2000
radarVisible true 
radarRefreshDelay 10

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 60
ReloadTimeSecondary 120
ReloadSoundSecondary PlaneBomb_reload1

EngineSoundRange 1000

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