cathook icon indicating copy to clipboard operation
cathook copied to clipboard

[TF2] Sv_Cheats resets after joining server

Open mxez opened this issue 3 years ago • 4 comments

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:

  1. Init hook on function where you are getting cvars from server
  2. Change values of cvars that you got from server if they have set from "cat_set"
  3. Return original

mxez avatar Jul 01 '21 15:07 mxez

And no, using cat_set sv_cheats 1 cat_set mat_picmip 4 won't work because your game instance will simply crash.

mxez avatar Jul 01 '21 15:07 mxez

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

BenCat07 avatar Jul 01 '21 18:07 BenCat07

Still not fixed?

mxez avatar Jul 31 '21 23:07 mxez

no, i've been busy working on other more important stuff

BenCat07 avatar Jul 31 '21 23:07 BenCat07