Raised This Month: $ Target: $400
 0% 

Required Code for Ham_TakeDamage to get proper Damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
souvikdas95
Senior Member
Join Date: Mar 2012
Old 07-23-2014 , 14:25   Required Code for Ham_TakeDamage to get proper Damage
Reply With Quote #1

Just like in Damage event, I want to use Ham_TakeDamage to get the damage done to the victim. However I have some problem with getting the correct damage. It's something related to offsets as it has been described here : https://forums.alliedmods.net/showpo...8&postcount=71

However, as a function, it's not giving the correct damage. I want to use it instead of Damage event as it's a little quicker than that. As Tested, it's 0.00845 seconds or 8ms faster which is quite a big difference.

So, please if any one could make the function similar to the Damage event function, It would be really grateful
souvikdas95 is offline
 


Thread Tools
Display Modes

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 13:03.


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