﻿// Identity
Name P-38 Lightning - Metal Color
ShortName WW2_Plane_P38_1A

// Model and Rendering
Model Manus_WW2.Plane.WW2_Plane_P38_1
Icon Icon_WW2_Plane_P38_1A
Texture Skin_WW2_Plane_P38_1A

// Recipe and Inventory
FuelTankSize 6000
BombSlots 5
CargoSlots 0
MissileSlots 0
AddRecipeParts core 1 SMP_Part_Cockpit_Jet 6 SMP_Part_Mat_Plate_Steel
AddRecipeParts nose 1 SMP_Part_Nose_Plane 3 SMP_Part_Mat_Plate_Steel
AddRecipeParts tail 1 SMP_Part_Tail_Large 8 SMP_Part_Mat_Plate_Steel
AddRecipeParts leftWing 1 SMP_Part_Wing_Jet 6 SMP_Part_Mat_Plate_Steel
AddRecipeParts rightWing 1 SMP_Part_Wing_Jet 6 SMP_Part_Mat_Plate_Steel
AddRecipeParts leftWingWheel 1 SMP_Part_Wheel_Plane
AddRecipeParts rightWingWheel 1 SMP_Part_Wheel_Plane
AddRecipeParts coreWheel 1 SMP_Part_Wheel_Plane
AddDye 7 white
AllowAllAmmo False
AddAmmo WW2_Bomb_UK50kg

// Movement and Physics
MaxThrottle 5.0
MaxNegativeThrottle 0.0
Drag 1.0
WheelSpringStrength 0.125
Mode Plane
LookDownSpeed 2
LookUpSpeed 2
RollLeftSpeed 2
RollRightSpeed 2
TurnLeftSpeed 2
TurnRightSpeed 2
RestingPitch 5.0
RealMassKg 7938
RealEnginePowerHp 3200
RealMaxSpeedKmh 666
RealWingSpanM 15.85
RealWingAreaM2 30.43
RealClimbRateMs 24.1

// Weapons
Primary Gun
ModePrimary FullAuto
AlternatePrimary False
ShootPointPrimary 62 26 2 nose WW2_MG_BrowningM2_1A
ShootPointPrimary 62 26 -2 nose WW2_MG_BrowningM2_1A
ShootDelayPrimary 7
Secondary Bomb
ModeSecondary FullAuto
AlternateSecondary False
ShootPointSecondary -30 -12 0
ShootDelaySecondary 100
ReadWeaponsFromGunTypes true

// Protection
UseRealisticVehicleHealth true

// Parts and Seats
WheelPosition 0 -20 -8 -39
WheelPosition 1 -20 -8 39
WheelPosition 2 36 -8 0
Pilot -2 14 0
Passengers 0
SetupPart core 250 -38 10 -8 72 20 16
SetupPart nose 100 34 11 -7 22 18 14
SetupPart tail 150 -132 12 -45 93 18 90
SetupPart leftWing 120 -39 23 8 46 15 117
SetupPart rightWing 120 -39 23 -125 46 15 117
SetupPart leftWingWheel 50 -26 -10 37 13 13 3
SetupPart rightWingWheel 50 -26 -10 -40 13 13 3
SetupPart coreWheel 50 32 -10 -2 10 10 4
CollisionPoint 44 20 0 core
CollisionPoint -55 22 39 tail
CollisionPoint -84 22 39 tail
CollisionPoint -105 22 39 tail
CollisionPoint -123 22 39 tail
CollisionPoint -119 21 0 tail
CollisionPoint -55 22 -39 tail
CollisionPoint -84 22 -39 tail
CollisionPoint -105 22 -39 tail
CollisionPoint -123 22 -39 tail
CollisionPoint -12 23 16 rightWing
CollisionPoint -12 28 45 rightWing
CollisionPoint -12 33 76 rightWing
CollisionPoint -12 38 106 rightWing
CollisionPoint -12 23 -16 leftWing
CollisionPoint -12 28 -45 leftWing
CollisionPoint -12 33 -76 leftWing
CollisionPoint -12 38 -106 leftWing
BulletDetection 10
CameraDistance 10.0
Propeller 0 0 0 0 leftWing SMP_Part_Propeller_RotorPlane
Propeller 1 0 0 0 rightWing SMP_Part_Propeller_RotorPlane

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