Fall Damage on event_damage
I'm trying to cut out execution if fall damage happened to the client with the following code. But it never catches the fall damage. I've tried a number of ways including get_param(3) & DMG_FALL but nothing works. Am i making a mistake or does event_damage really not work like that?
PHP Code:
|
Re: Fall Damage on event_damage
return PLUGIN_HANDLED to block?
|
Re: Fall Damage on event_damage
More simple to hook Ham_TakeDamage, and checking DMG_FALL.
|
Re: Fall Damage on event_damage
Quote:
Quote:
|
Re: Fall Damage on event_damage
get_param(3) , you mean read_data(3) ...
|
Re: Fall Damage on event_damage
Ham : http://forums.alliedmods.net/showpos...00&postcount=2
W/O Ham : http://forums.alliedmods.net/showpos...52&postcount=5 Second way may be not reliable, have not tested enough. |
Re: Fall Damage on event_damage
Quote:
Quote:
But the second one isn't what i'm trying to do. I'm trying to NOT execute that function if it is fall damage. The weird thing to me is that checking is_user_alive(attackerID) isn't working. Is the ground really alive? What is this...Doctor Who? |
Re: Fall Damage on event_damage
I strongly recommend hooking Ham_TakeDamage
|
Re: Fall Damage on event_damage
Alright, thanks all.
Ham_TakeDamage works. But is there any ideas as to why using event_Damage doesn't work? |
| All times are GMT -4. The time now is 08:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.