Remaining Health on Damage
I am having trouble storing damage by attacker.
If the victim has 30 health and 120 damage is done to the victim, 120 damage is stored. I would like it to only save the remaining health as damage (30). PHP Code:
|
Re: Remaining Health on Damage
Code:
|
Re: Remaining Health on Damage
Thank you for this. It is working.
It does not include HE grenade damage. How can I include it? |
Re: Remaining Health on Damage
Quote:
|
Re: Remaining Health on Damage
Quote:
PHP Code:
|
Re: Remaining Health on Damage
You could directly work in Post TakeDamage and only check pev(victim, pev_dmg_take) and take it as an integer.
This should be ok : PHP Code:
Anyway, i think csx module already provides some natives that could give you exactly what you want. |
| All times are GMT -4. The time now is 11:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.