General: Apply ZSpawn logic on late spawners.

Improvement on `a45be16399`
This commit is contained in:
2018-08-28 14:54:42 +02:00
parent 9f157e14e9
commit c32cda3fc9
2 changed files with 121 additions and 36 deletions

View File

@ -278,14 +278,10 @@ InfectOnClientSpawn(client)
// Disable zombie flag on client.
g_bZombie[client] = false;
// Check if client is spawning on the terrorist team.
if (ZRIsClientOnTeam(client, CS_TEAM_T) && InfectHasZombieSpawned())
{
CS_SwitchTeam(client, CS_TEAM_CT);
CS_RespawnPlayer(client);
}
InfectUnglitchKevlar(client);
// Forward event to modules.
ZSpawnOnClientSpawn(client);
}
/**