// ------------------------------------------------------ Naming ------------------------------------------------------
Name Messerschmitt BF109 G6/G10 (Karlsland Air Force)
ShortName karlslandBF109
ItemID 23318
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon karlslandBF109
Model Manus_WW2.Plane.WW2_Plane_Bf109E_1
Texture ''BlackDevilHartmann''
//Third Person Camera Distance
CameraDistance 13.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 14.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 6.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2
TurnRightSpeed 2
//Pitch modifiers
LookUpSpeed 2
LookDownSpeed 2
//Roll modifiers
RollLeftSpeed 2
RollRightSpeed 2
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.2
//Wheels
NumWheels 3
WheelPosition 0 10 -8 -18
WheelPosition 1 10 -8 18
WheelPosition 2 -106 19 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 16 19 40 rightWing olerikon20mm
ShootPointPrimary 16 19 -40 leftWing olerikon20mm
ShootPointPrimary 21 31 2.3 nose machinengewehr42
ShootPointPrimary 21 31 -2.3 nose machinengewehr42
ShootPointSecondary -5 0 0 core 
ShootParticlesPrimary cloud 0.2 0 0
ShootParticlesPrimary flansmod.fmflame 0.3 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 4
BombSlots 2
MissileSlots 0
AllowAllAmmo False
AddAmmo generic150lbBomb
AddAmmo WW2_Bomb_German50kg
AddAmmo WW2_Bomb_German250kg
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 3000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot -21 18 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound wtBF-109Start
StartSoundLength 20
PropSound wtBF-109Engine
PropSoundLength 30
ShootSoundPrimary 20mmFire
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 black
AddDye 3 gray
AddDye 2 yellow
AddDye 2 white
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 400 -34 12 -10 68 25 20 8
SetupPart tail 225 -115 19 -7 81 21 14 8
SetupPart nose 220 34 14 -7 11 16 14
SetupPart rightWing 225 -22 16 10 29 9 88 7
SetupPart leftWing 225 -23 16 -98 29 9 88 7
SetupPart rightWingWheel 75 2 -10 11 13 24 7
SetupPart leftWingWheel 75 2 -10 -18 13 24 7
SetupPart tailWheel 50 -109 17 -1 5 8 2
BulletDetection 30
//Collision points for breaking wings etc. upon crashing
//RightWing
CollisionPoint -2 18 26 rightWing
CollisionPoint -2 19 42 rightWing
CollisionPoint -2 21 58 rightWing
CollisionPoint -2 22 73 rightWing
CollisionPoint -2 24 90 rightWing
//LeftWing
CollisionPoint -2 18 -26 leftWing
CollisionPoint -2 19 -42 leftWing
CollisionPoint -2 21 -58 leftWing
CollisionPoint -2 22 -73 leftWing
CollisionPoint -2 24 -90 leftWing
//Tail
CollisionPoint -40 22 0 tail
CollisionPoint -56 26 0 tail
CollisionPoint -72 27 0 tail
CollisionPoint -88 28 0 tail
CollisionPoint -104 35 0 tail
CollisionPoint -114 43 0 tail
//Nose
CollisionPoint 42 22 0 nose
ModelScale 1.0