mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 11:28: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();
|
gEV_Type = GetEngineVersion();
|
||||||
gB_Protobuf = (GetUserMessageType() == UM_Protobuf);
|
gB_Protobuf = (GetUserMessageType() == UM_Protobuf);
|
||||||
|
|
||||||
if(gEV_Type == Engine_CSGO)
|
|
||||||
{
|
|
||||||
sv_autobunnyhopping = FindConVar("sv_autobunnyhopping");
|
sv_autobunnyhopping = FindConVar("sv_autobunnyhopping");
|
||||||
sv_autobunnyhopping.BoolValue = false;
|
if (sv_autobunnyhopping) sv_autobunnyhopping.BoolValue = false;
|
||||||
}
|
|
||||||
else if(gEV_Type != Engine_CSS && gEV_Type != Engine_TF2)
|
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*.");
|
SetFailState("This plugin was meant to be used in CS:S, CS:GO and TF2 *only*.");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user