// ------------------------------------------------------ Naming ------------------------------------------------------
Name Mil Mi-8AMTSH Hip
ShortName Mi-8AMTSH
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconmi8amtsh
Model russia.mi8amtsh
Texture mi8amtsh
//Third Person Camera Distance
CameraDistance 18.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 3.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.25
TurnRightSpeed 1.25
//Pitch modifiers
LookUpSpeed 1.25
LookDownSpeed 1.25
//Roll modifiers
RollLeftSpeed 1.25
RollRightSpeed 1.25
//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 17 -10 -60
WheelPosition 1 17 -10 60
WheelPosition 2 126 -22 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 None
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 5
ShootDelaySecondary 60
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
ShootPointPrimary 92 17 -46 leftWing rpd
ShootPointPrimary 92 17 -48 leftWing rpd
ShootPointPrimary 91 12 -59 leftWing rpg
ShootPointPrimary 91 12 -71 leftWing rpg
ShootPointPrimary 92 17 46 rightWing rpd
ShootPointPrimary 92 17 48 rightWing rpd
ShootPointPrimary 91 12 59 rightWing rpg
ShootPointPrimary 91 12 71 rightWing rpg
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 10
BombSlots 0
MissileSlots 0
AllowAllAmmo False
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 149 18 11
Passengers 10
Passenger 1 149 18 -11 core
Passenger 2 121 16 -11 core -160 -60 -45 45 rpd PassengerGun2
Passenger 3 92 18 -20 core
Passenger 4 65 18 -20 core
Passenger 5 41 18 -20 core
Passenger 6 17 18 -20 core
Passenger 7 92 18 20 core
Passenger 8 65 18 20 core
Passenger 9 41 18 20 core
Passenger 10 17 18 20 core
GunOrigin 2 -119 38 25
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HelicopterStart
StartSoundLength 100
PropSound heloB
PropSoundLength 30
//ShootSoundPrimary RocketFire1
//ShootSoundSecondary None
// ------------------------------------------------------ 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 nose 100 180 7 -17 14 22 35
SetupPart core 100 143 4 -29 37 49 58
SetupPart core 100 -2 4 -29 145 49 58
SetupPart core 100 -2 53 -29 91 31 58
SetupPart core 100 89 53 -29 48 20 58
SetupPart tail 100 -68 4 -29 66 69 58
SetupPart tail 100 -259 45 -12 191 26 24
SetupPart tail 100 -263 71 -5 34 22 11
SetupPart tail 100 -205 61 -38 16 3 76
SetupPart leftWing 100 2 8 -41 87 16 12
SetupPart rightWing 100 2 8 29 87 16 12
CollisionPoint 194 17 0 leftWing
CollisionPoint 185 17 0 nose
CollisionPoint 155 17 0 core
CollisionPoint 112 17 0 core
CollisionPoint 50 17 0 core
CollisionPoint 50 57 0 core
CollisionPoint 109 56 0 core
CollisionPoint -21 35 0 tail
CollisionPoint -147 61 0 tail
CollisionPoint -254 88 0 tail
CollisionPoint 50 16 -35 leftWing
CollisionPoint 50 15 36 rightWing
BulletDetection 8
IsExplosionWhenDestroyed true
SpinWithoutTail true