Reload animation glitching when a modified clip size is full.
Shotgun animation stopping after reloading 15 bullets.
When using Left4DHooks L4D2_SetIntWeaponAttribute(classname, L4D2IWA_ClipSize, XX);
- OR - Info Editor to modify "clip_size" key value.
- OR -
some other method to modify the clip size e.g. directly modifying weapon.txt script files (L4D1).
For some reason detouring "CTerrorGun::Reload" using the VTable method kept crashing, so I've gone with using signatures.
Saved to l4d_reload_fix.cfg in your servers \cfg\sourcemod\ folder.
PHP Code:
l4d_reload_fix_m60 "0" // 0=Off, 1=Fix the M60 from reload bug issues.
Changes:
Code:
1.5 (21-Apr-2024)
- Added cvar "l4d_reload_fix_m60" to control if the M60 should be fixed or not, since I encounter no bug with changed clip size.
- Fixed the Grenade Launcher and M60 playing the reload animation when a modified clip size is full. Thanks to "chungocanh12" for reporting.
1.4 (07-Nov-2023)
- Fixed not deleting 2 handles. Thanks to "HarryPotter" for reporting.
1.3a (08-Sep-2021)
- GameData file updated. Wildcarded "CTerrorGun::Reload" to support other plugins detouring this function.
- Thanks to "vikingo12" for reporting.
1.3 (05-Jul-2021)
- L4D2: Added support for the "weapon_smg_mp5" weapon. Thanks to "Alexmy" for reporting.
1.2 (29-Jun-2021)
- L4D2: Added support for the Magnum "weapon_pistol_magnum" pistol.
1.1b (17-Jun-2021)
- Compatibility update for L4D2's "2.2.1.3" game update. Thanks to "Crasher_3637" for fixing.
- GameData .txt file updated.
1.1a (24-Sep-2020)
- Compatibility update for L4D2's "The Last Stand" update.
- GameData .txt file updated.
1.1 (05-Sep-2020)
- Now prevents changing anything when the max clip size is unchanged.
- Added a fix for shotgun reload animation stopping when reloading >= 15 bullets at one time.
- Thanks to "fbef0102" for reporting.
- GameData file updated.
1.0 (25-Aug-2020)
- Initial release.