Raised This Month: $ Target: $400
 0% 

get percent of hit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EclipseCP
BANNED
Join Date: Dec 2010
Old 06-18-2011 , 02:23   get percent of hit
Reply With Quote #1

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
EclipseCP is offline
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 06-18-2011 , 02:43   Re: get percent of hit
Reply With Quote #2

I don't understand anything, try to explain again.
DjOptimuS is offline
EclipseCP
BANNED
Join Date: Dec 2010
Old 06-18-2011 , 04:37   Re: get percent of hit
Reply With Quote #3

Quote:
Originally Posted by DjOptimuS View Post
I don't understand anything, try to explain again.
sorry

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%
EclipseCP is offline
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 06-18-2011 , 04:39   Re: get percent of hit
Reply With Quote #4

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.
DjOptimuS is offline
EclipseCP
BANNED
Join Date: Dec 2010
Old 06-18-2011 , 04:45   Re: get percent of hit
Reply With Quote #5

Quote:
Originally Posted by DjOptimuS View Post
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.
Actually, I'm doing this for the Zombie Plague.

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
EclipseCP is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 06-18-2011 , 05:41   Re: get percent of hit
Reply With Quote #6

( dmg * 100 ) / totalhealth.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode