Skip to content

Commit

Permalink
check for sv_autobunnyhopping even if not csgo 🕵
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Feb 12, 2025
1 parent b150073 commit 94ebb97
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions addons/sourcemod/scripting/shavit-core.sp
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,10 @@ public void OnPluginStart()
gEV_Type = GetEngineVersion();
gB_Protobuf = (GetUserMessageType() == UM_Protobuf);

if(gEV_Type == Engine_CSGO)
{
sv_autobunnyhopping = FindConVar("sv_autobunnyhopping");
sv_autobunnyhopping.BoolValue = false;
}
else if(gEV_Type != Engine_CSS && gEV_Type != Engine_TF2)
sv_autobunnyhopping = FindConVar("sv_autobunnyhopping");
if (sv_autobunnyhopping) sv_autobunnyhopping.BoolValue = false;

if (gEV_Type != Engine_CSGO && gEV_Type != Engine_CSS && gEV_Type != Engine_TF2)
{
SetFailState("This plugin was meant to be used in CS:S, CS:GO and TF2 *only*.");
}
Expand Down

0 comments on commit 94ebb97

Please sign in to comment.