We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b150073 commit 94ebb97Copy full SHA for 94ebb97
addons/sourcemod/scripting/shavit-core.sp
@@ -291,12 +291,10 @@ public void OnPluginStart()
291
gEV_Type = GetEngineVersion();
292
gB_Protobuf = (GetUserMessageType() == UM_Protobuf);
293
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)
+ 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)
300
{
301
SetFailState("This plugin was meant to be used in CS:S, CS:GO and TF2 *only*.");
302
}
0 commit comments