public void AddSkillshot(EvadeSkillshot skillshot, bool isProcessSpell = false, bool triggerEvent = true)
        {
            if (LimitDetectionRange &&
                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);
                }
            }
        }
        public static bool IsSkillshotW(EvadeSkillshot skillshot)
        {
            if (!(skillshot is LinearMissileSkillshot))
            {
                return(false);
            }
            var valueBase = SkillshotMenu[skillshot + "/wEvade"];

            return(valueBase != null && valueBase.Cast <CheckBox>().CurrentValue);
        }
Exemple #3
0
        public EvadePlus(SkillshotDetector detector)
        {
            Skillshots = new EvadeSkillshot[] {};
            Polygons = new Geometry.Polygon[] {};
            ClippedPolygons = new List<Geometry.Polygon>();

            SkillshotDetector = detector;
            SkillshotDetector.OnUpdateSkillshots += OnUpdateSkillshots;
            SkillshotDetector.OnSkillshotActivation += OnSkillshotActivation;
            SkillshotDetector.OnSkillshotDetected += OnSkillshotDetected;
            SkillshotDetector.OnSkillshotDeleted += OnSkillshotDeleted;

            Player.OnIssueOrder += PlayerOnIssueOrder;
            Game.OnTick += Ontick;
        }
Exemple #4
0
        public EvadePlus(SkillshotDetector detector)
        {
            Skillshots       = new EvadeSkillshot[] {};
            Polygons         = new Geometry.Polygon[] {};
            ClippedPolygons  = new List <Geometry.Polygon>();
            StatusText       = new Text("EvadePlus Enabled", new Font("Calisto MT", 10F, FontStyle.Bold));
            StatusTextShadow = new Text("EvadePlus Enabled", new Font("Calisto MT", 10F, FontStyle.Bold));

            SkillshotDetector = detector;
            SkillshotDetector.OnUpdateSkillshots    += OnUpdateSkillshots;
            SkillshotDetector.OnSkillshotActivation += OnSkillshotActivation;
            SkillshotDetector.OnSkillshotDetected   += OnSkillshotDetected;
            SkillshotDetector.OnSkillshotDeleted    += OnSkillshotDeleted;

            Player.OnIssueOrder += PlayerOnIssueOrder;
            Game.OnTick         += Ontick;
            Drawing.OnDraw      += OnDraw;
        }
        public EvadePlus(SkillshotDetector detector)
        {
            Skillshots = new EvadeSkillshot[] {};
            Polygons = new Geometry.Polygon[] {};
            ClippedPolygons = new List<Geometry.Polygon>();
            StatusText = new Text("EvadePlus Enabled", new Font("Calisto MT", 10F, FontStyle.Bold));
            StatusTextShadow = new Text("EvadePlus Enabled", new Font("Calisto MT", 10F, FontStyle.Bold));

            SkillshotDetector = detector;
            SkillshotDetector.OnUpdateSkillshots += OnUpdateSkillshots;
            SkillshotDetector.OnSkillshotActivation += OnSkillshotActivation;
            SkillshotDetector.OnSkillshotDetected += OnSkillshotDetected;
            SkillshotDetector.OnSkillshotDeleted += OnSkillshotDeleted;

            Player.OnIssueOrder += PlayerOnIssueOrder;
            Game.OnTick += Ontick;
            Drawing.OnDraw += OnDraw;
        }
        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);
            }
        }
Exemple #7
0
 private void OnSkillshotActivation(EvadeSkillshot skillshot)
 {
     CacheSkillshots();
 }
Exemple #8
0
 private void OnUpdateSkillshots(EvadeSkillshot skillshot, bool remove, bool isProcessSpell)
 {
     CacheSkillshots();
 }
Exemple #9
0
        public static bool IsSkillshotDrawingEnabled(EvadeSkillshot skillshot)
        {
            var valueBase = SkillshotMenu[skillshot + "/draw"];

            return(valueBase != null && valueBase.Cast <CheckBox>().CurrentValue);
        }
Exemple #10
0
 private void OnSkillshotDeleted(EvadeSkillshot skillshot)
 {
 }
Exemple #11
0
 private void OnSkillshotDetected(EvadeSkillshot skillshot, bool isProcessSpell)
 {
     
 }
Exemple #12
0
 private void OnSkillshotActivation(EvadeSkillshot skillshot)
 {
     CacheSkillshots();
 }
Exemple #13
0
 public static bool IsSkillshotW(EvadeSkillshot skillshot)
 {
     if (skillshot is CircularMissileSkillshot) return false;
     var valueBase = SkillshotMenu[skillshot + "/w"];
     return valueBase != null && valueBase.Cast<CheckBox>().CurrentValue;
 }
Exemple #14
0
 public static bool IsSkillshotDrawingEnabled(EvadeSkillshot skillshot)
 {
     var valueBase = SkillshotMenu[skillshot + "/draw"];
     return valueBase != null && valueBase.Cast<CheckBox>().CurrentValue;
 }
Exemple #15
0
 private void OnSkillshotDetected(EvadeSkillshot skillshot, bool isProcessSpell)
 {
 }
Exemple #16
0
 private void OnSkillshotDeleted(EvadeSkillshot skillshot)
 {
 }
Exemple #17
0
 private void OnUpdateSkillshots(EvadeSkillshot skillshot, bool remove, bool isProcessSpell)
 {
     CacheSkillshots();
 }