From 2e21de0c47752f16fae1b9c59ba5b40f2813336e Mon Sep 17 00:00:00 2001 From: jenz Date: Tue, 18 Aug 2026 13:55:39 +0200 Subject: [PATCH] potential self fixing mechanic in case a steam player would briefly be marked as nosteamer before the connect extension gets it right? --- CELT_VOICE/scripting/nosteam_celt_audio.sp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/CELT_VOICE/scripting/nosteam_celt_audio.sp b/CELT_VOICE/scripting/nosteam_celt_audio.sp index 9f96832..6fb0a63 100644 --- a/CELT_VOICE/scripting/nosteam_celt_audio.sp +++ b/CELT_VOICE/scripting/nosteam_celt_audio.sp @@ -71,6 +71,11 @@ public Action check_mutes(Handle timer, any data) { set_nosteam_listen_override(i); } + else + { + //maybe this is a fix? maybe not. + clear_steam_listen_override(i); + } for (int j = 1; j <= MaxClients; j++) { if (!IsValidClient(j) || i == j || IsFakeClient(j)) @@ -120,6 +125,19 @@ public Action check_mutes(Handle timer, any data) return Plugin_Continue; } +public void clear_steam_listen_override(int client) +{ + for (int j = 1; j <= MaxClients; j++) + { + if (!IsValidClient(j) || client == j || IsFakeClient(j)) + continue; + if (PM_IsPlayerSteam(j) && !BaseComm_IsClientMuted(j) && !SelfMute_IsIgnoring(client, j)) + { + SetListenOverride(client, j, Listen_Default); + } + } +} + //AI slop public void SendWebclientNameToSignaling(const char[] webclientName) { @@ -246,7 +264,7 @@ public Action Timer_SendVoiceInit(Handle timer, int Serial) { return Plugin_Handled; } - if (IsValidClient(client)) + if (IsValidClient(client) && !PM_IsPlayerSteam(client)) { SendCeltVoiceInit(client); }