// ------------------------------------------------------ Naming ------------------------------------------------------
Name MD Helicopters AH-6S Little Bird
ShortName AH-6S
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon IconAH6S
Model usamw.ah6s
Texture ah6s
//Third Person Camera Distance
CameraDistance 10.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 0.0
HasGear False
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Heli
//Throttle
MaxThrottle 2.5
MaxNegativeThrottle 0.0
TurnLeftSpeed 6
TurnRightSpeed 6
LookUpSpeed 5.75
LookDownSpeed 5.75
RollLeftSpeed 4.50
RollRightSpeed 4.50
Drag 0.75
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.0
//Lift
//Lift 2.5
//Wheels (Fake wheels imitating skids)
NumWheels 3
WheelPosition 0 81 -10 0
WheelPosition 1 -19 -10 34
WheelPosition 2 -19 -10 -34
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
//Propeller Positions
HeliPropeller 0 1 -50 -0,5 blades metalPropeller
HeliPropeller 1 135 -49 -2 blades metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Missile
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 1
ShootDelaySecondary 10
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary True
//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 36 4 -18 leftWing minigun
ShootPointPrimary 36 3 -18 leftWing minigun
ShootPointPrimary 36 4 18 rightWing minigun
ShootPointPrimary 36 3 18 rightWing minigun
ShootPointSecondary 43 2 -29 leftWing
ShootPointSecondary 43 0 -29 leftWing
ShootPointSecondary 43 4 -29 leftWing
ShootPointSecondary 43 2 -31 leftWing
ShootPointSecondary 43 2 29 rightWing
ShootPointSecondary 43 4 29 rightWing
ShootPointSecondary 43 2 31 rightWing
ShootPointSecondary 43 0 29 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 10
BombSlots 0
MissileSlots 2
AllowAllAmmo True
AddAmmo mk4Rocket
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ------------------------------------------------------
//Driver and Passengers
Pilot 33 12 7
Passengers 1
Passenger 1 33 12 -7 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound heloB
StartSoundLength 20
PropSound heloK
PropSoundLength 19
ShootSoundPrimary RPDShoot
ShootSoundSecondary RocketFire2
// ------------------------------------------------------ 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 3 passengerBay
AddRecipeParts nose 1 advancedMetalCockpit
AddRecipeParts coreWheel 4 wheel
AddRecipeParts blades 6 helicopterBlade
AddRecipeParts tail 1 metalTail
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 16 green
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 150 -20 0 -15 80 40 30
SetupPart tail 50 -80 20 -5 60 12 10
BulletDetection 8
ShootParticlesPrimary flansmod.fmflame 0 0 0
ShootParticlesPrimary explode 0 0 0
ShootParticlesSecondary flansmod.fmflame 0 0 0

//Damage
AddEmitter flame 1 [-18,12,0] [12,1,12] [-0.25,0,0] -1 1 0 0.15 core
AddEmitter largesmoke 1 [-18,12,0] [12,1,12] [-0.25,0,0] -1 1 0 0.3 core

IsExplosionWhenDestroyed true
SpinWithoutTail true