oh.

sorry
PHP Code:
(flDamage < 30) ? SetHamParamFloat(4, flDamage*2) : return HAM_HANDLED
i figure a stab is gonna be around 55 or greater at all times. so being less than 30 would give it a pretty good threshold if anything messes with it.
Quote:
Originally Posted by Exolent[jNr]
There is a plugin that measures slash and stab distances separately.
You should take a look at that code and see if it helps you.
I think it's Knife Distance by SchlumPF.
|
What i have to say about that is you can slash within the same distance as a stab (and quite frequently do)
Or you can check to see if the weapon is under primary, or secondary operations (left or right click) but i don't know that at the top off my head. Or at all....
__________________