// ------------------------------------------------------ Naming ------------------------------------------------------
Name Harbin Z-19W Black Whirlwind
ShortName Z-19W
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconwz19w
Model pla.z19w
Texture z19w
//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
ModelScale 1.25
// ------------------------------------------------------ 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 1.4
MaxNegativeThrottle 0.0
TurnLeftSpeed 5.0
TurnRightSpeed 5.0
LookUpSpeed 5.5
LookDownSpeed 5.5
RollLeftSpeed 3.5
RollRightSpeed 3.5
Drag 0.85
//Wheels (Fake wheels imitating skids)
NumWheels 3
WheelPosition 0 31 -12 -23
WheelPosition 1 31 -12 23
WheelPosition 2 -132 -12 0
WheelSpringStrength 0.125
//Propeller
HeliPropeller 0 3 69 0 blades metalPropeller
HeliTailPropeller 0 172 59 -7 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 5
ShootDelaySecondary 10
//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 17 13 -26 rightWing CVR7
ShootPointPrimary 17 13 26 leftWing CVR7
ShootPointSecondary 0 13 39 leftWing
ShootPointSecondary 0 13 -39 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 10
BombSlots 0
MissileSlots 2
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 25 21 0
Passengers 1
Passenger 1 53 15 0 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound heloB
StartSoundLength 20
PropSound heloB
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 250 -73 7 -12 160 40 24
SetupPart tail 100 -162 8 -8 88 31 18
SetupPart rightWing 50 -26 8 12 40 20 32
SetupPart leftWing 50 -26 8 -44 40 20 32
BulletDetection 8
ShootParticlesPrimary flansmod.fmflame 0 0 0
IsExplosionWhenDestroyed true
SpinWithoutTail true

HasFlare True
FlareDelay 150
FlareSound FlareDeploy
TimeFlareUsing 1
LockedOnSound LockonWarning
SoundTime 14
LockedOnSoundRange 5