// Identity
Name Spitfire
ShortName Spitfire

// Item and rendering
Icon Spitfire
Model ww2.Spitfire
FlashModel DefaultFlash
Texture spitfire
AddDye 6 green

// 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 4
MissileSlots 0
AllowAllAmmo False
AddAmmo largeBomb
AddAmmo smallBomb
AddAmmo napalm
FuelTankSize 5000

// Real-world physics
RealMassKg 3004
RealEnginePowerHp 1470
RealMaxSpeedKmh 595
RealWingSpanM 11.227
RealWingAreaM2 22.49
RealClimbRateMs 13.2

// Movement
RestingPitch 5.0
MaxThrottle 4.0
MaxNegativeThrottle 0.0
TurnLeftSpeed 1.8
TurnRightSpeed 1.8
RealTurnRateDegPerSec 28.35
LookUpSpeed 1.8
LookDownSpeed 1.2
RollLeftSpeed 1.7
RollRightSpeed 1.7
Drag 1.0
WheelSpringStrength 0.125

// Weaponry
Mode Plane
Primary Gun
Secondary Bomb
ShootDelayPrimary 5
ShootDelaySecondary 100
AlternatePrimary False
AlternateSecondary False
ModePrimary FullAuto
ModeSecondary FullAuto
ShootPointPrimary 40 -4 44 rightWing browning
ShootPointPrimary 40 -4 -44 leftWing browning
ShootPointSecondary -30 -12 0
DamageModifierPrimary 50
ReadWeaponsFromGunTypes true

// Health and armour
SetupPart core 1000 -17 -7 -10 20 24 20
SetupPart nose 500 3 -7 -10 48 18 20
SetupPart rightWing 500 -7 -5 10 32 2 78
SetupPart leftWing 500 -7 -5 -88 32 2 78
SetupPart bay 500 -70 -7 -10 53 18 20
SetupPart tail 500 -93 -5 -8 23 14 16
BulletDetection 10
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 10.0
WheelPosition 0 3 -17 -7
WheelPosition 1 3 -17 7
WheelPosition 2 -82 -9 0
Propeller 0 54 0 0 nose metalPropeller
Pilot -4 -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