Garry's Mod

Garry's Mod

3,146 ratings
Infinite Pistol Ammo
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
File Size
Posted
Updated
925.000 B
29 Aug, 2014 @ 9:41am
23 Mar, 2020 @ 1:41pm
2 Change Notes ( view )

Subscribe to download
Infinite Pistol Ammo

In 4 collections by Greasy Dean
Buckash105's Gameplay Tweaks
2 items
Game Night
55 items
Goober's Mod
39 items
Buck's Subs
82 items
Description
I stopped working on Gmod addons a few years ago, so don't expect me to update any of my addons. Thankfully, this addon still works on modern versions of Gmod, so hopefully that won't be necessary.

For some reason, this addon seems to conflict with my Health-Based Post Process addons. Be advised that you might not be able to make both work at the same time.

Finally, a reason to use that puny little peashooter of a HL2 pistol.

How it Works
This addon automatically sets your reserve pistol ammo count to 999 every in-game second, however it can be configured to also affect 357 ammo (or both!)
Since handguns in a lot of games (and indeed, in a lot of Workshop weapon packs) aren't as powerful as bigger guns like rifles and shotguns, it's worth adding some extra utility to those tiny little handguns out there. Finally, a reason to keep that sidearm on your hip.

Convars:
infinitepistolammo_enabled_pistol 0/1 (default 1) -- This runs the script for the default pistol's ammo pool. Set to 0 to turn it off.
infinitepistolammo_enabled_357 0/1 (default 0) -- This runs the script for the default .357 Magnum's ammo pool. Set to 0 to turn it off.

Notes:
-As long as the script is running, EVERYONE on the server gets set to 999 ammo for the enabled ammotypes.
-This addon sets reserve ammo, not the capacity of your weapon's magazine. You will still need to reload your pistols. Sorry, Hollywood.
-This is probably one of the smallest addons on Gmod's workshop. Having this on your server shouldn't impact download size at all.
-Ammo is SET, not GIVEN -- if you somehow have more than 999 of the ammo type, it gets dropped down to 999.
-Script runs independent of equipped weapon. If you switch to your SMG, your pistol/357 ammo still gets refreshed in the background.
-If you disable the convars, you'll still have 999 ammo -- you'll just not get boosted back up to 999 until it's re-enabled.
-Other scripts that give unlimited ammo for things may cause your ammo counter to spaz out every second. Don't worry, you still effectively have infinite -- it just means my addon and the other addons are fighting for supremacy over how much ammo you have. There is nothing I can do about this.

For those of you that would like to see me do a version that applies to other ammo types, Zombie Extinguisher already has a really good mod for that.
It has configurable unlimited ammo for ANY weapon, and also includes a customizable damage multiplier, rapid fire modes, and the option to enable/disable parts of the built-in accuracy system to boot. It even has a customization interface in the spawnmenu, so you don't have to mess around with console commands all the time. It's pretty great. Download it here: https://steamoss.com/sharedfiles/filedetails/?id=489910704

This is my first ever Gmod addon (dupes and saves don't count in my opinion). Since this is my first time coding with Lua, I ended up working my ass off for about 7 hours total just to make about 6 lines of code and get it to work properly.

Have something to say about any of my mods? I want to hear about it. Leave a comment on the addon with your feedback and/or praise and/or criticism and/or opinion and/or insults and/or death threats, and I'll probably respond to it when I get the chance.

Don't ask me to do this for other ammo types! If I decide I feel like doing a different ammo type, I'll do it.
Popular Discussions View All (1)
0
11 Sep, 2014 @ 11:53am
Support - Post Bugs Here
Greasy Dean
234 Comments
Greasy Dean  [author] 19 Jan @ 2:35pm 
Yeah, that's definitely weird. But somehow, perfectly on brand for game modding.
Have you tried toggling the console commands? They might both be set to 0. That could also be it.
Greasy Dean  [author] 19 Jan @ 12:50pm 
@Dpog I tested it out just now and it seems to work on my side. There's probably an addon conflict -- I happen to know that this also conflicts with my Health-Based Post-Process addons for some reason.

There's another version of this made by Coffee Man that might work better for you:
https://steamoss.com/sharedfiles/filedetails/?id=3243787434&searchtext=pistol+ammo
Azura Otium 8 Oct, 2024 @ 10:33am 
i really hate those command's
Greasy Dean  [author] 20 Jul, 2024 @ 6:40pm 
:steamhappy:
Ajiliffe 20 Jul, 2024 @ 12:51pm 
ayee left 4 dead reference-
Greasy Dean  [author] 16 Jun, 2024 @ 9:01am 
:steamhappy:
YouBeDead 9 Jun, 2024 @ 3:17pm 
its a good addon
Greasy Dean  [author] 11 Jul, 2023 @ 10:54pm 
I'm not really too interested in (or have the time for) updating this addon, sorry.
Penser 11 Jul, 2023 @ 11:08am 
can you add option to disable reload? Im currently looking for addons that buff the default pistol so it wont be so uselss
Greasy Dean  [author] 10 Jun, 2023 @ 10:33pm 
why would I do that when it's so entertaining to watch you seethe in these comments about a 9 year old addon