Skip to content

Commit 94ebb97

Browse files
committed
check for sv_autobunnyhopping even if not csgo 🕵
1 parent b150073 commit 94ebb97

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

addons/sourcemod/scripting/shavit-core.sp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,10 @@ public void OnPluginStart()
291291
gEV_Type = GetEngineVersion();
292292
gB_Protobuf = (GetUserMessageType() == UM_Protobuf);
293293

294-
if(gEV_Type == Engine_CSGO)
295-
{
296-
sv_autobunnyhopping = FindConVar("sv_autobunnyhopping");
297-
sv_autobunnyhopping.BoolValue = false;
298-
}
299-
else if(gEV_Type != Engine_CSS && gEV_Type != Engine_TF2)
294+
sv_autobunnyhopping = FindConVar("sv_autobunnyhopping");
295+
if (sv_autobunnyhopping) sv_autobunnyhopping.BoolValue = false;
296+
297+
if (gEV_Type != Engine_CSGO && gEV_Type != Engine_CSS && gEV_Type != Engine_TF2)
300298
{
301299
SetFailState("This plugin was meant to be used in CS:S, CS:GO and TF2 *only*.");
302300
}

0 commit comments

Comments
 (0)