本文整理汇总了C#中Gapcloser类的典型用法代码示例。如果您正苦于以下问题:C# Gapcloser类的具体用法?C# Gapcloser怎么用?C# Gapcloser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Gapcloser类属于命名空间,在下文中一共展示了Gapcloser类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Gapcloser_OnGapCloser
public static void Gapcloser_OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
{
if (sender.IsEnemy && e.End.Distance(_Player) < 200)
{
Program.Spells[SpellSlot.E].Cast(e.End);
}
}
示例2: Gapcloser_OnGapcloser
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
{
if (sender.IsEnemy && sender.IsValidTarget(E.Range) && sender != null && e != null)
{
E.Cast(Player.Instance.Position.Shorten(sender.Position, E.Range));
}
}
示例3: OnGapcloser
private static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs args)
{
if (sender.IsValidTarget() && Settings.UseQOnGapcloser && sender.IsTargetable)
{
SpellManager.Q.Cast(args.End);
}
}
示例4: OnGapCloser
public static void OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
{
var playerPosition = ObjectManager.Player.Position.To2D();
var direction1 = (ObjectManager.Player.ServerPosition - sender.ServerPosition).To2D().Normalized();
const int distance = 475;
const int stepSize = 20;
if (!Spells.E.IsReady() ||
!(Init.MiscMenu["gapcloser"].Cast<CheckBox>().CurrentValue &&
e.Type == Gapcloser.GapcloserType.Skillshot) ||
!(Init.MiscMenu["gapcloserT"].Cast<CheckBox>().CurrentValue &&
e.Type == Gapcloser.GapcloserType.Targeted) ||
sender.IsAlly || !sender.IsValid())
return;
{
for (var step = 0f; step < 360; step += stepSize)
{
var currentAngel = step * (float)Math.PI / 90;
var currentCheckPoint = playerPosition +
distance * direction1.Rotated(currentAngel);
if (!Helpers.IsSafePosition((Vector3)currentCheckPoint) ||
NavMesh.GetCollisionFlags(currentCheckPoint).HasFlag(CollisionFlags.Wall) ||
NavMesh.GetCollisionFlags(currentCheckPoint).HasFlag(CollisionFlags.Building))
continue;
{
Spells.E.Cast((Vector3)currentCheckPoint);
}
}
}
}
示例5: Execute
public static void Execute(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
{
if (sender.IsAlly || sender.IsDead || sender.IsMe) return;
if (CastCheckbox(LBMenu.AntiGapcloserM, "E"))
{
if (Lib.E.IsReady())
{
var epred = Lib.E.GetPrediction(sender);
if (epred.HitChance >= HitChance.Medium)
{
Lib.E.Cast(epred.CastPosition);
}
}
}
if (CastCheckbox(LBMenu.AntiGapcloserM, "RE"))
{
if (Lib.R.Name == "LeblancSoulShackleM")
{
if (Lib.R.IsReady())
{
var epred = Lib.E.GetPrediction(sender);
if (epred.HitChance >= HitChance.Medium)
{
Lib.R.Cast(epred.CastPosition);
}
}
}
}
}
示例6: OnGapCloser
private static void OnGapCloser(Obj_AI_Base sender, Gapcloser.GapcloserEventArgs args)
{
if (sender.IsEnemy && sender is AIHeroClient && args.End.IsInRange(Player.Instance, W.Range) && W.IsReady())
{
W.Cast(sender);
}
}
示例7: Gapcloser_OnGapCloser
private static void Gapcloser_OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
{
if (!e.Sender.IsValidTarget() || !MiscMenu["Rgap"].Cast<CheckBox>().CurrentValue)
return;
SpellManager.R.Cast(e.Sender);
}
示例8: Gapcloser_OnGapcloser
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
{
if (sender.IsEnemy && sender.IsValidTarget(E.Range) && sender != null && e != null)
{
E.Cast(sender);
}
}
示例9: OnGapCloser
private static void OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs args)
{
if (sender.IsEnemy && sender.IsValidTarget(SpellManager.W.Range) && SpellManager.W.IsReady())
{
SpellManager.W.Cast(sender);
}
}
示例10: Gapcloser_OnGapcloser
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
{
if (MenuManager.MiscMenu.GetCheckBoxValue("Gapcloser"))
{
SpellManager.CastE(sender);
}
}
示例11: OnGapcloser
private static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
{
if (!sender.IsEnemy || sender.IsUnderEnemyturret() ||
!MenuDesigner.MiscUi.Get<CheckBox>("GapW").CurrentValue || !W.IsReady() || !W.IsInRange(e.End)) return;
W.Cast(sender);
}
示例12: GapcloserOnOnGapcloser
private static void GapcloserOnOnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs gapcloserEventArgs)
{
if (!sender.IsEnemy || Player.Instance.IsRecalling())
{
return;
}
if (SettingsMisc.AntigapcloserUseQ && SpellManager.Q.IsReady() && gapcloserEventArgs.End.Distance(Player.Instance) < 200)
{
Debug.WriteChat("AntiGapcloser with Q, Target: {0}, Distance: {1}, GapcloserSpell: {2}", sender.ChampionName, "" + sender.Distance(Player.Instance), gapcloserEventArgs.SpellName);
canAntiGapR = false;
if (gapcloserEventArgs.Type == Gapcloser.GapcloserType.Targeted &&
gapcloserEventArgs.End.Distance(Player.Instance.Position) < 50)
{
SpellManager.Q.Cast(sender);
Core.DelayAction(() => { SpellManager.Q.Cast(sender); }, 1);
Core.DelayAction(() => { canAntiGapR = true; }, 200);
}
else
{
SpellManager.Q.Cast(gapcloserEventArgs.End);
Core.DelayAction(() => { SpellManager.Q.Cast(gapcloserEventArgs.End); }, 1);
Core.DelayAction(() => { canAntiGapR = true; }, 200);
}
return;
}
if (SettingsMisc.AntigapcloserUseR && !SpellManager.R.IsOnCooldown && SpellManager.R.IsInRange(gapcloserEventArgs.End) && canAntiGapR)
{
Debug.WriteChat("AntiGapcloser with R, Target: {0}, Distance: {1}, GapcloserSpell: {2}", sender.ChampionName, "" + sender.Distance(Player.Instance), gapcloserEventArgs.SpellName);
SpellManager.R.Cast();
}
}
示例13: Gapcloser_OnGapcloser
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
{
if (sender.IsValidTarget() && sender.IsEnemy)
{
}
}
示例14: Gapcloser_OnGapCloser
public static void Gapcloser_OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
{
if (e.End.Distance(_Player) < 200 && sender.IsValidTarget())
{
Program.E.Cast(sender);
}
}
示例15: AntiGapCloser
private static void AntiGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs gapcloser)
{
if(gapcloser.End.Distance(_Player.ServerPosition) <= 300)
{
Q.Cast(gapcloser.End.Extend(_Player.Position,_Player.Distance(gapcloser.End) + Q.Range).To3D());
}
}