Example #1
0
 static void AIBaseClientPlayAnimation(GameObject sender, AIBaseClientPlayAnimationEventArgs args)
 {
     if (sender is AIMinionClient)
     {
         WObjectNetworkId = sender.NetworkId;
     }
 }
Example #2
0
 private static void OnPlayAnimation(AIBaseClient sender, AIBaseClientPlayAnimationEventArgs Args)
 {
     try
     {
         if (sender.IsMe)
         {
             if (Args.Animation == "Spell1_Dash")
             {
                 Orbwalker.AttackState = false;
                 DelayAction.Add(300 + (Game.Ping / 2 + 10), () =>
                 {
                     Orbwalker.ResetAutoAttackTimer();
                     Me.IssueOrder(GameObjectOrder.MoveTo, Me.Position.Extend(Game.CursorPosRaw, 50));
                     Orbwalker.AttackState = true;
                 });
             }
             if (Args.Animation == "Spell3")
             {
                 YasuolastETime = Variables.GameTimeTickCount;
                 isYasuoDashing = true;
             }
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine("Error in MyEventManager.OnPlayAnimation." + ex);
     }
 }
Example #3
0
 static void AIMinionClient_OnPlayAnimation(GameObject sender, AIBaseClientPlayAnimationEventArgs args)
 {
     if (sender is AIMinionClient && ((AIMinionClient)sender).IsSoldier())
     {
         Animations[(int)sender.NetworkId] = args.Animation;
     }
 }
Example #4
0
 public static void OnPlayAnimation(AIBaseClient sender, AIBaseClientPlayAnimationEventArgs args)
 {
     if (sender.IsMe && args.Animation == "Spell5")
     {
         Console.WriteLine(args.Animation);
     }
 }
Example #5
0
        private static void OnPlayAnimation(AIBaseClient sender, AIBaseClientPlayAnimationEventArgs Args)
        {
            if (!sender.IsMe || Orbwalker.ActiveMode == OrbwalkerMode.None)
            {
                return;
            }

            if (Args.Animation == "Spell1" || Args.Animation == "Spell2")
            {
                Me.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
            }
        }
Example #6
0
 private void OnPlayAnimation(AIBaseClient sender, AIBaseClientPlayAnimationEventArgs args)
 {
     if (sender.IsMe)
     {
         if (args.Animation.Contains("Attack"))
         {
             if (args.Animation.Contains("Passive"))
             {
                 lastPunch = 2;
             }
             else
             {
                 lastPunch = 1;
             }
             lastPunchTime = Game.Time;
         }
     }
 }
Example #7
0
        private static void OnPlayAnimation(AIBaseClient sender, AIBaseClientPlayAnimationEventArgs Args)
        {
            var riven = sender as AIHeroClient;

            if (riven == null || riven.Team == ObjectManager.Player.Team || riven.CharacterName != "Riven" || !riven.IsValid)
            {
                return;
            }


            if (Menu["Block" + riven.CharacterName.ToLower()]["BlockSpell" + SpellSlot.Q.ToString()] != null &&
                Menu["Block" + riven.CharacterName.ToLower()]["BlockSpell" + SpellSlot.Q.ToString()].GetValue <MenuBool>().Enabled)
            {
                if (Args.Animation.ToLower() == "spell1c")
                {
                    RivenQTime  = (int)(Game.Time * 1000);
                    RivenQRange = riven.HasBuff("RivenFengShuiEngine") ? 225f : 150f;
                }
            }
        }
        private static void AIBaseClient_OnPlayAnimation(
            AIBaseClient sender,
            AIBaseClientPlayAnimationEventArgs args
            )
        {
            if (!sender.IsMe)
            {
                return;
            }

            //Chat.Print(args.Animation);
            if (args.Animation.Contains("1a"))
            {
                //Chat.Print("Cancel Q1");
                //if (Orbwalker.ActiveMode != OrbwalkerMode.None)
                //{
                //Utility.DelayAction.Add(200 - Game.Ping, () => Player.IssueOrder(GameObjectOrder.MoveTo, Player.Position.Extend(Game.CursorPosRaw, Player.Distance(Game.CursorPosRaw) + 10)));
                //Utility.DelayAction.Add(240 - Game.Ping, () => Player.IssueOrder(GameObjectOrder.MoveTo, Player.Position.Extend(Game.CursorPosRaw, Player.Distance(Game.CursorPosRaw) + 10)));
                Utility.DelayAction.Add(280 - Game.Ping, () => Player.IssueOrder(GameObjectOrder.MoveTo, Player.Position.Extend(Game.CursorPosRaw, Player.Distance(Game.CursorPosRaw) + 10)));
                //}
                Qstate = 2;
            }
            else if (args.Animation.Contains("1b"))
            {
                //Chat.Print("Cancel Q2");
                //if (Orbwalker.ActiveMode != OrbwalkerMode.None)
                //Utility.DelayAction.Add(220 - Game.Ping, () => Player.IssueOrder(GameObjectOrder.MoveTo, Player.Position.Extend(Game.CursorPosRaw, Player.Distance(Game.CursorPosRaw) + 10)));
                //Utility.DelayAction.Add(260 - Game.Ping, () => Player.IssueOrder(GameObjectOrder.MoveTo, Player.Position.Extend(Game.CursorPosRaw, Player.Distance(Game.CursorPosRaw) + 10)));
                Utility.DelayAction.Add(300 - Game.Ping, () => Player.IssueOrder(GameObjectOrder.MoveTo, Player.Position.Extend(Game.CursorPosRaw, Player.Distance(Game.CursorPosRaw) + 10)));
                Qstate = 3;
            }
            else if (args.Animation.Contains("1c"))
            {
                //Chat.Print("Cancel Q3");
                //if (Orbwalker.ActiveMode != OrbwalkerMode.None)
                //Utility.DelayAction.Add(300 - Game.Ping, () => Player.IssueOrder(GameObjectOrder.MoveTo, Player.Position.Extend(Game.CursorPosRaw, Player.Distance(Game.CursorPosRaw) + 10)));
                //Utility.DelayAction.Add(340 - Game.Ping, () => Player.IssueOrder(GameObjectOrder.MoveTo, Player.Position.Extend(Game.CursorPosRaw, Player.Distance(Game.CursorPosRaw) + 10)));
                Utility.DelayAction.Add(380 - Game.Ping, () => Player.IssueOrder(GameObjectOrder.MoveTo, Player.Position.Extend(Game.CursorPosRaw, Player.Distance(Game.CursorPosRaw) + 10)));
                Qstate = 1;
            }
        }
Example #9
0
        public static void OnPlay(AIBaseClient sender, AIBaseClientPlayAnimationEventArgs args)
        {
            if (!sender.IsMe)
            {
                return;
            }

            switch (args.Animation)
            {
            case "Spell1a":
                LastQ  = Utils.GameTimeTickCount;
                Qstack = 2;

                if (SafeReset)
                {
                    Utility.DelayAction.Add(MenuConfig.Qd * 10 + ExtraDelay, Reset);
                }
                break;

            case "Spell1b":
                LastQ  = Utils.GameTimeTickCount;
                Qstack = 3;

                if (SafeReset)
                {
                    Utility.DelayAction.Add(MenuConfig.Qd * 10 + ExtraDelay, Reset);
                }
                break;

            case "Spell1c":
                LastQ  = Utils.GameTimeTickCount;
                Qstack = 1;

                if (SafeReset)
                {
                    Utility.DelayAction.Add(MenuConfig.Qld * 10 + ExtraDelay, Reset);
                }
                break;
            }
        }