ZombieManager: fix

instead of blocking motherzm infection, just in advance if eligible
This commit is contained in:
Dogan 2019-10-04 14:39:42 +02:00
parent 6d54359656
commit 90bb8e1619

View File

@ -71,7 +71,15 @@ public void ZR_OnClientHumanPost(int client, bool respawn, bool protect)
public Action ZR_OnClientInfect(int &client, int &attacker, bool &motherInfect, bool &respawnOverride, bool &respawn)
{
if(g_bTestRound || (GetClientIdleTime(client) > g_iAFKTime && motherInfect) || (motherInfect && IsFakeClient(client)))
if(g_bTestRound)
return Plugin_Handled;
return Plugin_Continue;
}
public Action ZR_OnClientMotherZombieEligible(int client)
{
if(GetClientIdleTime(client) > g_iAFKTime || IsFakeClient(client))
return Plugin_Handled;
return Plugin_Continue;