sapphonie / StAC-tf2

steph's anticheat (StAC). a built-from-scratch sourcemod based solution to cheating in Team Fortress 2.
https://sappho.io
GNU General Public License v3.0
118 stars 21 forks source link

stac.cfg keeps changing back to stac_optimize_cvars back to 1 #149

Open higps opened 1 year ago

higps commented 1 year ago

This setting is driving me crazy. I set this to stac_optimize_cvars to 0 in 3 different configs, yet sometimes it just keeps adding itself at the bottom of stac.cfg.

Is this intentional? After this setting was added I've had so much issues trying to override the setting of "net_chan_limit_msec 0" which I am setting separately in multiple configs, yet stac keeps overriding it over and over and over.

sapphonie commented 1 year ago

What do you mean by "it adds it to the bottom of the cfg"? Are you removing the whole thing?

higps commented 1 year ago

Attached is the stac.cfg file we use, we have left this untouched.

You can see it's created the stac_optimize_cvars 3 times in the same file, setting it to 1 at the bottom. We've even tried to delete the file, make it create it, then change the cvar, then some time passes and it adds it back in. We leave the file unchanged

// This file was auto-generated by AutoExecConfig v0.1.5 (https://forums.alliedmods.net/showthread.php?t=204254) // ConVars for plugin "stac.smx"

// [StAC] enable/disable plugin (setting this to 0 immediately unloads stac) // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" stac_enabled "1"

// [StAC] enable/disable showing verbose info about players' cvars and other similar info in admin console // (recommended 0 unless you want spam in console) // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" stac_verbose_info "0"

// [StAC] ban duration that StAC will use upon banning cheating clients. 0 = permanent. // - // Default: "0" // Minimum: "0.000000" stac_ban_duration "0"

// [StAC] maximum allowed time in seconds before client is autokicked for using turn binds (+right/+left inputs). -1 to disable autokicking, 0 instakicks // (recommended -1.0 unless you're using this in a competitive setting) // - // Default: "-1.000000" // Minimum: "-1.000000" stac_max_allowed_turn_secs "-1.000000"

// [StAC] ban clients for non angle based cheats, aka cheat locked cvars, netprops, invalid names, invalid chat characters, etc. // (defaults to 1) // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" stac_ban_for_misccheats "1"

// [StAC] optimize cvars related to patching backtracking, mostly patching doubletap, limiting fakelag, patching any possible tele expoits, etc. // (defaults to 1) // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" stac_optimize_cvars "0"

// [StAC] maximum aimsnap detections before banning a client. // -1 to disable even checking angles (saves cpu), 0 to print to admins/stv but never ban // (recommended 25 or higher) // - // Default: "20" // Minimum: "-1.000000" stac_max_aimsnap_detections "20"

// [StAC] maximum silent aim/norecoil detections before banning a client. // -1 to disable even checking angles (saves cpu), 0 to print to admins/stv but never ban // (recommended 15 or higher) // - // Default: "10" // Minimum: "-1.000000" stac_max_psilent_detections "10"

// [StAC] maximum consecutive bhop detections on a client before they get "antibhopped". client will get banned on this value + 2, so for default cvar settings, client will get banned on 12 tick perfect bhops. // ctrl + f for "antibhop" in stac.sp for more detailed info. // -1 to disable even checking bhops (saves cpu), 0 to print to admins/stv but never ban // (recommended 10 or higher) // - // Default: "10" // Minimum: "-1.000000" stac_max_bhop_detections "10"

// [StAC] maximum fake angle / wrong / OOB angle detections before banning a client. // -1 to disable even checking angles (saves cpu), 0 to print to admins/stv but never ban // (recommended 10) // - // Default: "10" // Minimum: "-1.000000" stac_max_fakeang_detections "10"

// [StAC] maximum cmdnum spikes a client can have before getting banned. lmaobox does this with nospread on certain weapons, other cheats utilize it for other stuff, like sequence breaking on nullcore etc. legit users should never ever trigger this! // (recommended 25) // - // Default: "20" // Minimum: "-1.000000" stac_max_cmdnum_detections "20"

// [StAC] maximum triggerbot detections before banning a client. This can, has, and will pick up clients using macro software as well as run of the mill cheaters. This check also DOES NOT RUN if the wait command is enabled on your server, as wait allows in-game macroing, making this a nonsensical check in that case. // (defaults 0 - aka, it never bans, only logs. recommended 20+ if you are comfortable permabanning macroing users) // - // Default: "0" // Minimum: "-1.000000" stac_max_tbot_detections "0"

// [StAC] minimum interp (lerp) in milliseconds that a client is allowed to have before getting autokicked. set this to -1 to disable having a min interp // (recommended disabled, but if you want to enable it, feel free. interp values below 15.1515151 ms don't seem to have any noticable effects on anything meaningful) // - // Default: "-1" // Minimum: "-1.000000" stac_min_interp_ms "-1"

// [StAC] maximum interp (lerp) in milliseconds that a client is allowed to have before getting autokicked. set this to -1 to disable having a max interp // (recommended 101) // - // Default: "101" // Minimum: "-1.000000" stac_max_interp_ms "101"

// [StAC] check AT LEAST this often in seconds for clients with violating cvar values/netprops // (recommended 60) // - // Default: "60.000000" // Minimum: "5.000000" stac_min_randomcheck_secs "60.000000"

// [StAC] check AT MOST this often in seconds for clients with violating cvar values/netprops // (recommended 300) // - // Default: "300.000000" // Minimum: "15.000000" stac_max_randomcheck_secs "300.000000"

// [StAC] enable/disable putting the currently recording demo in the SourceBans / gbans ban reason // (recommended 1) // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" stac_include_demoname_in_banreason "1"

// [StAC] enable/disable logging to file // (recommended 1) // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" stac_log_to_file "1"

// enable fixing pingmasking? This also allows StAC to ban cheating clients attempting to pingreduce. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" stac_fixpingmasking_enabled "1"

// [StAC] maximum number of times a client can spam userinfo updates (over the course of 10 seconds) before getting banned. // (recommended 10+) // - // Default: "25" // Minimum: "-1.000000" stac_max_userinfo_spam_detections "25"

// [StAC] Forcibly reconnect clients unauthorized with steam - this protects against cheat clients not setting steamids, at the cost of making your server inaccessible when Steam is down. // (recommended 1) // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" stac_kick_unauthed_clients "1"

// [StAC] If this cvar is 0 (default), StAC will print detections to admins with sm_ban access and to SourceTV, if extant. If this cvar is 1, it will print only to SourceTV. If this cvar is 2, StAC never print anything in chat to anyone, ever. If this cvar is -1, StAC will print ALL detections to ALL players. // (recommended 0) // - // Default: "0" // Minimum: "-1.000000" // Maximum: "2.000000" stac_silent "0"

// [StAC] enable/disable showing verbose info about players' cvars and other similar info in admin console // (recommended 0 unless you want spam in console) // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" stac_verbose_info "0"

// [StAC] check AT MOST this often in seconds for clients with violating cvar values/netprops // (recommended 300) // - // Default: "300.000000" // Minimum: "15.000000" stac_max_randomcheck_secs "300.000000"

// [StAC] maximum allowed time in seconds before client is autokicked for using turn binds (+right/+left inputs). -1 to disable autokicking, 0 instakicks // (recommended -1.0 unless you're using this in a competitive setting) // - // Default: "-1.000000" // Minimum: "-1.000000" stac_max_allowed_turn_secs "-1.000000"

// [StAC] maximum interp (lerp) in milliseconds that a client is allowed to have before getting autokicked. set this to -1 to disable having a max interp // (recommended 101) // - // Default: "101" // Minimum: "-1.000000" stac_max_interp_ms "101"

// [StAC] max connections allowed from the same IP address. useful for autokicking bots, though StAC should do that with cvar checks anyway. // (recommended 0, you should really only enable this if you're getting swarmed by bots, and StAC isn't doing much against them, in which case, consider opening a bug report!) // - // Default: "0" // Minimum: "0.000000" stac_max_connections_from_ip "0"

// [StAC] allow StAC to work when sv_cheats is 1. WARNING; you might get false positives, and I will not provide support for servers running this cvar! // (recommended 0) // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" stac_work_with_sv_cheats "0"

// [StAC] maximum number of times a client can spam userinfo updates (over the course of 10 seconds) before getting banned. // (recommended 10+) // - // Default: "25" // Minimum: "-1.000000" stac_max_userinfo_spam_detections "25"

// [StAC] optimize cvars related to patching "server laggers", patching backtracking, mostly patching doubletap, limiting fakelag, patching any possible tele expoits, etc. // (recommended 1) // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" stac_optimize_cvars "0"

// [StAC] minimum interp (lerp) in milliseconds that a client is allowed to have before getting autokicked. set this to -1 to disable having a min interp // (recommended -1.0, but if you want to enable it, feel free. interp values below 15.1515151 ms don't seem to have any noticable effects on anything meaningful) // - // Default: "-1" // Minimum: "-1.000000" stac_min_interp_ms "-1"

// [StAC] check AT LEAST this often in seconds for clients with violating cvar values/netprops // (recommended 60) // - // Default: "60.000000" // Minimum: "5.000000" stac_min_randomcheck_secs "60.000000"

// [StAC] optimize cvars related to patching "server laggers", patching backtracking, mostly patching doubletap, limiting fakelag, patching any possible tele expoits, etc. // (recommended 1) // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" stac_optimize_cvars "1"

sapphonie commented 1 year ago

Interesting, I'll look into that

sapphonie commented 1 year ago

@higps is this still an issue with 6.0.x