About:- Fixes picking up a weapon of the same type and refilling the clip size to full.
- Returns the clip size to the previous value and adds the new ammo to the reserve.
Thanks:- Eärendil - For the idea and request
Related Plugins:
ConVars:
Saved to
l4d2_reload_fix.cfg in your servers
\cfg\sourcemod\ folder.
PHP Code:
// When using the give command and replacing the same weapon type, transfer ammo to the new weapon. 0=No. 1=Yes.
l4d2_reload_fix_give "0"
// No Reload Animation Fix plugin version
l4d2_reload_fix_version
Changes:
Code:
1.8 (03-Apr-2024)
- Fixed wrong weapons ammo when switch weapons. Thanks to "HarryPotter" for the update.
1.7 (12-Mar-2024)
- Save all clients weapons ammo, useful if weapon ammo exceeded the official ammo cvar. Thanks to "HarryPotter" for the update.
1.6 (25-May-2023)
- Added cvar "l4d2_reload_fix_give" to optionally prevent "give" command with same type of weapon setting to the previous weapons ammo.
1.5 (20-Aug-2022)
- Records all weapons clip and ammo. Thanks to "HarryPotter" for writing.
1.4 (29-Mar-2022)
- Fixed not always detecting the correct current weapon. Thanks to "Forgetest" for fixing.
1.3 (02-Nov-2021)
- Fixed treating different weapon skins as the same weapon. Thanks to "tRololo312312" for reporting.
1.2 (06-Jul-2021)
- Fixed throwing errors about invalid entity. Thanks to "HarryPotter" for reporting.
1.1 (27-Jun-2021)
- Fixed throwing errors about invalid entity. Thanks to "HarryPotter" for reporting.
1.0 (19-Jun-2021)
- Initial release.
Installation:
- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.