Garry's Mod

Garry's Mod

3,162 betyg
Infinite Pistol Ammo
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
Filstorlek
Lades upp
Uppdaterades
925.000 B
29 aug, 2014 @ 9:41
23 mar, 2020 @ 13:41
2 ändringsnotiser ( visa )

Abonnera för att ladda ner
Infinite Pistol Ammo

I 4 samlingar av Nasty Ned
Buckash105's Gameplay Tweaks
2 artiklar
Game Night
55 artiklar
Goober's Mod
38 artiklar
Buck's Subs
97 artiklar
Beskrivning
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://gtm.steamproxy.vip/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.
Populära diskussioner Visa alla (1)
0
11 sep, 2014 @ 11:53
Support - Post Bugs Here
Nasty Ned
234 kommentarer
Nasty Ned  [skapare] 19 jan @ 14:35 
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.
Nasty Ned  [skapare] 19 jan @ 12:50 
@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://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3243787434&searchtext=pistol+ammo
Azura Otium 8 okt, 2024 @ 10:33 
i really hate those command's
Nasty Ned  [skapare] 20 jul, 2024 @ 18:40 
:steamhappy:
Ajiliffe 20 jul, 2024 @ 12:51 
ayee left 4 dead reference-
Nasty Ned  [skapare] 16 jun, 2024 @ 9:01 
:steamhappy:
YouBeDead 9 jun, 2024 @ 15:17 
its a good addon
Nasty Ned  [skapare] 11 jul, 2023 @ 22:54 
I'm not really too interested in (or have the time for) updating this addon, sorry.
Penser 11 jul, 2023 @ 11:08 
can you add option to disable reload? Im currently looking for addons that buff the default pistol so it wont be so uselss
Nasty Ned  [skapare] 10 jun, 2023 @ 22:33 
why would I do that when it's so entertaining to watch you seethe in these comments about a 9 year old addon