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
119 stars 22 forks source link

Add ConVar to control if "StAC was just unloaded" message should be sent #210

Open Tiagoquix opened 2 months ago

Tiagoquix commented 2 months ago

Hi there.

Sometimes, in a community I'm an admin, we run https://github.com/gemidyne/microtf2 and this game mode is heavily incompatible with StAC (has caused bans for false-positives in the past; probably due to host_timescale manipulation).

To avoid this, we unload StAC, but it is annoying to always receive the unload message (server console, in-game chat, and Discord webhook). Would be nice to have a ConVar to control this behavior, similarly to the sm_show_activity works (sum of numbers so admins can decide where it should be displayed, to be able to customize such as not sending neither to Discord nor the in-game chat, but still sending to the server console).

Thanks in advance.

Tiagoquix commented 2 months ago

Unrelated, but to avoid opening another issue: StAC could automatically disable itself if host_timescale is not equal to 1.0. Maybe add this functionality to the "refuse to work with sv_cheats" ConVar.

sapphonie commented 2 months ago

Good feature req, will look into it