// Identity
Name Yak-9
ShortName yak9

// Item and rendering
Icon Yak9
Model ww2.Yak9
Texture yak9
AddDye 6 silver
ModelScale 1.3

// Recipe
AddRecipeParts core 1 metalCockpit
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

// Inventory
CargoSlots 0
BombSlots 3
MissileSlots 0
AllowAllAmmo False
AddAmmo largeBomb
AddAmmo smallBomb
AddAmmo napalm
FuelTankSize 6000

// Real-world physics
RealMassKg 2760
RealEnginePowerPS 1180
RealMaxSpeedKmh 558
RealWingSpanM 9.74
RealWingAreaM2 17.15
RealClimbRateMs 13.6

// Movement
RestingPitch 5.0
MaxThrottle 3.8
MaxNegativeThrottle 0.0
TurnLeftSpeed 1.5
TurnRightSpeed 1.5
LookUpSpeed 1.2
LookDownSpeed 1.0
RollLeftSpeed 1.0
RollRightSpeed 1.0
Drag 1.0
WheelSpringStrength 0.125

// Weaponry
Mode Plane
Primary Gun
Secondary Bomb
ShootDelayPrimary 3
ShootDelaySecondary 100
AlternatePrimary False
AlternateSecondary False
ModePrimary FullAuto
ModeSecondary FullAuto
ShootPointPrimary 60 3 5 nose dp28
ShootPointPrimary 60 3 -5 nose dp28
ShootPointSecondary -30 -12 0
DamageModifierPrimary 50
ReadWeaponsFromGunTypes true

// Health and armour
SetupPart core 1000 -8 -7 -10 25 24 20
SetupPart nose 500 20 -7 -10 50 18 20
SetupPart rightWing 500 -3 -2 10 28 2 72
SetupPart leftWing 500 -3 -2 -78 28 2 72
SetupPart bay 500 -55 -7 -10 48 18 20
SetupPart tail 500 -70 -5 -8 18 14 16
BulletDetection 11
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 10.0
WheelPosition 0 20 -30 -30
WheelPosition 1 20 -30 30
WheelPosition 2 -82 -9 0
Propeller 0 0 0 0 nose metalPropeller
Pilot 12 4 0
Passengers 0
CollisionPoint 9 -3 80 rightWing
CollisionPoint 9 -3 60 rightWing
CollisionPoint 9 -3 40 rightWing
CollisionPoint 9 -3 20 rightWing
CollisionPoint 9 -3 -80 leftWing
CollisionPoint 9 -3 -60 leftWing
CollisionPoint 9 -3 -40 leftWing
CollisionPoint 9 -3 -20 leftWing
CollisionPoint 20 2 0 nose
CollisionPoint 40 2 0 nose
CollisionPoint -60 2 0 bay
CollisionPoint -40 2 0 bay
CollisionPoint -80 2 0 tail

// Sounds and particles
StartSound propStart
StartSoundLength 20
PropSound propSound
PropSoundLength 30
ShootSoundPrimary PlaneShoot
ShootSoundSecondary bomb