// ------------------------------------------------------ Naming ------------------------------------------------------
Name Shaanxi Y-8 Cub
ShortName Y-8
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon icony8
Model pla.y8
Texture y8
//Third Person Camera Distance
CameraDistance 45.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
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 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -137 -72 -93 leftWing metalPropeller
Propeller 1 -120 -72 -190 leftWing metalPropeller
Propeller 2 -137 -72 93 rightWing metalPropeller
Propeller 3 -120 -72 190 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 30
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 255 46 -14
Passengers 2
Passenger 1 255 46 14 core
Passenger 2 239 46 0 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 core 1200 -94 -2 -31 314 74 62
SetupPart tail 500 -272 -2 -31 178 64 62
SetupPart rightWing 400 -70 54 -336 80 8 304
SetupPart leftWing 400 -70 54 31 80 8 304
SetupPart engine 500 -12 36 -94 88 33 19
SetupPart engine2 500 -12 36 -189 88 33 19
SetupPart engine3 500 -12 36 98 88 33 19
SetupPart engine4 500 -12 44 183 88 33 19
BulletDetection 25
CollisionPoint 9 10 -80 rightWing
CollisionPoint 9 10 -60 rightWing
CollisionPoint 9 10 -40 rightWing
CollisionPoint 9 10 -20 rightWing
//LeftWing
CollisionPoint 9 10 80 leftWing
CollisionPoint 9 10 60 leftWing
CollisionPoint 9 10 40 leftWing
CollisionPoint 9 10 20 leftWing
//Nose
CollisionPoint 50 35 0 core
CollisionPoint 90 35 0 core
//Tail
CollisionPoint -60 15 0 tail
HasGear True
HasDoor True

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.30
CollisionDamageTimes 20
