Quote:
Originally Posted by fail
I posted this here http://forums.alliedmods.net/showthr...t=98684&page=9
I looked at the code, and it looked like it was just checking to see if cvar tf_weapon_criticals is set to true, or 1. I just changed line 233 from
cvar_crits = FindConVar("tf_weapon_criticals");
to
cvar_crits = FindConVar("tf_damage_disablespread");
and it is dumping the weaponstats (logging damage )
Hope this helps someone else... maybe change it to some obscure cvar thats always true? Or just remove it?
|
Thank you for assuming that I don't know what I'm talking about.
The weaponstats are disabled for a reason when tf_weapon_criticals is disabled. This is because the TF2_CalcIsAttackCritical forward will never be called (because crits are disabled) and thus, no shots will be tracked. That alone isn't a huge issue except that hits will continue to be tracked. If you aggregate data, you will get things like 0 shots, 4,348 hits with (however-you-handle-dividing-by-zero accuracy).