Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Voice: fix panel colors and voice chat not working after round start (#…
…1568) `GM:PlayerEndVoice` was resetting players' team voice state even if they were still talking in team voice chat because `GM:PlayerEndVoice` is called client-side whenever a player stops audibly talking (not when they are actually done using voice chat). This was unnecessary anyway so I removed the hook. There were also multiple issues related to stuff not being updated on round start / team change (panel colors not being updated and your panel being shown but you weren't actually speaking). The simplest solution I found was forcibly re-enabling voice chat on team change. Unfortunately I discovered that using 0s timers for re-enabling voice chat is inconsistent for whatever reason and wouldn't always call `GM:PlayerStartVoice`. I didn't fine-tune the timing but using 0.05s (2 or 3 ticks?) seemed to fix this.
- Loading branch information