Raised This Month: $ Target: $400
 0% 

SpawnProtect and MirrorDMG examples for new API?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ThantiK
Senior Member
Join Date: Mar 2004
Location: Orlando, FL
Old 09-14-2004 , 14:27   Re: why?
Reply With Quote #7

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
ThantiK is offline
Send a message via AIM to ThantiK Send a message via MSN to ThantiK
 



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:20.


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