reactivedrop_public_src icon indicating copy to clipboard operation
reactivedrop_public_src copied to clipboard

The HUD "Damage Numbers" will not show a fixed number if we change the damage by Vscript function "OnTakeDamage_Alive_Any".

Open IAFCrash opened this issue 1 year ago • 0 comments

The HUD "Damage Numbers" will not show a fixed number if we change the damage by Vscript function "OnTakeDamage_Alive_Any". For example:

function OnTakeDamage_Alive_Any( hVictim, hInflictor, hAttacker, hWeapon, flDamage, nDamageType, szAmmoName ){
    // return 1.0
    // return 100.0
    // ...
    return 500.0;
}

We define a "OnTakeDamage_Alive_Any" function and set any damage to 500. Then we use a Assult Rifle to hit a bug, as a result the hud show a damage of 5, but actually the bug takes 500 damage. image

IAFCrash avatar Jun 11 '24 17:06 IAFCrash