potential self fixing mechanic in case a steam player would briefly be marked as nosteamer before the connect extension gets it right?

This commit is contained in:
jenz 2026-08-18 13:55:39 +02:00
parent 80642cb0f0
commit 2e21de0c47

View File

@ -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);
}