Added actual functionality for the zr_infect_mzombie_respawn cvar.

This commit is contained in:
Greyscale
2009-05-15 08:14:14 +02:00
parent 6d09157719
commit 363be11591
2 changed files with 24 additions and 3 deletions

View File

@ -565,6 +565,16 @@ InfectClient(client, attacker = -1, bool:motherinfect = false)
// TODO: A solution to stop confusing bots? Respawn and teleport?
CS_SwitchTeam(client, CS_TEAM_T);
// If respawn is enabled, then teleport mother zombie back to spawnpoint.
if (motherinfect)
{
new bool:zombierespawn = GetConVarBool(g_hCvarsList[CVAR_INFECT_MZOMBIE_RESPAWN]);
if(zombierespawn)
{
ZTeleTeleportClient(client);
}
}
// Format infection message.
SetGlobalTransTarget(client);