Renamed zr_consecutive_infect (fixed value mixup in the code), and fixed damage flags.

This commit is contained in:
Greyscale
2009-04-21 01:45:49 +02:00
parent 7111a8c594
commit 1ec47ef154
3 changed files with 81 additions and 84 deletions

View File

@ -288,10 +288,10 @@ InfectPlayer(client, attacker = -1, bool:motherinfect = false)
// Check if consecutive infection protection is enabled.
new bool:consecutive_infect = GetConVarBool(g_hCvarsList[CVAR_CONSECUTIVE_INFECT]);
new bool:infectconsecutiveblock = GetConVarBool(g_hCvarsList[CVAR_INFECT_CONSECUTIVE_BLOCK]);
// Flag player to be immune from being mother zombie twice, if consecutive infect protection is enabled.
bMotherInfectImmune[client] = consecutive_infect ? motherinfect : false;
bMotherInfectImmune[client] = infectconsecutiveblock ? motherinfect : false;
// Forward event to modules.
ClassOnClientInfected(client, motherinfect);