View Single Post
  #6 (permalink)  
Old December 20th, 2006
santa_sh0t_tupac's Avatar
santa_sh0t_tupac santa_sh0t_tupac is offline
forum regular
 
Join Date: November 25th, 2006
Location: Alabama. Where beating your wife is fine and gambling is illegal because it says so in the Bible.
Status: No Status
Posts: 181
Default register_event

Shouldn't be too hard. Just hook the Damage event, check and change it there, yeah?
Quote:
Syntax:
register_event ( const event[], const function[], const flags[], [ cond=[], ... ] )

Code:
register_event("Damage", "on_Damage", "b", "2!0")

EDIT:

Ok..it depends on if the damage is applied immediately and you only get the ass end of the routine...or if the hook is put at the END of the damage routine..but before it's applied. If it applies before the event hooks it...then it might be doable with fakemeta forward FM_Think or FM_PlayerPostThink.

Last edited by santa_sh0t_tupac; December 20th, 2006 at 12:26 AM. Reason: I'm a retard sometimes.
Reply With Quote