Quote:
|
Originally Posted by Colt
Code:
public damage_info(attacker,victim,damage,wpnindex,hitplace,TA){
if (is_user_alive(victim) && TA) {
new hp = get_user_health( victim )
set_user_health( victim,hp + damage )
}
if ( is_user_alive(attacker) ){
new hp = get_user_health( attacker )
set_user_health( attacker,hp - damage )
}
}
|
See, this bit of code is my problem. Because AWP headshots, etc tend to get past the script and people die and the damage handle starts acting really funny.
So basically the SDK hasn't provided a way to hook damage events, and the current way you guys are even handling these things are through your special programming magic...understandable. I was hoping that I could block the event from happening or handle it myself so I could get past this small flaw.
__________________
AMXX -- You want control? You got it.
tkwired.com cs 1.6 -- tkwired.com:27016