Slow Down Damage with Ham_TakeDamage
I'm trying to slow down damage players would get when they in toxic water to 20 secs or so before they die. This is what I could come up but it completely block the damage lol.
Code:
|
Re: Slow Down Damage with Ham_TakeDamage
Not sure :)
if (damage_type & DMG_RADIATION) { return HAM_SUPERCEDE } return HAM_IGNORED |
Re: Slow Down Damage with Ham_TakeDamage
Afaik both codes have the same effect, they completely block radiation damage, instead of slowing down the damage. I looked at source in other scripts, some of them are using SetHamParamFloat to set custom damage amount but im not sure about right usage of it
|
Re: Slow Down Damage with Ham_TakeDamage
Maybe try to block toxic damage and do new one? With ExecuteHamB(Ham_TakeDamage, victim ,inflictor, attacker, damage_type), search about that , don't remember this function now :}
|
Re: Slow Down Damage with Ham_TakeDamage
You edited your post :0 okey now I understand and I know how to do it ;) When I'll back home will give you a code
|
Re: Slow Down Damage with Ham_TakeDamage
PHP Code:
|
Re: Slow Down Damage with Ham_TakeDamage
I guess that should do it, thanks Snow. By the way, what's the diff return HAM_HANDLED vs HAM_SUPERCEDE?
|
Re: Slow Down Damage with Ham_TakeDamage
Quote:
Quote:
|
Re: Slow Down Damage with Ham_TakeDamage
Those values are harcoded :
Code:
#define RADIATION_DURATION 2 |
| All times are GMT -4. The time now is 01:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.