Ejemplo n.º 1
0
        public override void Update(AzirMain azir)
        {
            base.Update(azir);
            if (azir.Menu.GetMenu.Item("fleekey").GetValue <KeyBind>().Active)
            {
                azir.Orbwalk(Game.CursorPos);
                Jump(azir);
            }

            RAllyTower(azir);
        }
Ejemplo n.º 2
0
        public override void Update(AzirMain azir)
        {
            base.Update(azir);


            if (Menu._jumpMenu["fleekey"].Cast <KeyBind>().CurrentValue)
            {
                azir.Orbwalk(Game.CursorPos);
                Jump(azir);
            }
        }
Ejemplo n.º 3
0
        public override void Update(AzirMain azir)
        {

            base.Update(azir);



            if (Menu._jumpMenu["fleekey"].Cast<KeyBind>().CurrentValue)
            {
                azir.Orbwalk(Game.CursorPos);
                Jump(azir);
            }
        }
Ejemplo n.º 4
0
        private void Game_OnUpdate(EventArgs args)
        {
            var insecPoint = new Vector3(0, 2, 3);

            if (Clickposition == new Vector3(0, 0, 0))
            {
                insecPoint = Game.CursorPos;
            }
            else
            {
                insecPoint = Clickposition;
            }
            if (!Menu._jumpMenu["inseckey"].Cast <KeyBind>().CurrentValue)
            {
                soldier = null;
                return;
            }
            azir.Orbwalk(Game.CursorPos);

            if (!insecPoint.IsValid())
            {
                return;
            }
            var target = TargetSelector.SelectedTarget;

            if (!target.IsValidTarget() || target.IsZombie)
            {
                return;
            }
            if (azir.Hero.LSDistance(target) <= azir.Spells.R.Range && !azir.Hero.LSIsDashing())
            {
                if (Clickposition == new Vector3(0, 0, 0))
                {
                    var tower = ObjectManager.Get <Obj_AI_Turret>().FirstOrDefault(it => it.IsAlly && it.LSIsValidTarget(1000));

                    if (tower != null)
                    {
                        if (azir.Spells.R.Cast(tower.ServerPosition))
                        {
                            return;
                        }
                    }

                    if (azir.Spells.R.Cast(Game.CursorPos))
                    {
                        return;
                    }
                }
                else
                {
                    azir.Spells.R.Cast(Clickposition);
                }
            }

            var pos = target.ServerPosition.Extend(Game.CursorPos, -300);

            if (pos.Distance(azir.Hero.ServerPosition) <= 1100)
            {
                if (soldier == null)
                {
                    soldier = azir.soldierManager.ActiveSoldiers
                              .Where(x => x.LSDistance(pos) <= 900)
                              .OrderBy(x => x.Position.Distance(target.Position)).FirstOrDefault();
                }
                if (soldier == null)
                {
                    castWOnAngle(HeroManager.Player.ServerPosition.LSTo2D(), target.ServerPosition.To2D(), 45);
                    return;
                }
                if (soldier != null)
                {
                    azir.Spells.E.Cast(soldier.Position);
                }
                if (!azir.Spells.E.IsReady())
                {
                    if (azir.Hero.LSDistance(soldier.ServerPosition) <= 150)
                    {
                        azir.Spells.Q.Cast(pos);
                    }
                }
            }
        }
Ejemplo n.º 5
0
        private void Game_OnUpdate(EventArgs args)
        {
            if (!azir.Spells.R.IsReady())
            {
                return;
            }
            var insecPoint = new Vector3(0, 2, 3);

            if (Clickposition == new Vector3(0, 0, 0))
            {
                insecPoint = Game.CursorPos;
            }
            else
            {
                insecPoint = Clickposition;
            }

            if (!AzirMenu._jumpMenu["inseckey"].Cast <KeyBind>().CurrentValue)
            {
                steps   = Steps.firstCalcs;
                soldier = null;
                return;
            }

            azir.Orbwalk(Game.CursorPos);

            if (!insecPoint.IsValid())
            {
                return;
            }
            var target = TargetSelector.SelectedTarget;

            if (target == null)
            {
                return;
            }
            if (!target.IsValidTarget() || target.IsZombie)
            {
                steps = Steps.firstCalcs;
                return;
            }

            var insecPos = new Vector3(0, 0, 0);

            if (Clickposition == new Vector3(0, 0, 0))
            {
                insecPos = Game.CursorPos;
            }
            else
            {
                insecPos = insecPoint;
            }
            var postoGo = target.ServerPosition;

            switch (steps)
            {
            case Steps.firstCalcs:
                if (target.Distance(HeroManager.Player) <= azir.Spells.W.Range + azir.Spells.Q.Range - 100)
                {
                    steps = Steps.jump;
                }
                break;

            case Steps.jump:
                if (HeroManager.Player.ServerPosition.Distance(postoGo) <= 220)
                {
                    steps = Steps.R;
                }
                else
                {
                    azir._modes._jump.updateLogicJumpInsec(postoGo);
                }
                break;

            case Steps.R:
                if (azir.Hero.Distance(target) < 220)
                {
                    var tower = ObjectManager.Get <Obj_AI_Turret>().FirstOrDefault(it => it.IsValidTarget(1000));

                    if (tower != null)
                    {
                        azir.Spells.R.Cast(tower.ServerPosition);
                        steps = Steps.firstCalcs;
                    }

                    else
                    {
                        azir.Spells.R.Cast(insecPoint);
                        steps = Steps.firstCalcs;
                    }
                }


                break;
            }
        }