-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HL] Some weapon reloading animations run twice #2301
Comments
I test it and I can confirm the issue, at leats in the beta version. |
This happens because weapon reloading was never fully implemented in the weapon prediction code on the client. As a result the client will think that the clip is not full and sets up another reload. This is the code that changes the ammo values incorrectly: halflife/cl_dll/hl/hl_weapons.cpp Lines 329 to 338 in 5d76170
I was able to fix this by changing the code to this:
It's a bit ugly since it calls A proper fix would require engine level changes to the data structures and networking system in order to network all ammo values which is impossible to do without breaking mods, so this will have to do. Avoiding the |
cl_lw is set to "1" by default. "0" fixes this bug, it seems. |
Yes, because it disables the prediction code. But it's not a fix. |
That's a workaround not a fix |
Shoot and then spam the reload weapon key. The Glock, the MP5 and the Python will be reloaded twice. Python's second animation is cut, though.
This is not the same bug as #1076.
The text was updated successfully, but these errors were encountered: