20.11.2014, 21:56
Checking the animation can cause false negatives too. Consider this:
A = killer
B = player getting knifed
if A knives B, and only B sees the throat slitting animation. on A's screen he's not knifing. B dies. In this case your include would fail where with OnPlayerGiveDamage it would get picked up.
I don't know if it's harder to spoof animation, though it's definitely less mainstream. Obviously you can do whatever you want, it's your include, and I hope I don't seem pushy to you to change your include.
A = killer
B = player getting knifed
if A knives B, and only B sees the throat slitting animation. on A's screen he's not knifing. B dies. In this case your include would fail where with OnPlayerGiveDamage it would get picked up.
I don't know if it's harder to spoof animation, though it's definitely less mainstream. Obviously you can do whatever you want, it's your include, and I hope I don't seem pushy to you to change your include.