// ------------------------------------------------------ Naming ------------------------------------------------------
Name Boeing/Sikorsky RAH-66A Comanche
ShortName RAH-66A
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon IconRAH66A
Model usamw.rah66a
Texture RAH66A
//Third Person Camera Distance
CameraDistance 15.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.00
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 0.6
//Lift
//Lift 2.5
//Wheels (Fake wheels imitating skids)
NumWheels 3
WheelPosition 0 48 -12 -15
WheelPosition 1 48 -12 15
WheelPosition 2 -79 -10 0
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 3
ShootDelaySecondary 20
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary SemiAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 44 9 -15 core M261
ShootPointPrimary 44 6 -23 core M261
ShootPointPrimary 44 9 15 core M261
ShootPointPrimary 44 6 23 core M261
ShootPointSecondary 45 9 -34 core
ShootPointSecondary 45 9 -41 core
ShootPointSecondary 45 1 -34 core
ShootPointSecondary 45 1 -41 core
ShootPointSecondary 45 9 34 core
ShootPointSecondary 45 9 41 core
ShootPointSecondary 45 1 34 core
ShootPointSecondary 45 1 41 core
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 2
BombSlots 0
MissileSlots 8
AllowAllAmmo True
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 52 16 0
Passengers 1
Passenger 1 77 10 0 core -30 30 -30 0 minigun PassengerGun1
GunOrigin 1 -110 -5 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HelicopterStart
StartSoundLength 100
PropSound Commanche
PropSoundLength 30
ShootSoundPrimary RPGShoot
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 300 -55 5 -15 122 40 30
SetupPart tail 250 -158 5 -10 103 34 20
SetupPart tailWheel 100 -109 -8,5 -2 8 8 3
SetupPart leftWingWheel 100 21 -10,5 -23,5 12 12 3
SetupPart rightWingWheel 100 21 -10,5 20,5 12 12 3
SetupPart nose 175 67 6 -12 30 20 24
BulletDetection 8
SpinWithoutTail true

HasFlare True
FlareDelay 250
FlareSound FlareDeploy
TimeFlareUsing 3
LockedOnSound LockonWarning
SoundTime 14
LockedOnSoundRange 5

//RadarDetectableAltitude 35
Stealth True