Quote:
Originally Posted by avril-lavigne
I know there are alot of no fall damage plugin. but I want just play sound on landing
not just usual landing after jump . but after falling down
I know how to get fall event
PHP Code:
#define FALL_VELOCITY 350
if(entity_get_float(id, EV_FL_flFallVelocity) >= FALL_VELOCITY) {
but what shoud I register .. event damage. or what.
|
Ham_TakeDamge
check the last parameter iDamageBits & DMG_FALL
to eliminate falldamage
PHP Code:
public fwdPlayerHurt(iVictim, iInflictor, iAttacker, Float:flDamage, iDamageBits)
{
if(iDamageBits & DMG_FALL)
{
return HAM_SUPERCEDE;
}
}