mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
check for sv_autobunnyhopping even if not csgo 🕵
This commit is contained in:
parent
b150073754
commit
94ebb97c79
@ -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*.");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user