Ejemplo n.º 1
0
        public static void ExecuteHarass()
        {
            var qTarget = TargetSelector.GetBestTarget(Q.ChargedMaxRange);
            var wTarget = TargetSelector.GetBestTarget(W.Range + W.Width * 0.5f);
            var eTarget = TargetSelector.GetBestTarget(E.Range);


            if (ComboMenu.QBool.Enabled && Q.Ready && qTarget != null)
            {
                if (Q.IsCharging)
                {
                    var pred = Q.GetPrediction(qTarget);
                    if (
                        pred.HitChance >= HitChance.Medium)
                    {
                        Q.ShootChargedSpell(pred.CastPosition, extraRange: ComboMenu.QCharge.Value);
                    }
                }
                else if (!ComboMenu.WBool.Enabled || !W.Ready || qTarget.DistanceToPlayer() > W.Range)
                {
                    Q.StartCharging(Hud.CursorPositionUnclipped);
                }
            }

            if (wTarget != null && ComboMenu.WBool.Enabled && W.Ready)
            {
                W.Cast(wTarget);
            }
        }
Ejemplo n.º 2
0
        protected override void OnRender(EntropyEventArgs args)
        {
            base.OnRender(args);
            if (Q.IsCharging && DrawingMenu.QTriangles.Enabled)
            {
                var target = TargetSelector.GetBestTarget(Q.ChargedMaxRange);
                if (target != null)
                {
                    if (Game.ClockTime > QDrawing.Create)
                    {
                        QDrawing.Create = Game.ClockTime + 0.07f;
                        var r1    = rnd.NextFloat(0, 1);
                        var r2    = rnd.NextFloat(0, 1);
                        var r3    = rnd.NextFloat(0, 1);
                        var speed = Math.Max(1500f, r1 * 5000f);
                        var angle = r2 * (Math.PI * 2);
                        var range = Math.Max(333f, r3 * 444f);

                        var missile = new QDrawing(target,
                                                   speed,
                                                   new Vector2((float)(target.Position.X + range * Math.Cos(angle)),
                                                               (float)(target.Position.Z + range * Math.Sin(angle))),
                                                   target.Position.Y + 122f,
                                                   Game.ClockTime + 1f,
                                                   Colors[rnd.Next(0, 2)]);

                        QDrawing.Missile.Add(missile);
                    }

                    var Timer = Game.ClockTime - QDrawing.LastDraw;
                    for (var i = 0; i < QDrawing.Missile.Count; i++)
                    {
                        var missile = QDrawing.Missile[i];
                        var p       = new Vector2(missile.Object.Position.X, missile.Object.Position.Z);

                        if (p.Distance(missile.Position) < 50 || Game.ClockTime > missile.Time)
                        {
                            QDrawing.Missile.Remove(missile);
                        }

                        missile.Y        = Math.Max(missile.Object.Position.Y, missile.Y - Timer * 777f);
                        missile.Position =
                            missile.Position.Extend(p, Timer * 100f * missile.Speed / missile.Position.Distance(p));
                        new Triangle(new Vector3(missile.Position.X + 25,
                                                 missile.Y,
                                                 missile.Position.Y),
                                     new Vector3(missile.Position.X, missile.Y - 15, missile.Position.Y),
                                     new Vector3(missile.Position.X, missile.Y, missile.Position.Y + 25)).
                        Render(missile.Color, 2);
                    }

                    QDrawing.LastDraw = Game.ClockTime;
                }
            }

            if (Definitions.IsChannellingR && RSettings.FocusMouse.Enabled)
            {
                CircleRendering.Render(Color.White, RSettings.MouseRange.Value, Hud.CursorPositionUnclipped, 2);
            }
        }
Ejemplo n.º 3
0
        public static void ExecuteW()
        {
            if (!ComboMenu.WBool.Enabled)
            {
                return;
            }

            var target = TargetSelector.GetBestTarget(W.Range);

            if (target == null)
            {
                return;
            }

            if (Orbwalker.IsWindingUp)
            {
                return;
            }

            var pred = W.GetPrediction(target);

            if (pred.HitChance < HitChance.Low)
            {
                return;
            }

            W.Cast(pred.CastPosition);
        }
Ejemplo n.º 4
0
        private static void ExecuteR()
        {
            if (!RBool.Enabled)
            {
                return;
            }

            var rTarget = TargetSelector.GetBestTarget(R.Range);

            if (rTarget == null)
            {
                return;
            }

            R.Cast(rTarget);
        }
Ejemplo n.º 5
0
        private static void ExecuteE()
        {
            if (!EBool.Enabled)
            {
                return;
            }

            var eTarget = TargetSelector.GetBestTarget(E.Range);

            if (eTarget == null)
            {
                return;
            }

            E.Cast(eTarget);
        }
Ejemplo n.º 6
0
        private static void ExecuteW()
        {
            if (!WBool.Enabled)
            {
                return;
            }

            var wTarget = TargetSelector.GetBestTarget(W.Range);

            if (wTarget == null)
            {
                return;
            }

            W.Cast(wTarget);
        }
Ejemplo n.º 7
0
        private static void ExecuteQ()
        {
            if (!QBool.Enabled)
            {
                return;
            }

            var qTarget = TargetSelector.GetBestTarget(Q.Range);

            if (qTarget == null)
            {
                return;
            }

            Q.Cast(qTarget);
        }
Ejemplo n.º 8
0
        private static void ExecuteW()
        {
            if (!WSliderBool.Enabled)
            {
                return;
            }

            if (LocalPlayer.Instance.MPPercent() < ManaManager.GetNeededMana(W.Slot, WSliderBool))
            {
                return;
            }

            var wTarget = TargetSelector.GetBestTarget(W.Range);

            if (wTarget == null)
            {
                return;
            }

            W.Cast(wTarget);
        }
Ejemplo n.º 9
0
        private static void ExecuteQ()
        {
            if (!QSliderBool.Enabled)
            {
                return;
            }

            if (LocalPlayer.Instance.MPPercent() < ManaManager.GetNeededMana(Q.Slot, QSliderBool))
            {
                return;
            }

            var qTarget = TargetSelector.GetBestTarget(Q.Range);

            if (qTarget == null)
            {
                return;
            }

            Q.Cast(qTarget);
        }
Ejemplo n.º 10
0
        private static void ExecuteE()
        {
            if (!ESliderBool.Enabled)
            {
                return;
            }

            if (LocalPlayer.Instance.MPPercent() < ManaManager.GetNeededMana(E.Slot, ESliderBool))
            {
                return;
            }

            var eTarget = TargetSelector.GetBestTarget(E.Range);

            if (eTarget == null)
            {
                return;
            }

            E.Cast(eTarget);
        }
Ejemplo n.º 11
0
        private static void ExecuteBurst()
        {
            if (!R.Ready || !Flash.Ready || LocalPlayer.Instance.HasBuff("AnnieRController"))
            {
                return;
            }

            //Flash+ Full Combo
            if (BurstMode.Value == 0 && (!W.Ready || !Q.Ready))
            {
                return;
            }

            var targ = TargetSelector.GetBestTarget(Flash.Range + W.Range);

            if (targ == null)
            {
                return;
            }

            BurstTarget = targ;

            var castPos = R.GetPrediction(BurstTarget).CastPosition;

            if (castPos.IsZero)
            {
                return;
            }

            var flashPos =
                LocalPlayer.Instance.Position.Extend(castPos, Flash.Range);

            if (BurstTarget.DistanceToPlayer() > R.Range + BurstTarget.BoundingRadius)
            {
                Flash.Cast(flashPos);
            }

            R.Cast(castPos);
        }
Ejemplo n.º 12
0
        private static void ExecuteR()
        {
            if (!RBool.Enabled)
            {
                return;
            }

            var rTarget = TargetSelector.GetBestTarget(R.Range);

            if (rTarget == null)
            {
                return;
            }

            if (RCountBool.Enabled &&
                rTarget.EnemyHeroesCount(290) < RCountBool.Value)
            {
                return;
            }

            R.Cast(rTarget);
        }
Ejemplo n.º 13
0
        internal static void ExecuteW()
        {
            var WMenu = AutomaticMenu.WSliderBool;

            //Returning if execution menu is not enabled
            if (!WMenu.Enabled)
            {
                return;
            }

            //Returning if mana percent is lower or equal execution menu value
            if (ManaManager.GetNeededMana(SpellSlot.W, WMenu) > LocalPlayer.Instance.MPPercent())
            {
                return;
            }

            var wTarget = TargetSelector.GetBestTarget(W.Range);

            //Returning if target equals null
            if (wTarget == null)
            {
                return;
            }

            if (Orbwalker.IsWindingUp)
            {
                return;
            }

            //Returning if target is not whitelisted
            if (!AutomaticMenu.WWhitelist.IsWhitelisted(wTarget))
            {
                return;
            }

            W.Cast(wTarget);
        }