lazy fix for invisible zm

This commit is contained in:
jenz 2026-01-26 23:26:21 +01:00
parent c1da687fa8
commit 7d940c6509

View File

@ -131,6 +131,20 @@ public Action UpdateHide(Handle timer)
continue; 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 ClientIsAlive = IsPlayerAlive(client);
bool ClientIsHuman = false; bool ClientIsHuman = false;
if (ClientIsAlive) if (ClientIsAlive)