TTT-2 / TTT2

Trouble in Terrorist Town 2 for Garry's Mod (gmod)
https://steamcommunity.com/sharedfiles/filedetails/?id=1357204556
177 stars 72 forks source link

Voice chat sometimes stuck #1623

Open mexikoedi opened 1 week ago

mexikoedi commented 1 week ago

Your version of TTT2

Describe the bug (mandatory)

If you kill someone then the player becomes Spectator and his voice chat popup is yellow. If someone revives the player then the voice chat popup is still yellow for the player and nobody hears the player. The player needs to press the key to deactivate and then again press the key to activate the voice chat until the color changes to green and then everyone can hear the player again. It probably also happens in other situations like for example if the player talks in the Traitor voice chat and gets converted to a Sidekick. (The voice chat popup is still green instead of yellow if you die. The player needs to disable and enable voice chat so that the color changes for him. He can be still heard even if he doesn't do anything, so it's only a color issue.)

To reproduce

Steps to reproduce the behaviour:

  1. Go into a round with at least one other player
  2. Talk to each other
  3. Kill the player
  4. Respawn/convert the player
  5. See the described issue

Expected behaviour

The voice chat popup should update accordingly and it shouldn't get stuck for the player because otherwise the player always needs to disable and enable the voice chat again.

Context (please provide as much as you can)

Additional context

Tim wrote the following on the Discord server: "Hm, that might be fixable by auto toggling their voice when they update their state."

TimGoll commented 4 days ago

I think this one is related to the same issues described in #1397