public static void EnableEvade() { if (!EvadeDisabled) { return; } if (WasEzEvadeActive && EzEvadeMenu != null && EzEvadeEnabled != null) { var bind = EzEvadeEnabled.GetValue <KeyBind>(); bind.Active = true; EzEvadeEnabled.SetValue(bind); } if (WasEvadeActive && EvadeMenu != null && EvadeEnabled != null) { var evadeBind = EvadeEnabled.GetValue <KeyBind>(); evadeBind.Active = true; EvadeEnabled.SetValue(evadeBind); } WasEzEvadeActive = false; WasEvadeActive = false; DisableDuration = 0; LastEvadeDisableT = 0; }
public static void DisableEvade(int duration = int.MaxValue) { if (IsEzEvadeEnabled) { var bind = EzEvadeEnabled.GetValue <KeyBind>(); bind.Active = false; EzEvadeEnabled.SetValue(bind); WasEzEvadeActive = true; } if (IsEvadeEnabled) { var evadeBind = EvadeEnabled.GetValue <KeyBind>(); evadeBind.Active = false; EvadeEnabled.SetValue(evadeBind); WasEvadeActive = true; } DisableDuration = duration; LastEvadeDisableT = Utils.TickCount; }