[Solved] Show Final Damage done
PHP Code:
ExecuteHamB will go through some hooks and because of this the damage shown in print_chat (floatround(damage)) is not showing the exact damage done. What should I do to correct the damage shown in chat? |
Re: [Help] Damage done
Code:
ExecuteHamBCode:
ExecuteHamExecuteHam -> Will not go through hooks |
Re: [Help] Damage done
Quote:
For now I just wanna 'correct' to printed damage |
Re: [Help] Damage done
damage in Ham_TakeDamage is total inflicted damage. If the player has armor then they will not receive this full damage amount.
If you are trying to get the victims loss in hp, you need to hook Ham_TakeDamage post and get pev( victim , pev_dmg_take ) PHP Code:
PHP Code:
|
Re: [Help] Damage done
Should i hook is_user_connected(iAttacker)?
|
Re: [Help] Damage done
Quote:
|
Re: [Help] Damage done
PHP Code:
but damage done isn't shown idk why |
Re: [Help] Show Final Damage done
My guess is the DMG_BLAST bit is not set. If you are trying to get grenade damage then use:
PHP Code:
|
Re: [Help] Show Final Damage done
Sorry it was my fault
I was testing it on bots and thats why the damage wasnt printed Problem Xolved |
| All times are GMT -4. The time now is 22:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.