lazy fix for invisible zm
This commit is contained in:
parent
c1da687fa8
commit
7d940c6509
@ -131,6 +131,20 @@ public Action UpdateHide(Handle timer)
|
||||
continue;
|
||||
}
|
||||
|
||||
//lazy fix for invisible zm
|
||||
if (TransmitManager_IsEntityHooked(client))
|
||||
{
|
||||
for (int target = 1; target <= MaxClients; target++)
|
||||
{
|
||||
if (IsValidClient(target) && client != target && g_bHidePlayers[client][target]
|
||||
&& IsPlayerAlive(target) && ZR_IsClientZombie(target) && TransmitManager_IsEntityHooked(target))
|
||||
{
|
||||
g_bHidePlayers[client][target] = false;
|
||||
TransmitManager_SetEntityState(target, client, true); //client can see player again because the player is a zm
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool ClientIsAlive = IsPlayerAlive(client);
|
||||
bool ClientIsHuman = false;
|
||||
if (ClientIsAlive)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user