Quote:
Originally Posted by kostov
Code:
SetHamParamFloat(4, get_user_weapon(attacker) == CSW_KNIFE ? get_pcvar_float(CvarFloat) : damage)
|
I dont know too much about sethamparamfloat, but im reading this as, if its a headshot with csw_knife, hit him for 50 damage, else, just do the normal damage, so...
Code:
SetHamParamFloat(4, get_user_weapon(attacker) == CSW_KNIFE ? (damage + get_pcvar_float(CvarFloat)) : damage
that should fix it, but I dont know to be honest
__________________