SelfMute: Don't ignore fake clients (source tv / torchlight)
This commit is contained in:
parent
346cd19635
commit
0403c64819
@ -147,7 +147,7 @@ public void OnClientDisconnect(int client)
|
||||
SetIgnored(i, client, false);
|
||||
SetExempt(i, client, false);
|
||||
|
||||
if(IsClientInGame(i) && !IsFakeClient(i) && i != client)
|
||||
if(IsClientInGame(i) && i != client)
|
||||
SetListenOverride(i, client, Listen_Yes);
|
||||
}
|
||||
|
||||
@ -158,7 +158,7 @@ public void Event_Round(Handle event, const char[] name, bool dontBroadcast)
|
||||
{
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if(IsClientInGame(i) && !IsFakeClient(i))
|
||||
if(IsClientInGame(i))
|
||||
UpdateSpecialMutesThisClient(i);
|
||||
}
|
||||
}
|
||||
@ -190,7 +190,7 @@ void UpdateSpecialMutesOtherClients(int client)
|
||||
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if(i == client || !IsClientInGame(i) || IsFakeClient(i))
|
||||
if(i == client || !IsClientInGame(i))
|
||||
continue;
|
||||
|
||||
int Flags = MUTE_NONE;
|
||||
@ -233,7 +233,7 @@ void UpdateSpecialMutesThisClient(int client)
|
||||
{
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if(i == client || !IsClientInGame(i) || IsFakeClient(i))
|
||||
if(i == client || !IsClientInGame(i))
|
||||
continue;
|
||||
|
||||
bool Alive = IsPlayerAlive(i);
|
||||
@ -394,7 +394,7 @@ bool UnMuteSpecial(int client, char[] Argument)
|
||||
{
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if(IsClientInGame(i) && !IsFakeClient(i))
|
||||
if(IsClientInGame(i))
|
||||
UnIgnore(client, i);
|
||||
|
||||
PrintToChat(client, "\x04[Self-Mute]\x01 You have self-unmuted:\x04 all players");
|
||||
@ -681,7 +681,7 @@ void DisplayMuteMenu(int client)
|
||||
int CurrentlyTalking = 0;
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if(i != client && IsClientInGame(i) && !IsFakeClient(i) && _IsClientSpeaking(i))
|
||||
if(i != client && IsClientInGame(i) && _IsClientSpeaking(i))
|
||||
aClients[CurrentlyTalking++] = i;
|
||||
}
|
||||
|
||||
@ -724,7 +724,7 @@ void DisplayMuteMenu(int client)
|
||||
int Players = 0;
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if(i != client && IsClientInGame(i) && !IsFakeClient(i))
|
||||
if(i != client && IsClientInGame(i))
|
||||
aClients[Players++] = i;
|
||||
}
|
||||
|
||||
@ -938,7 +938,7 @@ void DisplayUnMuteMenu(int client)
|
||||
int Players = 0;
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if(i != client && IsClientInGame(i) && !IsFakeClient(i) && (GetIgnored(client, i) || GetExempt(client, i)))
|
||||
if(i != client && IsClientInGame(i) && (GetIgnored(client, i) || GetExempt(client, i)))
|
||||
aClients[Players++] = i;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user