// ------------------------------------------------------ Naming ------------------------------------------------------
Name EC665 "Tiger"
ShortName EC665
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon EC665
Model mw.EC665
Texture EurocopterCamo
//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
// ------------------------------------------------------ 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 3.5
MaxNegativeThrottle 0.0

YawSpeed 3
PitchSpeed 2.8
RollSpeed 3
ForwardSpeed 1.2
SidewaysSpeed 0.9
ClimbSpeed 0.9
Weight 1
DiagonalLift 1.2
EnergyRetention 1.3
HeightLimit 360

//Wheels (Fake wheels imitating skids)
NumWheels 3
WheelPosition 0 32 -10 -24
WheelPosition 1 32 -10 24
WheelPosition 2 -156 -10 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
HeliPropeller 0 0 48 0 blades metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
WeaponHud True
UseNewWeaponSystem True

AddWeapon 25mm Cannon
WeaponType SHELL
FireMode FullAuto
ShootDelay 4
Damage 1
AmmoSlots 1
ShootSound sound_IFV1
ShootPoint 27 21 -31 leftWing
Ammo 25mm
Ammo 25mmHE

AddWeapon AA Missiles
WeaponType Missile
FireMode FullAuto
ShootDelay 60
Alternate True
AmmoSlots 1
ShootSound sound_rocketSmall
ShootPoint 27 21 31 rightWing
Ammo HeatSeeker
Ammo ActiveRadar

// ------------------------------------------------------ Inventory ------------------------------------------------------
FlareSlots 3
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 3000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 53 15 0
Passengers 1
Passenger 1 28 26 0 core -40 40 -40 40 GFS_TOWMounted TOW-Launcher
GunOrigin 1 20 20 42 

// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HelicopterStart
StartSoundLength 100
PropSound Helicopter1
PropSoundLength 93
ShootSoundPrimary sound_rpd
ShootSoundSecondary sound_rocketMedium
// ------------------------------------------------------ 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 skids 3 wheel
AddRecipeParts blades 4 helicopterBlade
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail 1 metalPropeller
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 3 green
AddDye 3 lime
AddDye 4 black
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 2400 -109 4 -12 212 47 24
SetupPart tail 1400 -183 10 -7 74 31 14
SetupPart leftWing 500 -6 25 -45 21 6 33
SetupPart rightWing 500 -6 25 12 21 6 33
SetupPart blades 1000 -125 63 -125 250 4 250
CollisionPoint -164 24 0 tail
CollisionPoint -106 24 0 core
CollisionPoint -50 16 0 core
CollisionPoint 0 16 0 core
CollisionPoint 78 15 0 core
CollisionPoint 3 23 31 rightWing
CollisionPoint 3 23 -31 leftWing
BulletDetection 10
