// ------------------------------------------------------ Naming ------------------------------------------------------
Name Yakovlev Yak-38M Forger
ShortName Yak-38M
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconyak38m
Model russia.yak38m
Texture yak38m
//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
HasWing True
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode VTOL
//Throttle
MaxThrottle 1.3
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.5
TurnRightSpeed 1.5
//Pitch modifiers
LookUpSpeed 1.5
LookDownSpeed 1.5
//Roll modifiers
RollLeftSpeed 1.5
RollRightSpeed 1.5
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.37
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -27 -10 -30
WheelPosition 1 -27 -10 30
WheelPosition 2 90 -10 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 54 0 0 core Repair
HeliPropeller 0 54 0 0 core Repair
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
ShootParticlesPrimary flame 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 True
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 19 14 -28 leftWing rpd
ShootPointPrimary 19 14 -30 leftWing rpd
ShootPointPrimary 19 14 28 rightWing rpd
ShootPointPrimary 19 14 30 rightWing rpd
ShootPointSecondary 14 11 -40 leftWing
ShootPointSecondary 14 11 40 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 2
AllowAllAmmo False
AddAmmo R-60
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 82 16 0
Passengers 0
flightCeiling 1100
helipadLandable true
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HarrierIdle
StartSoundLength 140
PropSound HarrierRun
PropSoundLength 41
ShootSoundPrimary 30mmcannon
ShootSoundSecondary RocketFire2
// ------------------------------------------------------ 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 7 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 35 39 8 -5 10 20 10
SetupPart airframe 260 -72 4 -15 130 25 30
SetupPart tail 90 -124 11 -11 52 20 22
SetupPart leftWing 110 -58 12 -52 42 8 37
SetupPart rightWing 110 -58 12 15 42 8 37
BulletDetection 3


CollisionPoint 148 30 0 core
CollisionPoint 148 30 0 core
CollisionPoint 148 30 0 core
CollisionPoint 148 30 0 core
CollisionPoint 148 30 0 core
CollisionPoint 148 30 0 core
CollisionPoint -50 29 -97 leftWing
CollisionPoint -80 28 -97 leftWing
CollisionPoint -50 29 97 rightWing
CollisionPoint -80 28 97 rightWing
CollisionPoint -160 31 0 tail

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.3
CollisionDamageTimes 40

BulletSpeed 6
BulletSpread 2

Description Tier 3_Russian VTOL Fighter_1100 Block Flight Ceiling


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

EngineSoundRange 1000

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

hasAfterBurner true

AddEmitter flansmod.fmsmoke 1 [-77,15,16] [1,1,1] [-3,0,0] 0.05 0.2 0 1 tail
AddEmitter flansmod.fmflame 1 [-77,15,16] [1,1,1] [-2,0,0] 0.2 0.5 0 1 tail
AddEmitter flansmod.fmflame 1 [-77,15,16] [1,1,1] [-4,0,0] 0.5 0.8 0 1 tail

AddEmitter flansmod.fmflame 1 [-77,15,16] [3,1,1] [-1,0,0] 0.5 0.8 0 1 tail
AddEmitter flansmod.fmflame 1 [-77,15,16] [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-77,15,16 [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-77,15,16] [3,3,3] [3,0,0] 0.8 2 0 1 tail

AddEmitter flansmod.fmsmoke 1 [-77,15,-16] [1,1,1] [-3,0,0] 0.05 0.2 0 1 tail
AddEmitter flansmod.fmflame 1 [-77,15,-16] [1,1,1] [-2,0,0] 0.2 0.5 0 1 tail
AddEmitter flansmod.fmflame 1 [-77,15,-16] [1,1,1] [-4,0,0] 0.5 0.8 0 1 tail

AddEmitter flansmod.fmflame 1 [-77,15,-16] [3,1,1] [-1,0,0] 0.5 0.8 0 1 tail
AddEmitter flansmod.fmflame 1 [-77,15,-16] [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-77,15,-16] [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-77,15,-16] [3,3,3] [3,0,0] 0.8 2 0 1 tail

afterBurnFuelPenalty 3

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