Skip to content

Commit

Permalink
Merge branch 'master' into refactor-namechange-bans
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphonie authored Oct 22, 2024
2 parents 6ab77d2 + aaf88c2 commit 09eb372
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion scripting/stac.sp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#pragma semicolon 1
#pragma newdecls required

#define PLUGIN_VERSION "6.1.7-namechangelogic-beta"
#define PLUGIN_VERSION "6.2.0"

#define UPDATE_URL "https://raw.githubusercontent.com/sapphonie/StAC-tf2/master/updatefile.txt"

Expand Down
45 changes: 44 additions & 1 deletion scripting/stac/stac_cvar_checks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?
Expand Down Expand Up @@ -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
(
(
Expand Down

0 comments on commit 09eb372

Please sign in to comment.