// ------------------------------------------------------ Naming ------------------------------------------------------
Name Yakolev Yak-9U (Orussian Air Force Edition)
ShortName orussianYak9
ItemID 23318
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon OrussianYak9
Model rainfire.Yakolev9
Texture SkinYakolev9
//Third Person Camera Distance
CameraDistance 13.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 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 6.7
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2
TurnRightSpeed 2
//Pitch modifiers
LookUpSpeed 2
LookDownSpeed 2
//Roll modifiers
RollLeftSpeed 2
RollRightSpeed 2
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.1
//Wheels
NumWheels 3
WheelPosition 0 34 -8 -52
WheelPosition 1 34 -8 51
WheelPosition 2 -68 5 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -69 -12 0 nose metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Bomb
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
ShootDelaySecondary 30
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary False
//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 45 7 78 rightWing browningM2
ShootPointPrimary 45 7 -78 leftWing browningM2
ShootPointPrimary 88 15 0 nose shvakCannon
ShootPointSecondary -4 0 0 core
ShootParticlesPrimary cloud 0.2 0 0
ShootParticlesPrimary flansmod.fmflame 0.3 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 8
BombSlots 2
MissileSlots 0
AllowAllAmmo False
AddAmmo generic150lbBomb
AddAmmo smallBomb
AddAmmo largeBomb
AddAmmo napalm
AddAmmo WW2_Bomb_USA50kg
AddAmmo WW2_Bomb_UK50kg
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 3000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 9 9 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound wtYakolev9Start
StartSoundLength 20
PropSound wtYakolev9Engine
PropSoundLength 30
ShootSoundPrimary Yakolev9Fire
ShootSoundSecondary bomb
// ------------------------------------------------------ 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 metalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 2 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 gray
AddDye 2 red
AddDye 3 black
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 350 -16 0 -11 55 26 22 8
SetupPart nose 150 40 0 -11 49 27 21 6
SetupPart tail 205 -92 9 -11 75 17 22 7
SetupPart rightWing 150 6 5 12 30 6 96 6
SetupPart leftWing 150 6 5 -107 30 6 95 6
SetupPart rightWingWheel 50 31 -10 50 6 14 4
SetupPart leftWingWheel 50 30 -10 -53 7 14 4
SetupPart tailWheel 50 -72 3 -2 7 6 4
BulletDetection 25
//Collision points for breaking wings etc. upon crashing
//Nose
CollisionPoint 89 15 0 nose
CollisionPoint 81 15 7 nose
CollisionPoint 81 22 -1 nose
CollisionPoint 81 15 -7 nose
CollisionPoint 82 9 0 nose
//RightWing
CollisionPoint 42 8 16 rightWing
CollisionPoint 42 8 31 rightWing
CollisionPoint 42 8 46 rightWing
CollisionPoint 38 8 60 rightWing
CollisionPoint 35 8 73 rightWing
CollisionPoint 31 8 89 rightWing
CollisionPoint 29 8 103 rightWing
//LeftWing
CollisionPoint 42 8 -18 leftWing
CollisionPoint 42 8 -34 leftWing
CollisionPoint 38 8 -48 leftWing
CollisionPoint 35 8 -64 leftWing
CollisionPoint 32 8 -78 leftWing
CollisionPoint 30 8 -92 leftWing
CollisionPoint 30 8 -104 leftWing
//Tail
CollisionPoint -59 26 0 tail
CollisionPoint -62 35 0 tail
CollisionPoint -67 44 0 tail
CollisionPoint -64 40 0 tail
CollisionPoint -62 20 6 tail
CollisionPoint -62 20 -8 tail
CollisionPoint -65 20 15 tail
CollisionPoint -69 20 23 tail
CollisionPoint -72 20 31 tail
CollisionPoint -66 20 -16 tail
CollisionPoint -68 20 -24 tail
CollisionPoint -72 20 -32 tail
ModelScale 1.2