// ------------------------------------------------------ Naming ------------------------------------------------------
Name Bell UH-1Y Venom
ShortName UH-1Y
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon IconUH1Y
Model usmcmw.uh1y
Texture UH1Y
//Third Person Camera Distance
CameraDistance 16.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 0.75
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2.75
TurnRightSpeed 2.75
//Pitch modifiers
LookUpSpeed 2.25
LookDownSpeed 2.25
//Roll modifiers
RollLeftSpeed 2.0
RollRightSpeed 2.0
//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 81 -10 0
WheelPosition 1 -19 -10 34
WheelPosition 2 -19 -10 -34
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 4
ShootDelaySecondary 0
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary False
//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 20 7 -35 leftWing M261
ShootPointPrimary 20 4 -35 leftWing M261
ShootPointPrimary 20 1 -35 leftWing M261
ShootPointPrimary 20 4 -32 leftWing M261
ShootPointPrimary 20 4 -38 leftWing M261
ShootPointPrimary 20 7 35 rightWing M261
ShootPointPrimary 20 4 35 rightWing M261
ShootPointPrimary 20 1 35 rightWing M261
ShootPointPrimary 20 4 32 rightWing M261
ShootPointPrimary 20 4 38 rightWing M261
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 10
BombSlots 0
MissileSlots 0
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 63 11 13
Passengers 10
Passenger 1 63 11 -13 core
Passenger 2 3 11 -13 core -160 -60 -45 45 minigun PassengerGun2
GunOrigin 2 -4 -23 -36
Passenger 3 3 11 13 core 60 160 -45 45 minigun PassengerGun3
GunOrigin 3 -4 -23 36
Passenger 4 -9 11 -13 core
Passenger 5 -9 11 13 core
Passenger 6 15 11 0 core
Passenger 7 15 11 -13 core
Passenger 8 15 11 13 core
Passenger 9 37 11 -15 core
Passenger 10 37 11 15 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound heloB
StartSoundLength 20
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 ------------------------------------------------------
//Health and Collision
SetupPart core 400 -62 -2 -28 150 44 49
SetupPart tail 150 -163 8 -9 100 18 18
BulletDetection 8

//Damage
AddEmitter flame 1 [-65,35,15] [12,1,12] [-0.15,0,0.1] -1 1 0 0.15 core
AddEmitter flame 1 [-65,35,-15] [12,1,12] [-0.15,0,-0.1] -1 1 0 0.15 core
AddEmitter flansmod.fmsmoke 1 [-65,35,15] [12,1,12] [-0.15,0,0.1] -1 1 0 0.3 core
AddEmitter flansmod.fmsmoke 1 [-65,35,-15] [12,1,12] [-0.15,0,-0.1] -1 1 0 0.3 core

IsExplosionWhenDestroyed true
SpinWithoutTail true

EngineSoundRange 300

HasFlare True
FlareDelay 50
FlareSound FlareDeploy
TimeFlareUsing 2
LockedOnSound LockonWarning
SoundTime 14
LockedOnSoundRange 5