// ------------------------------------------------------ Naming ------------------------------------------------------
Name P-51D Mustang (Liberion Air Force)
ShortName liberionP51D
ItemID 23318
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon liberionP51
Model Manus_WW2.Plane.WW2_Plane_P51_1
Texture LiberionP51D
//Third Person Camera Distance
CameraDistance 12.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 13.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 7
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2.2
TurnRightSpeed 2.2
//Pitch modifiers
LookUpSpeed 2
LookDownSpeed 2
//Roll modifiers
RollLeftSpeed 2.2
RollRightSpeed 2.2
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.1
//Wheels
NumWheels 3
WheelPosition 0 12 -8 -36
WheelPosition 1 12 -8 36
WheelPosition 2 -87 15 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 0 0 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 50
//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 11 22 -42 leftWing browningM2
ShootPointPrimary 11 22 42 rightWing browningM2
ShootPointPrimary 11 22 -46 leftWing browningM2
ShootPointPrimary 11 22 46 rightWing browningM2
ShootPointPrimary 11 22 -50 leftWing browningM2
ShootPointPrimary 11 22 50 rightWing browningM2
ShootPointSecondary -10 -5 0 
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 torpedoBomb
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 5510
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot -17 26 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound wtP-51MustangStart
StartSoundLength 20
PropSound wtP-51MustangEngine
PropSoundLength 30
ShootSoundPrimary M2Fire
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 advancedMetalCockpit
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
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 4 blue
AddDye 3 white
AddDye 2 red
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 400 -75 14 -10 127 28 20 8
SetupPart tail 250 -125 24 -5 50 28 10 8
SetupPart nose 150 52 22 -8 15 16 16 6
SetupPart rightWing 225 -22 16 10 27 12 103 6
SetupPart leftWing 225 -22 16 -113 27 12 103 6
SetupPart leftWingWheel 50 5 -10 -38 14 26 5
SetupPart rightWingWheel 50 5 -10 33 14 26 5
SetupPart tailWheel 50 -89 14 -1 6 10 2
BulletDetection 15
//Collision points for breaking wings etc. upon crashing
//Nose
CollisionPoint 59 30 0 nose
//Tail
CollisionPoint -76 30 0 tail
CollisionPoint -92 30 0 tail
CollisionPoint -108 30 0 tail
CollisionPoint -121 36 0 tail
CollisionPoint -121 52 0 tail
//LeftWing
CollisionPoint -3 21 -24 leftWing
CollisionPoint -3 22 -40 leftWing
CollisionPoint -3 23 -56 leftWing
CollisionPoint -3 24 -72 leftWing
CollisionPoint -3 25 -88 leftWing
CollisionPoint -3 26 -104 leftWing
//RightWing
CollisionPoint -3 21 24 rightWing
CollisionPoint -3 22 40 rightWing
CollisionPoint -3 23 56 rightWing
CollisionPoint -3 24 72 rightWing
CollisionPoint -3 25 88 rightWing
CollisionPoint -3 26 104 rightWing
ModelScale 1.0