// ------------------------------------------------------ Naming ------------------------------------------------------
Name Xi'an Y-20 Kunpeng
ShortName Y-20
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon icony20
Model pla.y20
Texture y20
//Third Person Camera Distance
CameraDistance 60.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 3.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2
TurnRightSpeed 2
//Pitch modifiers
LookUpSpeed 2
LookDownSpeed 2
//Roll modifiers
RollLeftSpeed 2
RollRightSpeed 2
//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 -20 -12 -15
WheelPosition 1 -20 -12 15
WheelPosition 2 162 -12 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -263 -77 -153 leftWing metalPropeller
Propeller 1 -196 -72 -278 leftWing metalPropeller
Propeller 2 -263 -77 153 rightWing metalPropeller
Propeller 3 -196 -72 278 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 100
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 431 92 -17
Passengers 3
Passenger 1 431 92 17 core
Passenger 2 404 92 -27 core
Passenger 3 404 92 27 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound PlaneA
StartSoundLength 60
PropSound JetEngine2
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 480 -94 -2 -31 264 64 62
SetupPart tail 325 -272 -2 -31 178 64 62
SetupPart rightWing 260 -70 54 -336 80 8 304
SetupPart leftWing 260 -70 54 31 80 8 304
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
