Implemented infect immunity mode. Debug messages are still enabled, and some parts aren't updated yet (compiler warnings).
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user