// Identity
Name Lancaster Bomber
ShortName Lancaster

// Item and rendering
Icon Lancaster
Model ww2.Lancaster
Texture lancaster
AddDye 10 green
AddDye 5 yellow

// Recipe
AddRecipeParts nose 1 vehicleSeat
AddRecipeParts core 1 metalCockpit 1 bombBay 3 vehicleSeat
AddRecipeParts rightWing 2 metalWingSection
AddRecipeParts rightWingWheel 1 largeWheel
AddRecipeParts leftWing 2 metalWingSection
AddRecipeParts leftWingWheel 1 largeWheel
AddRecipeParts tail 1 metalTail 2 vehicleSeat
AddRecipeParts tailWheel 1 wheel

// Inventory
CargoSlots 0
BombSlots 16
MissileSlots 0
AllowAllAmmo False
AddAmmo largeBomb
AddAmmo smallBomb
AddAmmo napalm
FuelTankSize 32000

// Real-world physics
RealMassKg 24948
RealEnginePowerHp 5120
RealMaxSpeedKmh 454
RealWingSpanM 31.09
RealWingAreaM2 120.5
RealClimbRateMs 3.7

// Movement
RestingPitch 5.0
MaxThrottle 2.0
MaxNegativeThrottle 0.0
TurnLeftSpeed 1
TurnRightSpeed 1
LookUpSpeed 1
LookDownSpeed 1
RollLeftSpeed 1
RollRightSpeed 1
Drag 1.0
WheelSpringStrength 0.125

// Weaponry
Mode Plane
Primary None
Secondary Bomb
ShootDelayPrimary 0
ShootDelaySecondary 10
AlternatePrimary False
AlternateSecondary False
ModePrimary FullAuto
ModeSecondary FullAuto
ShootPointSecondary 0 -32 0
GunOrigin 1 148 -2 0
GunOrigin 4 -48 32 0
GunOrigin 5 -128 16 0
ReadWeaponsFromGunTypes true

// Optics
heliGuiSeat 1 true
heliGUI official_bombsightgui
passengerZoom 1 0.5

// Health and armour
SetupPart core 1500 -64 -4 -16 208 48 32
SetupPart nose 1000 144 -4 -16 16 32 32
SetupPart leftWing 500 -16 26 -240 80 4 224
SetupPart rightWing 500 -16 26 16 80 4 224
SetupPart tail 500 -144 12 -16 80 32 32
BulletDetection 25
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 20.0
WheelPosition 0 80 -16 -52
WheelPosition 1 80 -16 52
WheelPosition 2 -92 0 0
Propeller 0 114 16 -52 leftWing metalPropeller
Propeller 1 114 16 52 rightWing metalPropeller
Propeller 2 98 16 -116 leftWing metalPropeller
Propeller 3 98 16 116 rightWing metalPropeller
Pilot 115 20 0
Passengers 5
Passenger 1 148 2 0 nose -30 30 -25 25 browning30Cal Nose
Passenger 2 90 10 0 core
Passenger 3 70 10 0 core
Passenger 4 -48 36 0 tail -360 360 0 45 browning30Cal Dorsal
Passenger 5 -128 20 0 tail 135 225 -30 30 browning30Cal Tail
CollisionPoint 0 28 30 rightWing
CollisionPoint 0 28 50 rightWing
CollisionPoint 0 28 70 rightWing
CollisionPoint 0 28 90 rightWing
CollisionPoint 0 28 110 rightWing
CollisionPoint 0 28 130 rightWing
CollisionPoint 0 28 150 rightWing
CollisionPoint 0 28 170 rightWing
CollisionPoint 0 28 190 rightWing
CollisionPoint 0 28 210 rightWing
CollisionPoint 40 28 30 rightWing
CollisionPoint 40 28 50 rightWing
CollisionPoint 40 28 70 rightWing
CollisionPoint 40 28 90 rightWing
CollisionPoint 40 28 110 rightWing
CollisionPoint 40 28 130 rightWing
CollisionPoint 40 28 150 rightWing
CollisionPoint 40 28 170 rightWing
CollisionPoint 40 28 190 rightWing
CollisionPoint 40 28 210 rightWing
CollisionPoint 0 28 -30 leftWing
CollisionPoint 0 28 -50 leftWing
CollisionPoint 0 28 -70 leftWing
CollisionPoint 0 28 -90 leftWing
CollisionPoint 0 28 -110 leftWing
CollisionPoint 0 28 -130 leftWing
CollisionPoint 0 28 -150 leftWing
CollisionPoint 0 28 -170 leftWing
CollisionPoint 0 28 -190 leftWing
CollisionPoint 0 28 -210 leftWing
CollisionPoint 40 28 -30 leftWing
CollisionPoint 40 28 -50 leftWing
CollisionPoint 40 28 -70 leftWing
CollisionPoint 40 28 -90 leftWing
CollisionPoint 40 28 -110 leftWing
CollisionPoint 40 28 -130 leftWing
CollisionPoint 40 28 -150 leftWing
CollisionPoint 40 28 -170 leftWing
CollisionPoint 40 28 -190 leftWing
CollisionPoint 40 28 -210 leftWing
CollisionPoint -140 28 16 tail
CollisionPoint -120 28 16 tail
CollisionPoint -100 28 16 tail
CollisionPoint -140 28 -16 tail
CollisionPoint -120 28 -16 tail
CollisionPoint -100 28 -16 tail

// Sounds and particles
StartSound propStart
StartSoundLength 20
PropSound LancasterProp
PropSoundLength 49
ShootSoundSecondary bomb
