// ------------------------------------------------------ Naming ------------------------------------------------------
Name Mil Mi-24D Hind-P
ShortName Mi-24P
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconmi24p
Model russia.mi24p
Texture mi24p
//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 True
// ------------------------------------------------------ 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
//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.7
//Lift
Lift 2.5
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
//Propeller Positions
HeliPropeller 0 1 -50 -0,5 blades metalPropeller
HeliPropeller 1 135 -49 -2 blades metalPropeller
NumWheels 3
WheelPosition 0 -3 -10 -38
WheelPosition 1 -3 -10 38
WheelPosition 2 86 -18 0
// ------------------------------------------------------ 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 142 9 16 core rpd
ShootPointPrimary 142 6 16 core rpd
ShootPointPrimary 19 16 -37 leftWing rpg
ShootPointPrimary 19 11 -51 leftWing rpg
ShootPointPrimary 19 16 37 rightWing rpg
ShootPointPrimary 19 11 51 rightWing rpg
ShootPointSecondary 21 9 -67 leftWing
ShootPointSecondary 21 9 -80 leftWing
ShootPointSecondary 21 9 67 rightWing
ShootPointSecondary 21 9 80 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 10
BombSlots 0
MissileSlots 4
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 90 22 0
Passengers 5
Passenger 1 124 8 0 core
Passenger 2 14 19 2 core
Passenger 3 26 19 2 core
Passenger 4 14 19 -2 core
Passenger 5 26 19 -2 core
flightCeiling 750
helipadLandable true
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound Helicopter_start
StartSoundLength 100
PropSound Mi24_engine
PropSoundLength 80
ShootSoundSecondary PG_Hydra
ShootSoundPrimary RocketFire1
// ------------------------------------------------------ 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 550 -90 12 -19 175 48 38
SetupPart tail 350 -190 12 -15 100 24 30
SetupPart rightWing 350 -25 5 19 50 28 43
SetupPart leftWing 350 -25 5 -62 50 28 43
BulletDetection 8
ShootParticlesPrimary flansmod.fmflame 0 0 0
IsExplosionWhenDestroyed true
SpinWithoutTail true

HasFlare True
FlareDelay 500
FlareSound Flare
TimeFlareUsing 4
LockedOnSound Lock
SoundTime 8
LockedOnSoundRange 15