Thread: TESS-One
View Single Post
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 12-18-2010 , 16:35   Re: TESS-One
Reply With Quote #18

If it is easily changed, how would I change it to block only the knife?

PHP Code:
public tess_TakeDamage(thisidinflictoridattackerFloat:damagedamagebits)
{
    if ( 
damagebits DMG_BULLET && g_HasTessOne[this] && g_IsImmune[this] && get_user_weapon(idattacker) != CSW_KNIFE ) {
        
SetHamParamFloat(40.0)
        return 
HAM_SUPERCEDE
    
}
    
    return 
HAM_IGNORED

Would removing the ! in != CSW_KNIFE ) be sufficient? It would make sense, but everything is so damn complicated so I doubt it is that simple.
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline