當前位置: 首頁>>代碼示例>>C#>>正文


C# AIHeroClient.GetAutoAttackRange方法代碼示例

本文整理匯總了C#中AIHeroClient.GetAutoAttackRange方法的典型用法代碼示例。如果您正苦於以下問題:C# AIHeroClient.GetAutoAttackRange方法的具體用法?C# AIHeroClient.GetAutoAttackRange怎麽用?C# AIHeroClient.GetAutoAttackRange使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在AIHeroClient的用法示例。


在下文中一共展示了AIHeroClient.GetAutoAttackRange方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Gapcloser_OnGapCloser

        private static void Gapcloser_OnGapCloser(AIHeroClient sender, EloBuddy.SDK.Events.Gapcloser.GapcloserEventArgs e)
        {
            if (sender == null || sender.IsAlly) return;

            if ((e.End.Distance(Variables._Player) <= sender.GetAutoAttackRange()) && Manager.MenuManager.GapcloseE && Manager.SpellManager.E.IsReady())
            {
                Manager.SpellManager.E.Cast(sender);
            }

            if ((e.End.Distance(Variables._Player) <= sender.GetAutoAttackRange()) && Manager.MenuManager.GapcloseQ && Manager.SpellManager.Q.IsReady())
            {
                var QPos = sender.Position.Extend(Variables._Player.Position, Manager.SpellManager.Q.Range);
                Player.CastSpell(SpellSlot.Q, QPos.To3D());
            }
        }
開發者ID:Kysamaa,項目名稱:EloBuddy,代碼行數:15,代碼來源:Gapcloser.cs

示例2: Gapcloser_OnGapCloser

 public static void Gapcloser_OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs gapcloser)
 {
     string[] herogapcloser =
     {
         "Braum", "Ekko", "Elise", "Fiora", "Kindred", "Lucian", "Yi", "Nidalee", "Quinn", "Riven", "Shaco", "Sion", "Vayne", "Yasuo", "Graves", "Azir", "Gnar", "Irelia", "Kalista"
     };
     if (Config.Modes.Misc.EGapClos && sender.IsEnemy && sender.GetAutoAttackRange() >= ObjectManager.Player.Distance(gapcloser.End) && !herogapcloser.Any(sender.ChampionName.Contains))
     {
         var diffGapCloser = gapcloser.End - gapcloser.Start;
         SpellManager.E.Cast(ObjectManager.Player.ServerPosition + diffGapCloser);
     }
 }
開發者ID:giaanthunder,項目名稱:EloBuddy,代碼行數:12,代碼來源:GameEvent.cs

示例3: Gapcloser_OnGapCloser

 internal static void Gapcloser_OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs gapcloser)
 {
     if (Program.ModesMenu3["AntiGapW"].Cast<CheckBox>().CurrentValue)
     {
         string[] herogapcloser =
         {
         "Braum", "Ekko", "Elise", "Fiora", "Kindred", "Lucian", "Yi", "Nidalee", "Quinn", "Riven", "Shaco", "Sion", "Vayne", "Yasuo", "Graves", "Azir", "Gnar", "Irelia", "Kalista"
         };
         if (sender.IsEnemy && sender.GetAutoAttackRange() >= ObjectManager.Player.Distance(gapcloser.End) && !herogapcloser.Any(sender.ChampionName.Contains))
         {
             var diffGapCloser = gapcloser.End - gapcloser.Start;
             W.Cast(ObjectManager.Player.ServerPosition + diffGapCloser);
         }
     }
     if (Program.ModesMenu3["AntiGapR"].Cast<CheckBox>().CurrentValue)
     {
         if (gapcloser.End.Distance(ObjectManager.Player.Position) <= 200 && gapcloser.Sender.IsValidTarget(R.Range))
                 R.Cast(gapcloser.Sender);
     }
 }
開發者ID:,項目名稱:,代碼行數:20,代碼來源:

示例4: Gapcloser_OnGapcloser

 private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
 {
     if (sender.IsValidTarget() && sender.IsEnemy)
     {
         if (Util.MyHero.Distance(e.Start, true) < Util.MyHero.Distance(e.SenderMousePos, true))
         {
             if (MenuManager.Menu.GetCheckBoxValue("W.Spells"))
             {
                 SpellManager.CastW(sender);
             }
         }
         else
         {
             if (Util.MyHero.Distance(e.SenderMousePos, true) < (sender.GetAutoAttackRange(Util.MyHero) * 1.5f).Pow())
             {
                 ShouldWaitTime = Core.GameTickCount;
             }
             if (MenuManager.Menu.GetCheckBoxValue("E.Antigapcloser") && MenuManager.AntiGapcloserMenu != null && MenuManager.AntiGapcloserHashSet.Contains(sender.ChampionName + e.Slot) && MenuManager.AntiGapcloserMenu.GetCheckBoxValue(sender.ChampionName + e.Slot))
             {
                 SpellManager.E.Cast(e.End);
             }
         }
     }
 }
開發者ID:mezer123,項目名稱:EloBuddy,代碼行數:24,代碼來源:Champion.cs

示例5: Gapcloser_OnGapcloser

 private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
 {
     if (sender.IsValidTarget() && sender.IsEnemy)
     {
         if (Util.MyHero.Distance(e.Start, true) < Util.MyHero.Distance(e.SenderMousePos, true))
         {
             if (MenuManager.GetSubMenu("Automatic").CheckBox("W.Spells"))
             {
                 SpellManager.CastW(sender);
             }
         }
         else
         {
             if (Util.MyHero.Distance(e.SenderMousePos, true) < (sender.GetAutoAttackRange(Util.MyHero) * 1.5f).Pow())
             {
                 ShouldWaitTime = Core.GameTickCount;
             }
             if (MenuManager.GetSubMenu("Automatic").CheckBox("E.Antigapcloser"))
             {
                 SpellManager.E.Cast(e.End);
             }
         }
     }
 }
開發者ID:jachicao,項目名稱:EloBuddy,代碼行數:24,代碼來源:Champion.cs


注:本文中的AIHeroClient.GetAutoAttackRange方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。