Added actual functionality for the zr_infect_mzombie_respawn cvar.
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user