From 37dd9ee2f8e06b12aa1adc7469e3757e6604b4cf Mon Sep 17 00:00:00 2001 From: stephanie sappho lenzo Date: Thu, 15 Aug 2024 14:56:08 -0400 Subject: [PATCH 1/2] add more cvars to check --- scripting/stac.sp | 2 +- scripting/stac/stac_cvar_checks.sp | 45 +++++++++++++++++++++++++++++- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/scripting/stac.sp b/scripting/stac.sp index 193d4c7..c2fa847 100755 --- a/scripting/stac.sp +++ b/scripting/stac.sp @@ -55,7 +55,7 @@ #pragma semicolon 1 #pragma newdecls required -#define PLUGIN_VERSION "6.1.6" +#define PLUGIN_VERSION "6.1.7" #define UPDATE_URL "https://raw.githubusercontent.com/sapphonie/StAC-tf2/master/updatefile.txt" diff --git a/scripting/stac/stac_cvar_checks.sp b/scripting/stac/stac_cvar_checks.sp index 25c40eb..d6c1822 100755 --- a/scripting/stac/stac_cvar_checks.sp +++ b/scripting/stac/stac_cvar_checks.sp @@ -30,6 +30,19 @@ char miscVars[][] = "r_portalsopenall", // must be == 1.0 "host_timescale", + + // 0 + "net_blockmsg", + "net_droppackets", + "net_fakejitter", + "net_fakelag", + "net_fakeloss", + + // 1 + "r_skybox", + "r_drawskybox" + + // sv_force_transmit_ents ? // sv_suppress_viewpunch ? // tf_showspeed ? @@ -274,9 +287,39 @@ public void ConVarCheck(QueryCookie cookie, int cl, ConVarQueryResult result, co } /* - cheat program only cvars + // 0 + "net_blockmsg", + "net_droppackets", + "net_fakejitter", + "net_fakelag", + "net_fakeloss", */ + else if (StrContains(cvarName, "net_") == 0 /* starts with "net_", doesn't just contain it */) + { + if (StringToInt(cvarValue) != 0) + { + oobVarsNotify(userid, cvarName, cvarValue); + if (stac_ban_for_misccheats.BoolValue) + { + oobVarBan(userid); + } + } + } + else if (StrEqual(cvarName, "r_skybox") || StrEqual(cvarName, "r_drawskybox")) + { + if (StringToInt(cvarValue) != 1) + { + oobVarsNotify(userid, cvarName, cvarValue); + if (stac_ban_for_misccheats.BoolValue) + { + oobVarBan(userid); + } + } + } + /* + cheat program only cvars + */ if ( ( From 510432a02caa401d61d6299e6ad973297675d317 Mon Sep 17 00:00:00 2001 From: sappho Date: Tue, 22 Oct 2024 16:18:25 -0400 Subject: [PATCH 2/2] Update workflow -> 1.12 (sm stable) --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 467a42f..32676af 100755 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -22,7 +22,7 @@ jobs: - name: Setup SourcePawn Compiler uses: rumblefrog/setup-sp@master with: - version: "1.11.x" + version: "1.12.x" - name: Compile plugins run: |