Ejemplo n.º 1
0
        public void AddSkillshot(EvadeSkillshot skillshot, bool isProcessSpell = false, bool triggerEvent = true)
        {
            if (LimitDetectionRange && !skillshot.SpellData.IsGlobal &&
                skillshot.GetPosition().Distance(Player.Instance, true) > (2 * skillshot.SpellData.Range).Pow())
            {
                return;
            }

            if (SkillshotActivationDelay <= 10)
            {
                skillshot.IsActive = true;
            }

            DetectedSkillshots.Add(skillshot);

            if (triggerEvent && EvadeMenu.IsSkillshotEnabled(skillshot))
            {
                if (OnSkillshotDetected != null)
                {
                    OnSkillshotDetected(skillshot, isProcessSpell);
                }

                if (OnUpdateSkillshots != null)
                {
                    OnUpdateSkillshots(skillshot, false, isProcessSpell);
                }
            }
        }
Ejemplo n.º 2
0
 private static void Main(string[] args)
 {
     Loading.OnLoadingComplete += delegate
     {
         _skillshotDetector = new SkillshotDetector(DeveloperMode ? DetectionTeam.AnyTeam : DetectionTeam.EnemyTeam);
         _evade             = new EvadePlus(_skillshotDetector);
         EvadeMenu.CreateMenu();
     };
 }
Ejemplo n.º 3
0
 private static void Main(string[] args)
 {
     Loading.OnLoadingComplete += delegate
     {
         _skillshotDetector = new SkillshotDetector();
         _evade             = new EvadePlus(_skillshotDetector);
         EvadeMenu.CreateMenu();
     };
 }
Ejemplo n.º 4
0
 private void OnDraw(EventArgs args)
 {
     foreach (var c in DetectedSkillshots)
     {
         if (EvadeMenu.IsSkillshotDrawingEnabled(c))
         {
             c.OnDraw();
         }
     }
 }
Ejemplo n.º 5
0
        private void OnDraw(EventArgs args)
        {
            if (EvadeMenu.DrawMenu["disableAllDrawings"].Cast <CheckBox>().CurrentValue)
            {
                return;
            }

            foreach (var c in DetectedSkillshots)
            {
                if (EvadeMenu.IsSkillshotDrawingEnabled(c))
                {
                    c.OnDraw();
                }
            }
        }