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

feat(client/admin_client) add ability to disable player shooting if frozen #772

Merged
merged 5 commits into from
Aug 10, 2023

Conversation

Gravxd
Copy link
Contributor

@Gravxd Gravxd commented Aug 8, 2023

Adds a new convar: setr ea_disableShootingWhileFrozen "true"
This will make it so that a player frozen by an admin will not be able to shoot their weapon.

It also removes the constantly running thread on the client when not needed and instead only runs the checks/actions for being frozen upon the state change from the server when the player is frozen or they are spectating someone.

@Blumlaut
Copy link
Owner

Blumlaut commented Aug 8, 2023

wondering if we really need a new convar for this? what use case could you have to freeze a player but still alow them to attack.

@Gravxd
Copy link
Contributor Author

Gravxd commented Aug 8, 2023

Fair point, i did think about that as well however the ability to customise / personalise is ideal for most servers, they may just simply not want it.

We can always pull the convar and have it run the disable by default, up to you

@Blumlaut Blumlaut merged commit 141a824 into Blumlaut:master Aug 10, 2023
1 check failed
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