Garry's Mod

Garry's Mod

5,576 ratings
[LVS] - Framework
11
3
4
2
2
2
3
3
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Vehicle
Addon Tags: Fun, Realism
File Size
Posted
Updated
32.117 MB
4 Jan, 2023 @ 6:48pm
25 Apr @ 2:23pm
376 Change Notes ( view )

Subscribe to download
[LVS] - Framework

In 2 collections by Jinxit
[LVS]
9 items
[LVS] - Tournament
8 items
Description
This is Luna's Vehicle System. It's purpose is to get all the different vehicle systems running on one and the same base so you don't have to code all the basic things over and over again such as seat switcher, damage system, exit scripts, weapon systems, ect. Just a simple, standardized framework. Doesn't matter what it is, it can be used for anything you can imagine. Cars, boats, planes, spaceships, or just a stationary turret, or a house? you name it. If it's supposed to be enterable this base got your back. Comes with a timed-projectile system so you don't have to use hitscan anymore. Also includes a Damage System and Armor System with callbacks so you can code whatever damage reactions you want. Also comes with some basic effects such as scraping, wind noises, ground effects for fast moving objects, trail system...



Controls (Default)
(you can rebind all controls in the control panel)

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

INSIDE VEHICLE:
  • E + W or A or S or D = Exit Vehicle in desired direction
  • R = Start Engine
  • 0-9 (NOT NUMPAD) = switch to Seat
  • Left Mouse Button = fire selected Weapon
  • Right Mouse Button = zoom
  • Mouse Wheel Up = select next Weapon
  • Mouse Wheel Down = select previous Weapon
  • Middle Mouse Button + Wheel Up/Down = change camera distance
  • Ctrl = Toggle First/Third Person View
  • Alt = Free Look
  • Space = Toggle Vehicle Function (such as Landing Gear)



ADDITIONAL NOTES
  • As Driver, you can lock the vehicle by pressing 1

  • The [LVS] control panel can be accessed using either the context menu desktop widget or by typing lvs_openmenu into the console.

The control panel gives access to following console variables:
  • lvs_volume - from 0 to 1 changes engine volume, clientside command
  • lvs_camerafocus - change view-camera focus from -1 to 1, clientside command (mouse aim only)
    • -1 = Focus Mouse
    • 1 = Focus Vehicle (when set to 1, camera will roll with the Vehicle. If you don't want this behavior set it to 0.99)
    • 0 = neutral(default) )
  • lvs_freeze_teams - 0 / 1 enable/disable auto ai-team switching, serverside command
  • lvs_default_teams - 0 / 1 / 2 default player ai-team, serverside command
  • lvs_show_identifier - 0 / 1 enable/disable plane identifier (red/blue/orange square on other planes), clientside command
  • lvs_hitmarker - 0 / 1 enables/disables hit marker + sound effect, clientside command
  • lvs_edit_hud - 0 / 1 enable/disable Context Menu HUD editing, clientside command
  • lvs_mouseaim - 0 / 1 enable/disable Mouse-Aim Steering Method, clientside command
  • lvs_sensitivity_x - change mouse sensitivity in X direction (relative to screen: left/right) (Direct Input only), clientside command
  • lvs_sensitivity_y - change mouse sensitivity in Y direction (relative to screen: up/down) (Direct Input only), clientside command. SET THIS TO A NEGATIVE VALUE TO INVERT THIS AXIS
  • lvs_return_delta - change how fast the input returns to 0 (Direct Input only), clientside command

you can toggle mouse-aim by using lvs_mouseaim_toggle console command or by binding it to a key like:
bind X lvs_mouseaim_toggle
and then press X

convar for max projectile turret is: sbox_maxlvsturret (default 1)



Links
This Project on GitHub[github.com]
[LVS] - Planes
[LVS] - Star Wars
[LVS] - Helicopters
[LVS] - Cars
[LVS] - Cars - Pack
[LVS] - Tanks
GitHub[github.com]
Discord[discord.gg]



No version or modification of this content is allowed to be uploaded to the workshop except under the account ID 76561197995010235
165 Comments
Garry's mod 26 Aug @ 2:07am 
[[LVS] - Framework]
[ERROR] lua/entities/lvs_tank_wheeldrive/modules/sh_turret.lua:58: attempt to index local 'TurretArmor' (a nil value)


1. PostInitialize - lua/entities/lvs_base/init.lua:97
2. PostInitialize - lua/entities/lvs_base_wheeldrive/init.lua:108
3. unknown - lua/entities/lvs_base/init.lua:83
The Mass Toilet Clogger 24 Aug @ 5:41am 
Some addons make it so Superchargers and Turbochargers spawn and delete themselves after 3-5 seconds, Gives a texture error in the console but no problems in the problems tab, Could be Lemoncola's "Some Handy Entities" addon causing the problem but I'm not so sure about that doing so.
Cat 24 Aug @ 5:35am 
I NEED AN ENGINE TO START THE CAAAAAAAAAAAAR. HOWWWWWWWWWWWWW
zombinator 15 Sep, 2024 @ 12:27pm 
I see, thank you for a full explanation.
Jinxit  [author] 15 Sep, 2024 @ 10:42am 
Cars do consume fuel. There is no adjustments to be made. The official plane base does not come with a fuel system.
The main purpose of the fuel system is not to be an permanent annoyance every 5 minutes for refuel, but instead its there to give a weakspot in combat. You usually have like 30 minutes of runtime before they run out.
zombinator 15 Sep, 2024 @ 10:18am 
okay. on planes, i somehow did something that activated a feature where the plane loses fuel over time, on my cars, it DOESNT do that. i want some help and not just a random sentence that doesnt help.
Jinxit  [author] 15 Sep, 2024 @ 10:09am 
they dont have infinite fuel
zombinator 15 Sep, 2024 @ 9:50am 
How to make cars lose fuel over time, they have infinite fuel by default
-Who-Me-Two2- 15 Sep, 2024 @ 7:53am 
I meant to say tanks not tans
-Who-Me-Two2- 15 Sep, 2024 @ 7:52am 
Do you ever know if you'll update the AI with more diversity like for the tans so they might try and circle one another or where they might sometimes sit afar and shoot instead of getting so close?