Quote:
Originally Posted by CoolJosh3k
Is the result not the same? What does TF2_CalcIsAttackCritical do differently?
|
For one, it's a dedicated way of managing crits.
For two, mixing the two methods will result in one of them not working as the other will override it.
Anyway, SM 1.7 has come out since this thread started. SM 1.7 has a new hook type in SDKHooks: SDKHook_OnTakeDamageAlive (and SDKHook_OnTakeDamageAlivePost).
While this is likely too late to change the damagetype from being a crit/mini-crit (crit/mini-crit damage calculations have already happened), it will give you the real damage the player is about to take / has taken. Of course, since this is a pre hook, you can adjust the damage taken here.
__________________