fall damage function
I need to take some action when player falls down and take fall damage. for player-to-player damage there is client_damage function. which is for fall case?
|
Re: fall damage function
client_damage does not hook fall damage? I'm surprised to hear that..have you tried?
Anyway, another method would be to use hamsandwich.. RegisterHam(Ham_TakeDamage, "player", "hurt_hook") goes in plugin_init then make a function below.. public hurt_hook(id, idinflictor, idattacker, Float:damage, damagebits) idinflictor would be 0 for ground (that bastard named world always hurtin us) |
Re: fall damage function
i didnt understand a word from your post, and didnt find such a fuction in docs, but i wrote this plugin tracking Health messages and comparing get_user_attacker with victim's index
|
Re: fall damage function
Quote:
|
| All times are GMT -4. The time now is 11:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.