// ------------------------------------------------------ Naming ------------------------------------------------------
Name Bell AH1Z Viper
ShortName AH1ZViper
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon AH1ZViper
Model rainfire.AH1ZViper
Texture SkinAH1ZViper
//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
// ------------------------------------------------------ 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 4.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2.5
TurnRightSpeed 2.5
//Pitch modifiers
LookUpSpeed 2.5
LookDownSpeed 2
//Roll modifiers
RollLeftSpeed 2.5
RollRightSpeed 2.5
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.0
//Lift
//Lift 3.0
//Wheels (Fake wheels imitating skids)
NumWheels 4
WheelPosition 0 -19 -10 -16
WheelPosition 1 -19 -10 16
WheelPosition 2 26 -10 16
WheelPosition 3 26 -10 -16
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
HeliPropeller 0 0 55 0 blades metalPropeller
HeliPropeller 1 174 49 0 blades metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Missile
Secondary Gun
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 10
ShootDelaySecondary 12
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 13 18 -38 leftWing 
ShootPointPrimary 13 18 38 rightWing 
ShootPointSecondary 13 18 23 rightWing fim92EStinger
ShootPointSecondary 13 18 -23 leftWing fim92EStinger
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 4
BombSlots 0
MissileSlots 8
AllowAllAmmo True
AddAmmo ah1ZRocket
AddAmmo mk4Rocket
AddAmmo mk4Rocketctm
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ----------57 9--------------------------------------------
Pilot 27 15 0
Passengers 2
Passenger 1 90 -10 0 nose -110 110 -50 15 m61Vulcan PassengerGun1
Passenger 2 57 9 0 nose
GunOrigin 1 -63 -1 0
PassengerAimSpeed 1 8 8 0
invisiblePassenger 1 true
heliGuiSeat 1 true
heliGUI shootythingGUI
passengerZoom 1 5
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HelicopterStart
StartSoundLength 100
PropSound Helicopter2
PropSoundLength 40
ShootSoundPrimary RocketFire1
ShootSoundSecondary 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 1 advancedMetalCockpit
AddRecipeParts nose 1 advancedMetalCockpit
AddRecipeParts skids 4 helicopterSkid
AddRecipeParts blades 2 helicopterBlade
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail 1 metalPropeller
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 6 gray
AddDye 4 black
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 550 -53 2 -13 74 44 26
SetupPart nose 450 21 2 -13 57 43 26
SetupPart blades 250 -45 47 -13 65 32 26
SetupPart skids 200 -32 -10 -18 84 11 36
SetupPart tail 250 -168 8 -6 113 24 12
SetupPart rightWing 150 -19 22 14 35 5 27
SetupPart leftWing 150 -18 22 -43 35 5 27
BulletDetection 50
HasFlare True
FlareDelay 30
FlareSound Flare
TimeFlareUsing 10
ModelScale 1.0
//Radar shit, range in blocks and delay in ticks. Visible means if it does/doesn't have stealth, offset the lowness on screen.
hasPlaneRadar true
radarPositionOffset 25
radarRange 1600
radarVisible true
radarRefreshDelay 10
helipadLandable true