Fix shavit_core_forcebunnyhopping.

This commit is contained in:
shavitush 2017-07-17 03:13:27 +03:00
parent 84fbbf6a6f
commit d5d89ac129

View File

@ -396,19 +396,11 @@ public void OnMapStart()
public void OnConfigsExecuted() public void OnConfigsExecuted()
{ {
if(sv_enablebunnyhopping != null) if(sv_enablebunnyhopping != null && gB_ForceBunnyhopping)
{
if(gB_ForceBunnyhopping)
{ {
sv_enablebunnyhopping.BoolValue = true; sv_enablebunnyhopping.BoolValue = true;
sv_enablebunnyhopping.SetBounds(ConVarBound_Lower, true, 1.0); sv_enablebunnyhopping.SetBounds(ConVarBound_Lower, true, 1.0);
} }
else
{
sv_enablebunnyhopping.SetBounds(ConVarBound_Lower, true, 0.0);
}
}
} }
public Action Command_StartTimer(int client, int args) public Action Command_StartTimer(int client, int args)