Exemplo n.º 1
0
        public static void OnTick(EntropyEventArgs args)
        {
            if (LocalPlayer.Instance.IsDead)
            {
                return;
            }

            if (Definitions.IsCulling())
            {
                DelayAction.Queue(() => { Orbwalker.Move(Hud.CursorPositionUnclipped); },
                                  100 + EnetClient.Ping);
            }

            if (Orbwalker.IsWindingUp)
            {
                return;
            }

            switch (Orbwalker.Mode)
            {
            case OrbwalkingMode.Combo:
                if (E.Ready)
                {
                    Combo.E(args);
                }

                if (R.Ready)
                {
                    Combo.R(args);
                }
                break;

            case OrbwalkingMode.LaneClear:
                if (Q.Ready)
                {
                    Laneclear.Q(args);
                }

                if (W.Ready)
                {
                    Laneclear.W(args);
                }
                break;

            case OrbwalkingMode.Harass:
                if (Q.Ready)
                {
                    Harass.Q(args);
                    Harass.ExtendedQ(args);
                }

                if (W.Ready)
                {
                    Harass.W(args);
                }
                break;
            }
        }