Infinite Pistol Ammo
Добавить в игру через Steam
Нажмите «Подписаться»
На странице Steam войдите в аккаунт, если потребуется.
Подписаться
О материале
«Infinite Pistol Ammo» — материал мастерской Garry’s Mod. Аддоны, карты, персонажи и инструменты для песочницы. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
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://steamcommunity.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.
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.