cathook
cathook copied to clipboard
[TF2] Sv_Cheats resets after joining server
System Information
OS: Arch linux
DE: XFCE
Cathook Version: newest
Config used
Doesn't matter
Logs / Crash Report
Doesn't matter
Description
When you are setting sv_cheats 1 through command cat_set sv_cheats 1
and when you connect to some server (not localhost), it changes to 0 after getting cvars from server, and after that "mat_picmip" changes back from 4 to 2.
Steps to reproduce
Hook the function where your getting cvars from server and replace values of server's cvars so game will think that server's sv_cheats is set to 1 instead of 0
Steps to reproduce the behavior:
- Init hook on function where you are getting cvars from server
- Change values of cvars that you got from server if they have set from "cat_set"
- Return original
And no, using cat_set sv_cheats 1 cat_set mat_picmip 4 won't work because your game instance will simply crash.
if sv_cheats is on, no nees to cat_set mat_picmip, set it normally
and yes server syncronization still happens, could just cancel the net message that changes our sv_cheats
Still not fixed?
no, i've been busy working on other more important stuff