Garry's Mod

Garry's Mod

Not enough ratings
New Lastinv
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun
File Size
Posted
Updated
1.739 KB
28 Sep, 2019 @ 3:26pm
19 Mar, 2024 @ 1:55pm
6 Change Notes ( view )

Subscribe to download
New Lastinv

In 1 collection by Sophisticated Gumi-chan
Dabbin' Memes to fill your Garry's Mod Dreams.
38 items
Description
This is a reimplementation of the lastinv console command. It bypasses SWEPs disabling lastinv by not returning true from the deploy function.

Bind a key to lastinv_new.

There is a CVar called lastinv_new_frequency that can manipulate the timer frequency for how often the script will look for a new weapon to set to your previous weapon. Set this to 0.01 to emulate the original lastinv perfectly, at the cost of running once every tick. I chose 0.05 because that's once every five one-hundredths of a second, which is pretty fast already, but I wanted to compensate for every edge case. By default this CVar is set to 0.05.