forward ze_user_infected_pre(iVictim, iInfector, iDamage);
iVictim | Victim index, human who will catch the infection. |
iInfector | Infector index, zombie who will cause the infection. |
iDamage | The blocked damage value. |
Description: Called before user get infected by player.
To stop the infection event use: return ZE_STOP To let the infection continue use: return ZE_CONTINUE
This forward will not called on the zombie choose by the server, only called if player try to infect player. You can use pre to block the infection or to let it in specific conditions. Basically return > ZE_CONTINUE will stop the infection.
This documentation was automatically generated using pawn-docgen made by xPaw for AlliedMods.