check for sv_autobunnyhopping even if not csgo 🕵
Some checks failed
Compile / Build SM ${{ matrix.sm-version }} (1.11) (push) Has been cancelled
Compile / Build SM ${{ matrix.sm-version }} (1.12) (push) Has been cancelled
Compile / Release (push) Has been cancelled

This commit is contained in:
rtldg 2025-02-12 00:20:08 +00:00
parent b150073754
commit 94ebb97c79

View File

@ -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*.");
}