Imune from hs
How to do that every time player gets a shot into head there would be 50% chance to avoid that shot's damage?
PHP Code:
|
Re: Imune from hs
Anybody?
|
Re: Imune from hs
how do you hook the function?
also... Code:
&& get_tr2( tr, TR_iHitgroup ) == HIT_HEAD && get_tr2( tr, TR_iHitgroup ) == HIT_HEAD )Check out this plugin. Its a good example of how to catch headshots http://forums.alliedmods.net/showthr...light=headshot |
Re: Imune from hs
I dont know why there is that part, i even wasnt sure what it was for untill you show me HS Modes plugin.
Now i think i get it :) So would this code work? It should give 50% chance to entiraly block damage if you get HS. PHP Code:
|
Code is hard to read but.... Random(1); gets numbers 0-1 and if == 1 is a 50% chance also.....
|
| All times are GMT -4. The time now is 05:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.