General: Move some code around.
Move the 'human' code back to its original location, and call the infection function instead when they should be infected, instead of doing it forcefully. That caused issues whenever there was a situation of a warmup round ect. blocking infections.
This commit is contained in:
@ -278,6 +278,13 @@ InfectOnClientSpawn(client)
|
||||
// Disable zombie flag on client.
|
||||
g_bZombie[client] = false;
|
||||
|
||||
// Check if client is spawning on the terrorists team.
|
||||
if (ZRIsClientOnTeam(client, CS_TEAM_T) && InfectHasZombieSpawned())
|
||||
{
|
||||
CS_SwitchTeam(client, CS_TEAM_CT);
|
||||
CS_RespawnPlayer(client);
|
||||
}
|
||||
|
||||
InfectUnglitchKevlar(client);
|
||||
|
||||
// Forward event to modules.
|
||||
|
Reference in New Issue
Block a user