This will make the damage amt a player takes always 100. However, if the user has armor then this will not be the amount of health the player actually loses since armor absorbs some of the damage.
PHP Code:
public plugin_init()
{
RegisterHam( Ham_TakeDamage , "player" , "fw_HamTakeDamage" );
}
public fw_HamTakeDamage( idVictim , iInflictor , idAttacker , Float:fDamage , DamageBits )
{
//The 4th parameter of this forward is fDamage, the below will alter this value.
//Example: A player can be shot in the foot with a glock or can be shot in the head with an awp
//and the damage taken will always be 100.
SetHamParamFloat( 4 , 100.0 );
return HAM_HANDLED;
}
__________________