// ------------------------------------------------------ Naming ------------------------------------------------------
Name Kawasaki OH-1 Ninja
ShortName OH-1
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconoh1
Model jsdf.oh1
Texture oh1
//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 0.95
// ------------------------------------------------------ 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.6
MaxNegativeThrottle 0.0
TurnLeftSpeed 6.0
TurnRightSpeed 6.0
LookUpSpeed 6.5
LookDownSpeed 6.5
RollLeftSpeed 4.5
RollRightSpeed 4.5
Drag 0.85
//Wheels (Fake wheels imitating skids)
NumWheels 3
WheelPosition 0 28 -9 -18
WheelPosition 1 28 -9 18
WheelPosition 2 -122 -9 0
WheelSpringStrength 0.125
//Propeller
HeliPropeller 0 2 68 0 blades metalPropeller
HeliTailPropeller 0 146 22 -2 blades metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary GUN
Secondary MISSILE
ShootDelayPrimary 3
ShootDelaySecondary 70
AlternatePrimary True
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary SEMIAUTO
ShootPointPrimary 23 16 -23 rightWing CVR7
ShootPointPrimary 23 16 23 leftWing CVR7
ShootPointSecondary 6 17 39 leftWing
ShootPointSecondary 6 17 -39 rightWing
ShootPointSecondary 6 17 31 leftWing
ShootPointSecondary 6 17 -31 rightWing
ShootPointSecondary 6 11 39 leftWing
ShootPointSecondary 6 11 -39 rightWing
ShootPointSecondary 6 11 31 leftWing
ShootPointSecondary 6 11 -31 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
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 21 17 0
Passengers 1
Passenger 1 49 12 0 core -115 115 -90 10 minigun PassengerGun1
GunOrigin 1 82 -1 0
// ------------------------------------------------------ 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 300 -60 4 -11 150 40 22
SetupPart tail 150 -160 5 -9 100 32 18
SetupPart rightWing 50 -13 9 11 36 20 29
SetupPart leftWing 50 -13 9 -40 36 20 29
BulletDetection 8
ShootParticlesPrimary flansmod.fmflame 0 0 0
IsExplosionWhenDestroyed true
SpinWithoutTail true

HasFlare True
FlareDelay 250
FlareSound FlareDeploy
TimeFlareUsing 3
LockedOnSound Lockon_Warning
SoundTime 14
LockedOnSoundRange 1
LockOnToPlanes True
LockOnToVehicles True
LockOnToPlayers False
LockOnToLivings False
CanLockOnAngle 10
MaxRangeLockOn 250
LockedOnSoundRange 1
LockOnSound Lockon_ATGM
LockOnSoundTime 14
Stealth False