Garry's Mod

Garry's Mod

334 个评价
Simple Magazine System
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 快乐, 写实
文件大小
发表于
更新日期
4.992 MB
9 月 12 日 下午 9:25
11 月 1 日 下午 10:13
5 项改动说明 ( 查看 )

订阅以下载
Simple Magazine System

描述
--SIMPLE MAGAZINE SYSTEM: Magazine Cache System & HUD--

(update 10/31/25: A lot of new good stuff. Menu, HUD fade out, vertical mags)

This is an adjustment the vanilla reload mechanic.

**YOU HAVE TO MANUALLY PREVENT ROUNDS-RELOAD WEAPONS FROM USING THE SYSTEM WITH THE WEAPON EQUIPPED**.

Instead of reloading from a reserve that vacuums up ammo and fills in your gun, reloading removes all ammo from the weapon and stores the remainder in a partial magazine. When you don't have any more full magazines, you will begin reloading from these partial magazines, starting with the highest capacity one.

This comes with a new HUD for displaying ammo, which displays all the magazines as progress bars. There's also a keybind that displays the current ammo in the equipped weapon. Weapons that do not use magazines have a different HUD that shows the individual rounds as stacked tick marks. Also, alt ammo is displayed in a new HUD element that displays ammo as ticks.

It seems to me that this is like the bare minimum that any fps game should have as far as reloading/ammo mechanics. Yet the vacuum reload remains the standard.

MENU
Now includes a thorough menu in the spawnmenu's 'Options' tab.

HUD OPTIONS
-The magazines displayed in the HUD are colored according to ammo remaining. You can decide what the "empty" color is via the menu.
-You can switch to an alternate HUD where the magazines are tiled side-by-side instead of stacked.
-You can opt to have the magazines display as full bars to rely on color cues for remaining ammo.
-You can choose to have the HUD fade after a set amount of time. Checking ammo or pressing the reload key causes the HUD to appear, and it will fade after the chosen delay.

USAGE TIPS:
-"Blacklist" your currently-equipped weapon (through console or menu) to instantly prevent it from using the mag system. Weapons with 1 bullet capacity (or weapons that don't reload) are automatically excluded, but 'rounds reload' style weapons have to be manually toggled.
-Bind either +CheckReload (to your reload key) or +mag_checkammo to see ammo remaining in your weapon.
-mag_set_limit will set limits for non-vanilla ammo types of the current equipped weapon - you should set it to the same limit used by the SWEP's mod. Vanilla ammo types will reference 'sk_max...' cvars, so edit those if your target weapon uses vanilla ammo.
-There is a config file (GarrysMod/garrysmod/data/mag_system/config.json) that stores blacklisted weapons and ammo limits. You can edit it directly or use console commands/menu. You may have to switch weapons or use magconfig_reload to get the config to refresh.
-There are a few neat features to toggle. For example, you can dump mags instead of saving them, or enable '1 in the chamber' reloads.
-The mod will save your current cached magazines when you quit, and restore them on load. Magsave and magload console commands let you use specific named cache loadouts. If you're saving/loading games, unfortunately Lua data is not written to save files -- you can manually save and load mag loadouts through the console or menu.
-This was designed to be compatible with multiplayer, but not tested.

This is intended to have a light touch and be compatible, so there are some limitations:
-Weapons that use the same ammo type will share ammo, but once you reload, that magazine is committed to the current weapon.
-If your ammo limit is not an even multiple of you weapon's max capacity, when you have max ammo in your inventory, you will have 1 mag that you won't be able to fill all the way. This mod references sk_max cvars (i.e. sk_max_smg1) for ammo limits, so you can set those to even multiples of your choosing to neatly correspond to your chosen weapon.
-SWEPs with 'chambered' rounds - like where you reload a weapon and keep 1 in the chamber. I implemented my own version of this, and procedurally disable the features in weapons belonging to MW Base, ArcCW, Arc9, TFA, and CW 2.0. Some other weapons get a little weird and it's possible a SWEP implements this in its own atypical way, meaning it won't function exactly as intended.
-Be wary of extended mag attachments and anything that messes with ammo capacity. I think they will work, but depending how they're implemented, there might be issues. Or if you switch magazine capacity while you have some active magazines, things could get a little weird.







Ammo check sound effect courtesy of fesliyanstudios.com
热门讨论 查看全部(2)
6
11 月 17 日 上午 7:08
Bug Reports
shwowsh
42 条留言
Johnny 11 月 14 日 下午 9:44 
This gives me Cry of Fear vibe with the ammo magazine system. And fun fact: I never played that game, just watched on YouTube very long time ago.
one_byte1 11 月 8 日 下午 2:19 
oh my god just like hideous destructor
shwowsh  [作者] 11 月 1 日 上午 7:54 
Okay options menu should now be there (Options tab > Mag System). I uploaded the wrong version last night but fixed it just now.
Ptichka 11 月 1 日 上午 7:51 
how do I disable the hud?
Armalad 11 月 1 日 上午 7:20 
I can't seem to find the options menu.
Ganz 9 月 24 日 下午 6:05 
Please add a feature where the HUD appears while reloading the weapon and disappears after a specified amount of time.
STΛRBIRD 9 月 23 日 下午 3:04 
капля поноса, are you reloading when the weapon is not fully depleted? if so, that's because arc9 is adding one extra round to your total count to simulate an unfired cartridge in the chamber of the gun. This is intended and this is how it works in real life.
капля поноса 9 月 23 日 下午 12:32 
i wanted to write a whole essay about a bug with ARC9 and i almost understood why its happening but then i found out i was wrong. idk why theres an extra round in mag sometimes. wish that would get fixed.
LenZi 9 月 22 日 下午 10:33 
And I already disabled the ammo limiter I got just to check if it was conflicting. It was just your mod.
LenZi 9 月 22 日 下午 10:30 
Really wish that it didnt limit ammo. I already got a mod for that. Your mod limits my pulse rifle ammo to 60 and your console commands listed for limiting ammo aren't working.