// ------------------------------------------------------ Naming ------------------------------------------------------
Name Grumman HU-16E Albatross
ShortName HU-16E
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconhu16e
Model usafvw.hu16e
Texture hu16e
//Third Person Camera Distance
CameraDistance 25
//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
HasGear True
ModelScale 1
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 1.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1
TurnRightSpeed 1
//Pitch modifiers
LookUpSpeed 1
LookDownSpeed 1
//Roll modifiers
RollLeftSpeed 1
RollRightSpeed 1
//Drag (A (maxThrottle * numPropellers) : drag ratio of 1 : 1 with mass should keep the plane going at some reasonable speed at full throttle
Drag 1.0
//Lift (A lift : mass ratio of 1 : 1 should keep the plane perfectly level at full throttle
//Mass (In tons)
//Moment of Inertia (in crazy units. Just fiddle with this until you find something nice)
//More bounciness means the vehicle will bounce more upon going up sopes, but fall through the ground less
Bounciness 1.0
//Wheels
NumWheels 3
WheelPosition 0 33 -36 -54
WheelPosition 1 33 -36 54
WheelPosition 2 157 -36 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -98 -72 -70 leftWing metalPropeller
Propeller 1 -98 -72 70 rightWing metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary None
Secondary None
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 0
ShootDelaySecondary 0
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary False
//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
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 15
BombSlots 0
MissileSlots 0
AllowAllAmmo False
AddAmmo none
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 130 8 -11
Passengers 13
Passenger 1 130 8 11 core
Passenger 2 81 -2 -19 core
Passenger 3 61 -2 -19 core
Passenger 4 41 -2 -19 core
Passenger 5 21 -2 -19 core
Passenger 6 81 -2 19 core
Passenger 7 61 -2 19 core
Passenger 8 41 -2 19 core
Passenger 9 21 -2 19 core
Passenger 10 -59 -2 9 core
Passenger 11 -70 -2 8 core
Passenger 12 -81 -2 7 core
Passenger 13 -92 -2 6 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound propStart
StartSoundLength 60
PropSound propSound
PropSoundLength 47
ShootSoundPrimary M60Shoot
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 1 advancedMetalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail
AddRecipeParts rightWingWheel 1 wheel
AddRecipeParts leftWingWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 white
AddDye 1 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 159 -10 -22 44 32 44
SetupPart core 100 128 -10 -26 32 50 52
SetupPart core 100 -36 -10 -28 164 59 56
SetupPart tail 100 -139 -10 -28 102 51 56
SetupPart tail 100 -213 8 -28 74 33 56
SetupPart tail 100 -213 41 -2 74 96 6
SetupPart tail 100 -189 52 -105 61 13 210
SetupPart leftWing 100 -21 32 -326 93 17 298
SetupPart rightWing 100 -21 32 28 93 17 298
SetupPart leftWing 100 3 32 -86 93 30 34
SetupPart rightWing 100 3 32 54 93 30 34
SetupPart bay 100 -122 -29 -28 316 19 56

BulletDetection 25
CollisionPoint 211 0 0 nose
CollisionPoint 175 10 0 nose
CollisionPoint 137 17 0 core
CollisionPoint 48 26 0 core
CollisionPoint -87 27 0 tail
CollisionPoint -178 91 0 tail
CollisionPoint 29 45 -227 leftWing
CollisionPoint 29 44 228 rightWing

HasGear True
HasDoor False

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.30
CollisionDamageTimes 20

Boat True
PlaceableOnLand False
PlaceableOnWater True
FloatOnWater true
Buoyancy 0.05