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);
                }
            }
        }
 private static void Main(string[] args)
 {
     Loading.OnLoadingComplete += delegate
     {
         _skillshotDetector = new SkillshotDetector(DeveloperMode ? DetectionTeam.AnyTeam : DetectionTeam.EnemyTeam);
         _evade             = new EvadePlus(_skillshotDetector);
         EvadeMenu.CreateMenu();
     };
 }
 private static void Main(string[] args)
 {
     Loading.OnLoadingComplete += delegate
     {
         _skillshotDetector = new SkillshotDetector();
         _evade             = new EvadePlus(_skillshotDetector);
         EvadeMenu.CreateMenu();
     };
 }
Exemple #4
0
 private void OnDraw(EventArgs args)
 {
     foreach (var c in DetectedSkillshots)
     {
         if (EvadeMenu.IsSkillshotDrawingEnabled(c))
         {
             c.OnDraw();
         }
     }
 }
        private void OnDraw(EventArgs args)
        {
            if (EvadeMenu.DrawMenu["disableAllDrawings"].Cast <CheckBox>().CurrentValue)
            {
                return;
            }

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