Raised This Month: $ Target: $400
 0% 

How to intercept amount of damage?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 04-14-2006 , 04:31  
Reply With Quote #7

hmm.. events registered with register_message() are called just before they occur, so i dont see why modifying the damage doesnt work
although changing damagetype to something else works

the function does get called for me when i fall, except when dmg >= health (the player dies, so thats another wrong assumption by me)

also seems that the event cant even be blocked with PLUGIN_HANDLED, which is even more weird..
i just thought hooking it with register_message() would be as simple as any other message, guess i was wrong, sry
__________________
plop
p3tsin is offline
 



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 05:12.


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