Removed all non-forwarding code from events.inc and moved to appropriate modules.

This commit is contained in:
Greyscale
2009-05-20 19:15:55 -07:00
parent 6e464880f4
commit a1aebe5ca5
3 changed files with 24 additions and 25 deletions

View File

@ -213,6 +213,16 @@ InfectOnClientSpawn(client)
{
// Disable zombie flag on client.
bZombie[client] = false;
// Check if client is spawning on the terrorist team.
if (ZRIsClientOnTeam(client, CS_TEAM_T))
{
if (g_bZombieSpawned)
{
CS_SwitchTeam(client, CS_TEAM_CT);
CS_RespawnPlayer(client);
}
}
}
/** Client has been hurt.