Garry's Mod

Garry's Mod

59 ratings
Auto-Reload Holstered Guns
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Movie, Realism
File Size
Posted
Updated
13.230 KB
6 Jun, 2023 @ 6:37pm
15 Jun, 2023 @ 9:40pm
15 Change Notes ( view )

Subscribe to download
Auto-Reload Holstered Guns

In 1 collection by lemontine
ULTRAKILL at home
28 items
Description
Reloads individual guns if they have not been pulled out after x amount of time!

FEATURES
  • Each gun is associated with its own timer rather than all guns sharing the reload timer
  • Ammo reserve is expended when the gun is holster-reloaded.
  • Primarily works for default HL2 guns
  • Should work for modded guns
  • Variable reload time
  • Regen RPG ammo and SMG grenades!
  • You can regen frag grenades too - a pretty handy feature. Although, you cannot regen them after reaching zero as a result of the grenade technically not being in your inventory.

CVARS: These variables may be changed under Utilities > lemontine > Holstered Reload
CVAR
Default value
Description
holsteredreload_enabled
1 (true)
whether holstered reload is enabled
holsteredreload_reload_time
6
time in seconds it takes for a stowed gun to reload
holsteredreload_regen_rpg
0
rpg will regen to 3 every 5x reload time
holsteredreload_regen_smg_grenade
0
smg grenades will regen to 3 every 5x reload time

holsteredreload_regen_smg_grenade only works if Ammo on Kill is installed, see below

Bonus: Check out my addon that gives you ammo for your gun upon a kill, an alternative to infinite ammo! https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2985745554
10 Comments
дабстеп мытищи 20 Apr @ 5:23pm 
regardless, i've really liked the addon!

> smg grenades will regen to 3 every 5x reload time

you should probably mention in the description that you can regen frag grenades too - a pretty handy feature. although it would be nice if you could regen them even if you have zero

also, being able to tweak that "5x"'value would be nice.
дабстеп мытищи 20 Apr @ 5:14pm 
did you really have to hit me with existential crisis like that ... :barotrauma:
lemontine  [author] 20 Apr @ 3:20pm 
What is the point of anything? Did you wake up today thinking that you too would be given purpose in this world? No. But you woke up anyways. You rolled out of bed and got to work on things that ultimately have no true meaning in the grand scheme of things, that would be wiped away as instantly as is a piece of dust landing on a tree to be blown away lost forever. Even knowing this, you blindly accept this fate and toil anyways. Perhaps I wanted to reload my guns when they're holstered for the same reason, maybe I spent time learning a new programming language just to do this, but one day all of this will be gone. Everything I, you, anyone, touches will cease, everything learned, lost. But we do it anyways. Why? Because there's nothing better to do than make the most out of our experience in this world. Anyways if you want to make it so your smg grenades reload when it's holstered, be sure to set the value to 1 in the console
дабстеп мытищи 19 Apr @ 11:32am 
what is the point
ModestShoducks 20 Aug, 2023 @ 5:18am 
how do i make it work?
lemontine  [author] 10 Jun, 2023 @ 9:35pm 
@VectorAssassin97 i think i fixed it now, thanks for bringing that to my attention ^_^!
VectorAssassin97 10 Jun, 2023 @ 5:35pm 
This appear, every time i put the mask on.


[Auto-Reload Holstered Guns] lua/autorun/server/sv_holsteredreload.lua:35: Tried to use a NULL entity!
1. GetClass - [C]:-1
2. unknown - lua/autorun/server/sv_holsteredreload.lua:35

Timer Failed! [Simple][@lua/autorun/server/sv_holsteredreload.lua (line 33)]
lemontine  [author] 10 Jun, 2023 @ 2:59pm 
@VectorAssassin97 what are the conflicts? i tried loading in both this addons, it seems to be working
VectorAssassin97 9 Jun, 2023 @ 9:25am 
I found conflicts with the contagion gas mask addon.
lemontine  [author] 7 Jun, 2023 @ 10:22pm 
fixed it