From f6536fd3c5c583e625fce9daf49669332ec7b8fb Mon Sep 17 00:00:00 2001 From: jenz Date: Thu, 9 Jul 2026 15:42:52 +0200 Subject: [PATCH] just making sure all nosteamers always have steam players muted and not only the webclient --- CELT_VOICE/scripting/nosteam_celt_audio.sp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CELT_VOICE/scripting/nosteam_celt_audio.sp b/CELT_VOICE/scripting/nosteam_celt_audio.sp index 405dc77..758f1db 100644 --- a/CELT_VOICE/scripting/nosteam_celt_audio.sp +++ b/CELT_VOICE/scripting/nosteam_celt_audio.sp @@ -40,13 +40,13 @@ public void OnPluginEnd() } } -public void set_webclient_listen_override(int client) +public void set_nosteam_listen_override(int client) { for (int j = 1; j <= MaxClients; j++) { if (!IsValidClient(j) || client == j || IsFakeClient(j)) continue; - if (!PM_IsPlayerSteam(client) && PM_IsPlayerSteam(j)) + if (PM_IsPlayerSteam(j)) { //the nosteam client is not allowed to hear the steam client because broadcastvoicedata would ear rape them. //LogMessage("%N has muted %N", client, j); @@ -71,9 +71,9 @@ public Action check_mutes(Handle timer, any data) g_bWebclient[i] = true; g_bSkipInfection = GetConVarInt(FindConVar("zr_infect_mzombie_ratio")) > 10 ? true : false; } - if (g_bWebclient[i]) + if (!PM_IsPlayerSteam(i)) { - set_webclient_listen_override(i); + set_nosteam_listen_override(i); } for (int j = 1; j <= MaxClients; j++) {