コード例 #1
0
ファイル: EvadeDisabler.cs プロジェクト: wade1990/PortAIO
        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;
        }
コード例 #2
0
ファイル: EvadeDisabler.cs プロジェクト: wade1990/PortAIO
        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;
        }