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
120 stars 23 forks source link

Invisible RegConsoleCmd #189

Closed iBoonie closed 7 months ago

iBoonie commented 8 months ago

Hide sm_stac_checkall, sm_stac_detections, sm_stac_getauth, sm_stac_livefeed from client, normally when a command doesn't exist, they will get "Unknown command" in the console. But since using Plugin_Handled, it returns nothing instead of erroring out. If we convert it to Plugin_Continue, it will show "Unknown command" client side.

These should also be converted to AddCommandListener, but that can be done later if you want.

Side note, these notifications can be used to spam the server with logs, not sure if you want to log every time someone hits them.

https://github.com/sapphonie/StAC-tf2/blob/51b3eb3862331e428c90234f491a951a6c638375/scripting/stac/stac_commands.sp#L22-L26

sapphonie commented 7 months ago

Ty and you're correct about the log