Skip to content

[ALL] Fix CVoiceStatus::UpdateServerState not sending the correct vban state from the client #1295

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

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

Conversation

FlaminSarge
Copy link
Contributor

@FlaminSarge FlaminSarge commented May 20, 2025

Description

An oversight would cause it to fetch only the lowest 32 players' infos instead of the correct index.
This would result in something like vban 2 2 2 2 instead of vban 2 0 0 0 when muting player 2 (muting player 34+66+98 in the process), and would prevent muting players above index 33 correctly as those would not send any vban.

Tested with player indices >33 on live TF2 vs this patch: without the patch, muting player index 36 does nothing; with the patch the player gets muted properly. The outputs of voice_clientdebug and voice_serverdebug also print the expected (incorrect) values in live TF2 and (correct) values in patched version.

@FlaminSarge FlaminSarge marked this pull request as draft May 20, 2025 13:19
@FlaminSarge FlaminSarge changed the title Fix CVoiceStatus::UpdateServerState not sending the full ban state from the client Fix CVoiceStatus::UpdateServerState not sending the correct vban state from the client May 20, 2025
@FlaminSarge FlaminSarge marked this pull request as ready for review May 21, 2025 05:05
@FlaminSarge FlaminSarge changed the title Fix CVoiceStatus::UpdateServerState not sending the correct vban state from the client [All] Fix CVoiceStatus::UpdateServerState not sending the correct vban state from the client May 21, 2025
@FlaminSarge FlaminSarge changed the title [All] Fix CVoiceStatus::UpdateServerState not sending the correct vban state from the client [ALL] Fix CVoiceStatus::UpdateServerState not sending the correct vban state from the client May 21, 2025
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.

1 participant