// ------------------------------------------------------ Naming ------------------------------------------------------
Name Fighter-Bomber_F-8 Crusader
ShortName fighter-bomber_f8
ItemID 11215
Description MAX HP:150_FlareDelay 300_TimeFlareUsing 5s_PlaneAmmo BrowningM2 Ammo_PlaneAmmo ZuniRocket
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon F8_Crusader
Model mos.F8_Crusader
Texture F8_zuni
//Third Person Camera Distance
CameraDistance 12.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 5.0
// ------------------------------------------------------ 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 1.50
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 0.80
TurnRightSpeed 0.80
//Pitch modifiers
LookUpSpeed 0.75
LookDownSpeed 0.75
//Roll modifiers
RollLeftSpeed 2.25
RollRightSpeed 2.25
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.45
//Wheels
NumWheels 3
WheelPosition 0 -34 -24 -26
WheelPosition 1 -34 -24 26
WheelPosition 2 55 -26 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 90 2 0 nose parts_metalnose
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Shell
Secondary Missile
//Time between shots in 1/20ths of seconds
PlaceTimePrimary 160
ShootDelayPrimary 1
ReloadTimePrimary 80
PlaceTimeSecondary 260
ShootDelaySecondary 12
ReloadTimeSecondary 260
BulletSpeed 5.00
BulletSpread 1.00
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary True
//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
ShootPointPrimary 86 -2 -10 nose 
ShootPointPrimary 86 -2 10 nose 
ShootPointPrimary 90 -6 -10 nose 
ShootPointPrimary 90 -6 10 nose 
ShootPointSecondary 37 1 -17 core
ShootPointSecondary 37 1 17 core
ShootPointSecondary 37 4 -15 core
ShootPointSecondary 37 4 15 core
ShootPointSecondary 44 10 -17 core
ShootPointSecondary 44 10 17 core
ShootPointSecondary 44 10 -13 core
ShootPointSecondary 44 10 13 core
ShootParticlesPrimary cloud 0 0 0
ShootParticlesSecondary cloud 1 0 0
ShootParticlesSecondary cloud -1 0 0
ShootParticlesSecondary explode -1 0 0
ShootParticlesSecondary flame -1 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 8
AllowAllAmmo False
AddAmmo planeammo_browningm2ammo
AddAmmo planeammo_zunirocket
AddAmmo dummyammo
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 10000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 86 -6 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound jetengine
StartSoundLength 70
PropSound jetengine
PropSoundLength 70
StartSoundRange 100
EngineSoundRange 1000
PlaceSoundPrimary F8_PlaceSound
ShootSoundPrimary 12,7mm_2
ReloadSoundPrimary PG_reload
PlaceSoundSecondary None
ShootSoundSecondary PG_Hydra
ReloadSoundSecondary PlaneBomb_reload1
LockedOnSound Lock
SoundTime 8
LockedOnSoundRange 15
// ------------------------------------------------------ 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 nose 1 parts_metalcockpit 15 iron 3 parts_smallwheel 1 parts_metalwingsmall 1 parts_passengerbay
AddRecipeParts leftWing 1 parts_metalwingsmall
AddRecipeParts tail 1 parts_metaltail
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
//AddDye 0 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 200 -134 -12 -12 268 32 24
SetupPart leftWing 150 -74 13 -84 78 3 168
SetupPart tail 150 -135 4 -43 53 2 86
HasGear True
BulletDetection 5
//Collision points for breaking wings etc. upon crashing
//Core
CollisionPoint 20 2 0 core
CollisionPoint 40 2 0 core
//LeftWing
CollisionPoint 9 -3 80 leftWing
CollisionPoint 9 -3 60 leftWing
CollisionPoint 9 -3 40 leftWing
CollisionPoint 9 -3 20 leftWing
CollisionPoint 9 -3 -80 leftWing
CollisionPoint 9 -3 -60 leftWing
CollisionPoint 9 -3 -40 leftWing
CollisionPoint 9 -3 -20 leftWing
//Tail
CollisionPoint -60 2 0 tail
CollisionPoint -40 2 0 tail
CollisionPoint -80 2 0 tail
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 0
HasFlare True
FlareDelay 300
FlareSound Flare
TimeFlareUsing 5