Raised This Month: $ Target: $400
 0% 

HAM_OVERRIDE usage in Ham_TakeDamage event to change value


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 03-04-2009 , 16:20   HAM_OVERRIDE usage in Ham_TakeDamage event to change value
Reply With Quote #1

i heard HAM_OVERRIDE make call still be executed, but instead will change the return value. so i want to change value in ham_takedamage with HAM_OVERRIDE cuz there's a bug on my server so sometimes knife right attack can hit player in non-body-part and deal 195dmg (mb a generic hitzone or something like that), so i want make a check if dmg is 195 and weapon made this dmg is a knife and change 195 to 65 and let other plugins or this plugin extension take care of changed dmg, but i saw almost no HAM_OVERRIDE usage in plugins so i'm asking how to.
Owyn is offline
Send a message via ICQ to Owyn
 



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 17:07.


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