Skip to content
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

Fix weapon reload not stopping when player switches tools #181

Open
wants to merge 1 commit into
base: standalone
Choose a base branch
from

Conversation

utf-4096
Copy link

@utf-4096 utf-4096 commented Mar 8, 2023

On the original client, the weapon reload gets cancelled if you switch of tool while reloading your weapon.
The bundled in server and SpadesX follow this behavior by sending a reload cancel packet, however, BetterSpades proceeds with the reloading anyway.
This PR changes it to be more in line with VOXLAP.

This cancels weapon reloading if the player switches tools,
this is the behavior that can be observed in the VOXLAP server.exe
and in SpadesX.

Closes xtreme8000#174
@Haxk20
Copy link
Contributor

Haxk20 commented Mar 9, 2023

Should be noted that this has been worked around by server to send finish reload packet with the original ammo count to the client once we cancel. This prevents any of the funky business.

Server = SpadesX.
Pique and etc do not care about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants