reactivedrop_public_src
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".
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.