When fall damage occurs, attacker is worldspawn so the code is stopping here, since worldspawn is not connected.
if (!is_valid_ent(victim) || !g_isAlive[victim] ||
!is_user_connected(attacker))
return HAM_IGNORED
Try this:
PHP Code:
public ham_TakeDamage( victim , inflictor , attacker , Float:damage , damagebits )
{
if ( damagebits & DMG_FALL )
{
return HAM_SUPERCEDE;
}
if ( !pev_valid( victim ) || !is_user_alive( victim ) || !is_user_connected( attacker ) )
return HAM_IGNORED
if ( g_boolCanBuild || g_boolRoundEnded || g_boolPrepTime || ( victim == attacker ) )
return HAM_SUPERCEDE;
if ( g_iSupercut )
{
SetHamParamFloat( 4 , damage * 99.0 );
return HAM_HANDLED;
}
return HAM_IGNORED;
}
__________________