// ------------------------------------------------------ Naming ------------------------------------------------------
Name Martin B-51A Wraith
ShortName B-51A
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon IconB51A
Model usafcw.b51a
Texture b51a
//Third Person Camera Distance
CameraDistance 20.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 0.62
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.4
TurnRightSpeed 1.4
//Pitch modifiers
LookUpSpeed 1.4
LookDownSpeed 1.4
//Roll modifiers
RollLeftSpeed 1.5
RollRightSpeed 1.5
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.42
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -31 1 -148
WheelPosition 1 -31 1 148
WheelPosition 2 125 -10 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 Bomb
Secondary Gun
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
ShootDelaySecondary 2
//Whether to alternate or fire all together
AlternatePrimary True
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
//Weapons
ShootPointPrimary 58 15 -4 core
ShootPointPrimary 4 15 -4 core
ShootPointPrimary 4 15 4 core
ShootPointPrimary 58 15 4 core
ShootPointSecondary 239 32 -7 nose ADEN
ShootPointSecondary 239 29 -7 nose ADEN
ShootPointSecondary 239 24 -7 nose ADEN
ShootPointSecondary 239 21 -6 nose ADEN
ShootPointSecondary 239 32 7 nose ADEN
ShootPointSecondary 239 29 7 nose ADEN
ShootPointSecondary 239 24 7 nose ADEN
ShootPointSecondary 239 21 6 nose ADEN
ShootPointSecondary 65 24 -49 leftWing CRV7
ShootPointSecondary 56 22 -64 leftWing CRV7
ShootPointSecondary 44 21 -79 leftWing CRV7
ShootPointSecondary 35 20 -94 leftWing CRV7
ShootPointSecondary 65 24 49 rightWing CRV7
ShootPointSecondary 56 22 64 rightWing CRV7
ShootPointSecondary 44 21 79 rightWing CRV7
ShootPointSecondary 35 20 94 rightWing CRV7
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 4
MissileSlots 0
AllowAllAmmo True
AddAmmo mk4Rocket
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 161 33 0
Passengers 1
Passenger 1 126 27 0 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound PlaneA
StartSoundLength 20
PropSound PlaneB
PropSoundLength 30
ShootSoundPrimary bomb
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 192 14 -16 67 33 32
SetupPart core 100 -113 14 -19 305 41 38
SetupPart tail 100 -252 14 -19 139 41 38
SetupPart tail 100 -240 55 -5 131 39 8
SetupPart rightWing 100 -50 17 19 141 23 144
SetupPart leftWing 100 -50 17 -163 141 23 144
CollisionPoint 259 25 0 nose
CollisionPoint 201 25 0 nose
CollisionPoint 165 25 0 core
CollisionPoint 69 25 0 core
CollisionPoint -30 25 0 core
CollisionPoint -137 25 0 tail
CollisionPoint -213 25 0 tail
CollisionPoint -213 94 0 tail
CollisionPoint 28 31 -59 leftWing
CollisionPoint 11 28 -89 leftWing
CollisionPoint -8 24 -130 leftWing
CollisionPoint 28 31 59 rightWing
CollisionPoint -8 24 130 rightWing
CollisionPoint -8 24 130 rightWing

BulletDetection 10


//Collison Points
