Removed all non-forwarding code from events.inc and moved to appropriate modules.
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user