View Single Post
fail
Junior Member
Join Date: Feb 2009
Old 04-21-2010 , 14:31   Re: SuperLogs: TF2 2.0.5 (updated 2010-3-20)
Reply With Quote #9

I posted this here http://forums.alliedmods.net/showthr...t=98684&page=9

Quote:
Originally Posted by fail View Post
any chance of making weaponstats work when tf_weapon_criticals is 0?
Quote:
Originally Posted by psychonic View Post
1) This is the correct thread for SuperLogs TF2 now http://forums.alliedmods.net/showthread.php?p=1123825
2) No, not unless you'd like to find another function that gets called on every shot from every weapon and would like to write an extension to detour it.
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?
fail is offline