[LFS] – Planes

If you liked this item, please rate it up on Steam Workshop page.

Authors: Blu-x92, Luna

Last revision: 13 Jun, 2022 at 14:41 UTC

File size: 218.13 MB

On Steam Workshop

Description:
Lua based flight system. Included vehicles are located in your "Entities"-tab under [LFS]

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.

Controls (Default)

OUTSIDE VEHICLE:
  • E = Enter Vehicle
  • ALT + E = Enter closest passenger seat | gunner seat
PLANE:
HELICOPTER:

ADDITIONAL NOTES
  • 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

Want to create your own vehicle using this addon as base?

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]

Credits for included models

(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)

Links

GitHub[github.com]

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