// ------------------------------------------------------ Naming ------------------------------------------------------
Name LightFighter-BiPlane_SopwithCamel
ShortName lightfighter-biplane_sopwithcamel
ItemID 11201
Description MAX HP:100_FlareDelay 300_TimeFlareUsing 5s_PlaneAmmo BrowningM2 Ammo
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon LiteFighterEBiPlane_SopwithCamel
Model ww2.Camel
Texture LiteFighterEBiPlane_SopwithCamel
//Third Person Camera Distance
CameraDistance 7.5
//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 0.50
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 0.7
TurnRightSpeed 0.7
//Pitch modifiers
LookUpSpeed 0.8
LookDownSpeed 0.8
//Roll modifiers
RollLeftSpeed 3.0
RollRightSpeed 3.0
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.45
//Wheels
NumWheels 3
WheelPosition 0 2 -16 -26
WheelPosition 1 2 -16 26
WheelPosition 2 -46 -9 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 27 0 0 nose parts_woodenpropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Shell
Secondary 
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
ReloadTimePrimary 80
ShootDelaySecondary 80
ReloadTimeSecondary 80
BulletSpeed 5.00
BulletSpread 0.75
//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
ShootPointPrimary 30 4 4 nose 
ShootPointPrimary 30 4 -4 nose 
ShootParticlesPrimary cloud 0 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 2
AllowAllAmmo False
AddAmmo planeammo_browningm2ammo
AddAmmo dummyammo
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 4000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 0 -4 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound Camel_StartSound
StartSoundLength 20
PropSound Camel_PropSound
PropSoundLength 40
StartSoundRange 100
EngineSoundRange 1000
PlaceSoundPrimary Camel_PlaceSound
ShootSoundPrimary 12,7mm_2
ReloadSoundPrimary PG_reload
PlaceSoundSecondary None
ShootSoundSecondary None
ReloadSoundSecondary None
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_woodencockpit 3 parts_smallwheel 1 parts_metalnose 1 parts_biplanewing
AddRecipeParts rightWing 1 parts_biplanewing
AddRecipeParts tail 1 parts_woodentail
//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 100 -12 -7 -11 36 10 22
SetupPart rightWing 75 -9 -2 -50 18 22 100
SetupPart tail 50 -51 -6 -5 40 8 10
HasGear False
BulletDetection 5
//Collision points for breaking wings etc. upon crashing
//Core
CollisionPoint 16 -2 0 core
//RightWing
CollisionPoint 0 -2 20 rightWing
CollisionPoint 0 -2 40 rightWing
CollisionPoint 0 -2 -20 rightWing
CollisionPoint 0 -2 -40 rightWing
CollisionPoint 0 18 -40 rightWing
CollisionPoint 0 18 -20 rightWing
CollisionPoint 0 18 0 rightWing
CollisionPoint 0 18 20 rightWing
CollisionPoint 0 18 40 rightWing
//Tail
CollisionPoint -40 -2 0 tail
CollisionPoint -20 -2 0 tail
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 0
HasFlare True
FlareDelay 300
FlareSound Flare
TimeFlareUsing 5