本文整理汇总了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());
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
}
}
示例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);
}
}
}
}