just making sure all nosteamers always have steam players muted and not only the webclient
This commit is contained in:
parent
8ca6ecae97
commit
f6536fd3c5
@ -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++)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user