// ------------------------------------------------------ Naming ------------------------------------------------------
Name de Havilland AB-1A Mosquito
ShortName AB-1A
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconab1a
Model usafcw.ab1a
Texture ab1a
//Third Person Camera Distance
CameraDistance 20.0
HasGear True
HasWing True
ModelScale 1
// ------------------------------------------------------ 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 1.00
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.4
TurnRightSpeed 1.4
//Pitch modifiers
LookUpSpeed 2.4
LookDownSpeed 2.4
//Roll modifiers
RollLeftSpeed 2.2
RollRightSpeed 2.2
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.5
//Lift (A lift : mass ratio of 1 : 1 should keep the plane perfectly level at full throttle
Lift 3.2
//Mass (In tons)
Mass 2.7
//Moment of Inertia (in crazy units. Just fiddle with this until you find something nice)
MomentOfInertia 10.0
//More bounciness means the vehicle will bounce more upon going up slopes, but fall through the ground less
Bounciness 1.0
//Wheels
NumWheels 3
WheelPosition 0 73 -10 -50
WheelPosition 1 73 -10 50
WheelPosition 2 -104 28 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -107 -38 -50 leftWing metalPropeller
Propeller 1 -106 -39 50 rightWing metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Bomb
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 1
ShootDelaySecondary 15
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary Two of FullAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 124 35 -6 nose browning
ShootPointPrimary 125 35 -1 nose browning
ShootPointPrimary 125 35 2 nose browning
ShootPointPrimary 124 35 6 nose browning
ShootPointPrimary 114 29 -5 nose browning
ShootPointPrimary 117 29 -1 nose browning
ShootPointPrimary 117 29 2 nose browning
ShootPointPrimary 115 29 6 nose browning
ShootPointSecondary 28 27 -3 bay
ShootPointSecondary 28 27 3 bay
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 1
BombSlots 2
MissileSlots 0
AllowAllAmmo True
AddAmmo AIM4
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 79 35 -4
Passengers 1
Passenger 1 70 35 4 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound propStart
StartSoundLength 20
PropSound propSound
PropSoundLength 30
ShootSoundPrimary PlaneShoot
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 tail 1 metalTail
AddRecipeParts rightWingWheel 1 wheel
AddRecipeParts leftWingWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 white
AddDye 1 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 95 22 -13 26 29 26
SetupPart core 100 4 21 -14 91 36 28
SetupPart tail 100 -126 23 -14 130 34 28
SetupPart tail 100 -108 57 -3 34 39 6
SetupPart tail 100 -121 45 -64 36 4 128
SetupPart leftWing 100 4 35 -165 77 15 151
SetupPart leftWing 100 5 20 -62 113 29 23
SetupPart rightWing 100 4 35 14 77 15 151
SetupPart rightWing 100 5 20 39 113 29 23

BulletDetection 10

//Collison Points
CollisionPoint 121 36 0 nose
CollisionPoint 97 36 0 nose
CollisionPoint 76 36 0 core
CollisionPoint 25 36 0 core
CollisionPoint -20 36 0 tail
CollisionPoint -94 45 0 tail
CollisionPoint -105 47 -38 tail
CollisionPoint -104 47 39 tail
CollisionPoint 49 36 -51 leftWing
CollisionPoint 58 48 -154 leftWing
CollisionPoint 118 39 -51 leftWing
CollisionPoint 49 36 51 rightWing
CollisionPoint 58 48 154 rightWing
CollisionPoint 118 39 51 rightWing
