Added actual functionality for the zr_infect_mzombie_respawn cvar.
This commit is contained in:
1 parent
6d09157719
commit
363be11591
2 files changed
+24
-3
No files matched your search
@@ -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