当前位置: 首页>>代码示例>>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;未经允许,请勿转载。