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-13-2006 , 19:07  
Reply With Quote #4

if u dont want to add health back later on (coz the player could die before that ), u can directly modify the damage:

Code:
register_message(get_user_msgid("Damage"), "hook_damage") .. public hook_damage(msg_id, msg_dest, entity) {     new dmg = get_msg_arg_int(2)     new type = get_msg_argtype(2)     set_msg_arg_int(2,type, dmg/3)     return PLUGIN_CONTINUE }

that should reduce the damage made to third of the original
__________________
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