Skip to content

Commit 09eb372

Browse files
authored
Merge branch 'master' into refactor-namechange-bans
2 parents 6ab77d2 + aaf88c2 commit 09eb372

File tree

3 files changed

+46
-3
lines changed

3 files changed

+46
-3
lines changed

.github/workflows/blank.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup SourcePawn Compiler
2323
uses: rumblefrog/setup-sp@master
2424
with:
25-
version: "1.11.x"
25+
version: "1.12.x"
2626

2727
- name: Compile plugins
2828
run: |

scripting/stac.sp

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#pragma semicolon 1
5656
#pragma newdecls required
5757

58-
#define PLUGIN_VERSION "6.1.7-namechangelogic-beta"
58+
#define PLUGIN_VERSION "6.2.0"
5959

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

scripting/stac/stac_cvar_checks.sp

+44-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ char miscVars[][] =
3030
"r_portalsopenall",
3131
// must be == 1.0
3232
"host_timescale",
33+
34+
// 0
35+
"net_blockmsg",
36+
"net_droppackets",
37+
"net_fakejitter",
38+
"net_fakelag",
39+
"net_fakeloss",
40+
41+
// 1
42+
"r_skybox",
43+
"r_drawskybox"
44+
45+
3346
// sv_force_transmit_ents ?
3447
// sv_suppress_viewpunch ?
3548
// tf_showspeed ?
@@ -274,9 +287,39 @@ public void ConVarCheck(QueryCookie cookie, int cl, ConVarQueryResult result, co
274287
}
275288

276289
/*
277-
cheat program only cvars
290+
// 0
291+
"net_blockmsg",
292+
"net_droppackets",
293+
"net_fakejitter",
294+
"net_fakelag",
295+
"net_fakeloss",
278296
*/
297+
else if (StrContains(cvarName, "net_") == 0 /* starts with "net_", doesn't just contain it */)
298+
{
299+
if (StringToInt(cvarValue) != 0)
300+
{
301+
oobVarsNotify(userid, cvarName, cvarValue);
302+
if (stac_ban_for_misccheats.BoolValue)
303+
{
304+
oobVarBan(userid);
305+
}
306+
}
307+
}
279308

309+
else if (StrEqual(cvarName, "r_skybox") || StrEqual(cvarName, "r_drawskybox"))
310+
{
311+
if (StringToInt(cvarValue) != 1)
312+
{
313+
oobVarsNotify(userid, cvarName, cvarValue);
314+
if (stac_ban_for_misccheats.BoolValue)
315+
{
316+
oobVarBan(userid);
317+
}
318+
}
319+
}
320+
/*
321+
cheat program only cvars
322+
*/
280323
if
281324
(
282325
(

0 commit comments

Comments
 (0)