Raised This Month: $ Target: $400
 0% 

Mirror Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-19-2010 , 16:17   Re: Mirror Damage
Reply With Quote #1

return HAM_SUPERCEDE will block all damage in Ham_TakeDamage.

When exactly and under what circumstances do you want to restore armor?

unnyquee, you need to return HAM_HANDLED for that to work. Also, damage passed to take_damage is total damage without factoring armor. Hooking take_damage post and using pev_dmg_take will return the actual reduction in victim hp.
__________________
Bugsy is offline
tm.
Member
Join Date: Apr 2010
Old 05-19-2010 , 16:33   Re: Mirror Damage
Reply With Quote #2

Quote:
Originally Posted by Bugsy View Post
When exactly and under what circumstances do you want to restore armor?
Same as HP, if the player is attacked by a teammate, but I guess with return HAM_SUPERCEDE in Ham_TakeDamage the player will not lose any armor?

LE: Yeap, it works, that's what I need. Thank you.

Last edited by tm.; 05-19-2010 at 16:51.
tm. is offline
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 03:54.


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