예제 #1
0
        private void Drawing_OnDraw(EventArgs args)
        {
            return;

            var predInput2 = new Core.PredictionInput
            {
                Aoe       = false,
                Collision = false,
                Speed     = 1000,
                Delay     = 0.25f,
                Range     = 1000,
                From      = from,
                Radius    = 100,
                Unit      = ObjectManager.Player,
                Type      = SkillshotType.SkillshotLine
            };
            var poutput2 = Core.Prediction.GetPrediction(predInput2);

            Utility.DrawCircle(from, 100, System.Drawing.Color.Aqua, 1, 1);
            Utility.DrawCircle(poutput2.CastPosition, 100, System.Drawing.Color.Orange, 1, 1);
            if (obj != null && obj.IsValid)
            {
                //Utility.DrawCircle(obj.Position, 100, System.Drawing.Color.Orange, 1, 1);
            }
        }
예제 #2
0
파일: Syndra.cs 프로젝트: sq1919/LeagueRepo
        private void CastQE(Obj_AI_Base target)
        {
            Core.SkillshotType CoreType2 = Core.SkillshotType.SkillshotLine;

            var predInput2 = new Core.PredictionInput
            {
                Aoe       = false,
                Collision = EQ.Collision,
                Speed     = EQ.Speed,
                Delay     = EQ.Delay,
                Range     = EQ.Range,
                From      = Player.ServerPosition,
                Radius    = EQ.Width,
                Unit      = target,
                Type      = CoreType2
            };

            var poutput2 = Core.Prediction.GetPrediction(predInput2);

            if (OktwCommon.CollisionYasuo(Player.ServerPosition, poutput2.CastPosition))
            {
                return;
            }

            Vector3 castQpos = poutput2.CastPosition;

            if (Player.Distance(castQpos) > Q.Range)
            {
                castQpos = Player.Position.Extend(castQpos, Q.Range);
            }

            if (Config.Item("HitChance", true).GetValue <StringList>().SelectedIndex == 0)
            {
                if (poutput2.Hitchance >= Core.HitChance.VeryHigh)
                {
                    EQcastNow = true;
                    Q.Cast(castQpos);
                }
            }
            else if (Config.Item("HitChance", true).GetValue <StringList>().SelectedIndex == 1)
            {
                if (poutput2.Hitchance >= Core.HitChance.High)
                {
                    EQcastNow = true;
                    Q.Cast(castQpos);
                }
            }
            else if (Config.Item("HitChance", true).GetValue <StringList>().SelectedIndex == 2)
            {
                if (poutput2.Hitchance >= Core.HitChance.Medium)
                {
                    EQcastNow = true;
                    Q.Cast(castQpos);
                }
            }
        }
예제 #3
0
        private void Drawing_OnDraw(EventArgs args)
        {
            return;
            var predInput2 = new Core.PredictionInput
            {
                Aoe = false,
                Collision = false,
                Speed = 1000,
                Delay = 0.25f,
                Range = 1000,
                From = from,
                Radius = 100,
                Unit = ObjectManager.Player,
                Type = SkillshotType.SkillshotLine
            };
            var poutput2 = Core.Prediction.GetPrediction(predInput2);

            Utility.DrawCircle(from, 100, System.Drawing.Color.Aqua, 1, 1);
            Utility.DrawCircle(poutput2.CastPosition, 100, System.Drawing.Color.Orange, 1, 1);
            if (obj != null &&  obj.IsValid)
            {
                //Utility.DrawCircle(obj.Position, 100, System.Drawing.Color.Orange, 1, 1);
            }
        }
예제 #4
0
        private static void CastSpell(Spell QWER, Obj_AI_Base target)
        {
            if (Config.Item("PredictionMODE").GetValue <StringList>().SelectedIndex == 0)
            {
                if (QWER.Slot == SpellSlot.W)
                {
                    if (Config.Item("Wpred").GetValue <StringList>().SelectedIndex == 0)
                    {
                        QWER.CastIfHitchanceEquals(target, HitChance.VeryHigh);
                    }
                    else
                    {
                        QWER.Cast(target);
                    }
                }
                if (QWER.Slot == SpellSlot.R)
                {
                    if (Config.Item("Rpred").GetValue <StringList>().SelectedIndex == 0)
                    {
                        QWER.CastIfHitchanceEquals(target, HitChance.VeryHigh);
                    }
                    else
                    {
                        QWER.Cast(target);
                    }
                }
                if (QWER.Slot == SpellSlot.E)
                {
                    if (Config.Item("Epred").GetValue <StringList>().SelectedIndex == 0)
                    {
                        QWER.CastIfHitchanceEquals(target, HitChance.VeryHigh);
                    }
                    else
                    {
                        QWER.Cast(target);
                    }
                }
            }
            else
            {
                Core.SkillshotType CoreType2 = Core.SkillshotType.SkillshotLine;
                bool aoe2 = false;

                if (QWER.Type == SkillshotType.SkillshotCircle)
                {
                    CoreType2 = Core.SkillshotType.SkillshotCircle;
                    aoe2      = true;
                }

                var predInput2 = new Core.PredictionInput
                {
                    Aoe       = aoe2,
                    Collision = QWER.Collision,
                    Speed     = QWER.Speed,
                    Delay     = QWER.Delay,
                    Range     = QWER.Range,
                    From      = Player.ServerPosition,
                    Radius    = QWER.Width,
                    Unit      = target,
                    Type      = CoreType2
                };

                var poutput2 = Core.Prediction.GetPrediction(predInput2);

                if (QWER.Slot == SpellSlot.W)
                {
                    if (Config.Item("Wpred").GetValue <StringList>().SelectedIndex == 0)
                    {
                        if (poutput2.Hitchance >= Core.HitChance.VeryHigh)
                        {
                            QWER.Cast(poutput2.CastPosition);
                        }
                    }
                    else
                    {
                        if (poutput2.Hitchance >= Core.HitChance.High)
                        {
                            QWER.Cast(poutput2.CastPosition);
                        }
                    }
                }
                if (QWER.Slot == SpellSlot.R)
                {
                    if (Config.Item("Rpred").GetValue <StringList>().SelectedIndex == 0)
                    {
                        if (poutput2.Hitchance >= Core.HitChance.VeryHigh)
                        {
                            QWER.Cast(poutput2.CastPosition);
                        }
                    }
                    else
                    {
                        if (poutput2.Hitchance >= Core.HitChance.High)
                        {
                            QWER.Cast(poutput2.CastPosition);
                        }
                    }
                }
                if (QWER.Slot == SpellSlot.E)
                {
                    if (Config.Item("Epred").GetValue <StringList>().SelectedIndex == 0)
                    {
                        if (poutput2.Hitchance >= Core.HitChance.VeryHigh)
                        {
                            QWER.Cast(poutput2.CastPosition);
                        }
                    }
                    else
                    {
                        if (poutput2.Hitchance >= Core.HitChance.High)
                        {
                            QWER.Cast(poutput2.CastPosition);
                        }
                    }
                }
            }
        }
예제 #5
0
        private void CastQE(Obj_AI_Base target)
        {
            Core.SkillshotType CoreType2 = Core.SkillshotType.SkillshotLine;

            var predInput2 = new Core.PredictionInput
            {
                Aoe = false,
                Collision = EQ.Collision,
                Speed = EQ.Speed,
                Delay = EQ.Delay,
                Range = EQ.Range,
                From = Player.ServerPosition,
                Radius = EQ.Width,
                Unit = target,
                Type = CoreType2
            };

            var poutput2 = Core.Prediction.GetPrediction(predInput2);

            if (OktwCommon.CollisionYasuo(Player.ServerPosition, poutput2.CastPosition))
                return;

            Vector3 castQpos = poutput2.CastPosition;

            if (Player.Distance(castQpos) > Q.Range)
                castQpos = Player.Position.Extend(castQpos, Q.Range);

            if (Config.Item("HitChance", true).GetValue<StringList>().SelectedIndex == 0)
            {
                if (poutput2.Hitchance >= Core.HitChance.VeryHigh)
                {
                    EQcastNow = true;
                    Q.Cast(castQpos);
                }

            }
            else if (Config.Item("HitChance", true).GetValue<StringList>().SelectedIndex == 1)
            {
                if (poutput2.Hitchance >= Core.HitChance.High)
                {
                    EQcastNow = true;
                    Q.Cast(castQpos);
                }

            }
            else if (Config.Item("HitChance", true).GetValue<StringList>().SelectedIndex == 2)
            {
                if (poutput2.Hitchance >= Core.HitChance.Medium)
                {
                    EQcastNow = true;
                    Q.Cast(castQpos);
                }
            }
        }