Skip to content

Commit

Permalink
Hotfix: Hearing dead players from opposit team after joining team
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerus committed Jan 7, 2025
1 parent a8c91db commit 316d114
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/basecomm.sp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,17 @@ public bool OnClientConnect(int client, char[] rejectmsg, int maxlen)
playerstate[client].isGagged = false;
playerstate[client].isMuted = false;

int dead_talk_mode = g_Cvar_Deadtalk.IntValue;
if(dead_talk_mode == 0)
{
SetClientListeningFlags(client, VOICE_NORMAL);
}
else
{
dead_talk_mode == 1 ? SetClientListeningFlags(client, VOICE_LISTENALL)
: SetClientListeningFlags(client, VOICE_TEAM);
}

return true;
}

Expand Down

0 comments on commit 316d114

Please sign in to comment.