Implemented infect immunity mode. Debug messages are still enabled, and some parts aren't updated yet (compiler warnings).

This commit is contained in:
Richard Helgeby
2013-01-05 02:44:46 +01:00
parent cd604c2f95
commit 31c727f0a5
6 changed files with 428 additions and 54 deletions

View File

@ -301,7 +301,8 @@ InfectOnClientDeath(client, attacker)
ToolsClientScore(attacker, true, true, score + bonus);
}
/** Client has been hurt.
/**
* Client has been hurt.
*
* @param client The client index.
* @param attacker The attacker index.
@ -339,6 +340,13 @@ InfectOnClientHurt(client, attacker, const String:weapon[])
return;
}
// Check if the immunity module is handling the infection.
if (ImmunityOnClientInfect(client, attacker))
{
PrintToChatAll("InfectOnClientHurt - Infect blocked.");
return;
}
// Infect client.
InfectHumanToZombie(client, attacker);
}