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(client): Prevent weapon disarm if weapon is currently being used #1732

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

Conversation

spoty123
Copy link

@spoty123 spoty123 commented Jun 21, 2024

Currently, you can unlimitedly use ammo by unequipping the weapon you are using while shooting with it.
This PR solves this bug by preventing weapons from being unequipped while they are actively being used (aka weapon timer exists, and is bigger than 0).

Here is a demonstration video: https://streamable.com/oeoqjz

This "fix" would still not cover a case where the weapon is actively used and a "disarm" is called from elsewhere, but I guess that's a very rare edge case which should be handled by the calling script.

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.

None yet

1 participant