Raised This Month: $ Target: $400
 0% 

help with reduce damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-27-2005 , 17:42  
Reply With Quote #9

Quote:
Originally Posted by BioHazardousWaste
well that code is called BEFORE they get shot!!
No, the Damage Event is called after the damage is inflicted, unfortunately..
So Avalanche was right in his post, but he knew that..

Quote:
Originally Posted by BioHazardousWaste
look through the code, damage is set in this line:

new Attacker = get_user_attacker(id,Weapon,HitZone)

It sets Damage to the amount of HP the shot is about to take off.
No, that line will return the ID of the Attacking Player, and will also store values in the Weapon variable indicating the Weapon ID that was used by the Attacker, and the HitZone variable will have the HitZone ID of where the Victim was hit during the attack..

Maybe you just posted the wrong line of code you were talking about?

Anyway, I hope that lil' bit helps..
xeroblood is offline
Send a message via MSN to xeroblood
 



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 16:42.


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