[LFS] – Planes
Every plane has a simple inbuild AI-system which can be enabled using the Edit-Properties menu (as admin) or by using the AI-Enabler Tool located under Tools=>LFS

Requirements:
- Unaltered Gravity. Planes can not fly in no-gravity environment. Different-from-normal gravity will mess up the handling.
- Keep "gmod_physiterations" set to it’s default value (4) and "air_density" set to default (2), as these vehicles are tweaked to work on a physics environment with default-settings.
- Tickrate set to atleast 33. LFS can work with lower tickrates, but handling and performance will suffer (spazzm, unresponsive or spongey handling, ect). Best results are on DEFAULT 66.66..-tick. Default means unaltered. Having -tickrate 66 as Launch-Option will result in skipping frametimes and spongey handling.
- For the AI to engage combat mode, it is required to have atleast 6000-10000 units of airspace in Z axis. On maps with low ceiling, the AI will stay in climb-mode and therefore will not attack other planes or players.

- E = Enter Vehicle
- ALT + E = Enter closest passenger seat | gunner seat
- W = Increase Throttle // fly UP in VTOL-MODE
- S = Decrease Throttle // fly DOWN in VTOL-MODE // fly DOWN in VTOL-MODE-HYBRID
- A = Roll Left
- D = Roll Right
- R = Start Engine. Make sure you are aiming forward. There will be a signal-sound and red flashing line if your view isn’t centered.
- Space = Toggle Landing Gear + Flaps // Toggle S-Foils // Toggle vtol mode
- Shift = Pitch Up // fly UP in VTOL-MODE-HYBRID
- Left Mouse Button = Primary Attack
- Right Mouse Button = Secondary Attack
- ALT(Hold) + Move Mouse = Free Look
- W = Increase Throttle (Thrust Up)
- S = Decrease Throttle (Thrust Down)
- A = Roll Left
- D = Roll Right
- R = Start Engine. Make sure you are aiming forward. There will be a signal-sound and red flashing line if your view isn’t centered.
- Shift (Hold) = Hovermode
- Left Mouse Button = Primary Attack
- Right Mouse Button = Secondary Attack
- ALT(Hold) + Move Mouse = Free Look

- As Driver, you can lock the vehicle by pressing 1
- Normal turning is done with the Mouse. It’s mouseaim controls. However while in Free Look you can still use W A S D and Shift to maneuver.
- If you don’t want ai-vehicles to attack players simply type "ai_ignoreplayers 1" into the console.
They will still attack your LFS plane however - While inside a vehicle and if the vehicle has passenger seats you can switch to them using the number-keys (0 – 9 where 1 = driverseat)
- The [LFS] control panel can be accessed using either the context menu desktop widget[i.imgur.com] or by typing lfs_openmenu into the console.
The control panel gives access to following console variables:
- lfs_volume – from 0 to 1 changes engine volume, clientside command
- lfs_camerafocus – change view-camera focus from -1 to 1, clientside command
- -1 = Focus Mouse
- 1 = Focus Plane (when set to 1, camera will roll with the plane. If you don’t want this behavior set it to 0.99)
- 0 = neutral(default) )
- lfs_freeze_teams – 0 / 1 enable/disable auto ai-team switching, serverside command
- lfs_default_teams – 0 / 1 / 2 default player ai-team, serverside command
- lfs_show_identifier – 0 / 1 enable/disable plane identifier (red/blue/orange square on other planes), clientside command
- lfs_hitmarker – 0 / 1 enables/disables hit marker + sound effect, clientside command
- lfs_hipster – 0 / 1 enable/disable key rebinding. Can cause problems when set to 1. Will rebind your exit key to J. Check your Control Panel "Controls" tab for more information, clientside command

A template can be found here[github.com]. LUA knowledge is required. Make sure to check it out every now and then, because new functions will be added and old ones will be changed.
Some additional LUA functions can be found here[github.com]

(models are included because i had to either re-rig, re-compile, fix console errors or fix material work. Please consider to subscribe to the original authors workshop addons and show them some love for the work they have done)
- Cessna 172 Skyhawk[garrysmods.org] – Original Creator Hornetnest
- Spitfire – Original Creator Dr Matt & SGM
- BF 109 E-7- Original Creator damik
- Republic P-47D Thunderbolt – Original Creator damik – re-rigged by | HT.S | Gredwitch

GitHub[github.com]

No version or modification of this content is allowed to be uploaded to the workshop except under the account ID 76561197995010235
