Skip to content

Commit

Permalink
Fix exploit with zombie bypass & AFK manager
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo committed Jul 13, 2019
1 parent d140d69 commit fc657b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions addons/sourcemod/scripting/superzombiefortress.sp
Original file line number Diff line number Diff line change
Expand Up @@ -1983,6 +1983,9 @@ public Action event_PlayerDeath(Event event, const char[] name, bool dontBroadca
g_flRageRespawnStress += 1.7; //Add stress time 1.7 sec for every respawn zombies
CreateTimer(flTimer, RespawnPlayer, victim);
}

//Check for spec bypass from AFK manager
RequestFrame(Frame_CheckZombieBypass, victim);
}

// Instant respawn outside of the actual gameplay
Expand Down Expand Up @@ -3668,6 +3671,12 @@ void SetGlow()
}
}

public void Frame_CheckZombieBypass(int iClient)
{
if (GetClientTeam(iClient) <= 1)
CheckZombieBypass(iClient);
}

void CheckZombieBypass(int iClient)
{
int iSurvivors = GetSurvivorCount();
Expand Down

0 comments on commit fc657b4

Please sign in to comment.