get percent of hit
hello.
I get the percentage of damage you take (so the hit) The percentage would be over 100%, but can not find a formula as get hit damage Greetings :D |
Re: get percent of hit
I don't understand anything, try to explain again.
|
Re: get percent of hit
Quote:
What i do is that by attacking a player, get a hud that shows the percentage of hit taken For example, someone would remove 46 of life, I know as i pulled percentage this percentage may exceed 100% |
Re: get percent of hit
of course it can exceed 100%, when you hit someone in the head with AWP you will get something over 440%. What do you need ? Be more specific.
|
Re: get percent of hit
Quote:
When the zombies hit humans (knife), I need to know the formula for the percentage of damage taken, with float (%2.1f) and how to get What happens, is like getting hit damage? I hope I have expressed it, Greetings |
Re: get percent of hit
( dmg * 100 ) / totalhealth.
|
| All times are GMT -4. The time now is 23:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.