// ------------------------------------------------------ Naming ------------------------------------------------------
Name Xian HY-6U Badger
ShortName HY-6U
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconhy6u
Model pla.hy6u
Texture hy6u
//Third Person Camera Distance
CameraDistance 35.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 True
ModelScale 1
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 7.0
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2
TurnRightSpeed 2
//Pitch modifiers
LookUpSpeed 1
LookDownSpeed 1
//Roll modifiers
RollLeftSpeed 2
RollRightSpeed 2
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 2.0
//Lift
//Lift 2
//Wheels
NumWheels 3
WheelPosition 0 0 -10 -103
WheelPosition 1 0 -10 103
WheelPosition 2 210 -13 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 54 0 0 core 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 SemiAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 2
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 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 276 48 -8
Passengers 4
Passenger 1 276 48 8 core
Passenger 2 308 36 0 core
Passenger 3 258 48 -8 core
Passenger 4 258 48 8 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound PlaneA
StartSoundLength 20
PropSound PlaneB
PropSoundLength 30
ShootSoundPrimary None
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 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 146 4 -14 37 31 28
SetupPart nose 100 116 4 -15 30 35 30
SetupPart core 100 -45 4 -15 161 42 30
SetupPart core 100 43 46 -7 62 6 14
SetupPart rightWing 100 -29 34 15 70 11 200
SetupPart rightWing 100 -40 15 43 131 27 29
SetupPart rightWing 100 -55 32 213 112 23 23
SetupPart leftWing 100 -29 34 -215 70 11 200
SetupPart leftWing 100 -40 15 -72 131 27 29
SetupPart leftWing 100 -55 32 -236 112 23 23
SetupPart tail 100 -184 4 -15 139 41 30
SetupPart tail 100 -184 45 -7 53 18 14
SetupPart tail 100 -164 45 -1 41 67 2
SetupPart tail 100 -123 45 -1 45 14 2
SetupPart tail 100 -163 48 2 48 11 87
SetupPart tail 100 -163 48 -89 48 11 87
SetupPart coreWheel 100 121 -10 -5 12 14 10
SetupPart leftWingWheel 100 18 -10 -59 21 25 13
SetupPart rightWingWheel 100 18 -10 46 21 25 13
CollisionPoint 183 19 0 nose
CollisionPoint 146 35 0 nose
CollisionPoint 101 51 0 core
CollisionPoint 41 39 15 rightWing
CollisionPoint 91 27 58 rightWing
CollisionPoint 67 41 58 rightWing
CollisionPoint 18 45 214 rightWing
CollisionPoint 57 42 224 rightWing
CollisionPoint 42 55 230 rightWing
CollisionPoint -47 52 224 rightWing
CollisionPoint 41 39 -15 leftWing
CollisionPoint 91 27 -58 leftWing
CollisionPoint 67 41 -58 leftWing
CollisionPoint 18 45 -214 leftWing
CollisionPoint 57 42 -224 leftWing
CollisionPoint 42 55 -230 leftWing
CollisionPoint -47 52 -224 leftWing
CollisionPoint -139 112 0 leftWing
CollisionPoint -179 63 0 tail
CollisionPoint -137 59 -89 tail
CollisionPoint -137 59 89 tail
CollisionPoint -115 48 1 tail
CollisionPoint -115 48 -1 tail
CollisionPoint -45 45 0 tail
CollisionPoint -40 34 -57 leftWing
CollisionPoint -40 34 57 rightWing
CollisionPoint -28 39 15 rightWing
CollisionPoint -28 39 -15 leftWing
CollisionPoint -17 45 -216 leftWing
CollisionPoint -17 45 216 rightWing

BulletDetection 10

//Collison Points

AddEmitter flansmod.fmsmoke 1 [-54,40,32] [1,1,1] [-1,0,0] 0.25 0.5 0 1 leftWing

AddEmitter flansmod.fmsmoke 1 [-54,40,-32] [1,1,1] [-1,0,0] 0.25 0.5 0 1 rightWing