本文整理汇总了C#中LeagueSharp.Common.Interrupter2类的典型用法代码示例。如果您正苦于以下问题:C# Interrupter2类的具体用法?C# Interrupter2怎么用?C# Interrupter2使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Interrupter2类属于LeagueSharp.Common命名空间,在下文中一共展示了Interrupter2类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnPossibleToInterrupt
public override void OnPossibleToInterrupt(Obj_AI_Hero unit, Interrupter2.InterruptableTargetEventArgs spell)
{
if (spell.DangerLevel == Interrupter2.DangerLevel.High && E.IsReady() && E.IsInRange(unit))
{
E.Cast(unit);
}
}
示例2: OnInterruptableTarget
public static void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
{
if (!EntryPoint.Menu.Item("l33t.stds.misc.interrupt").GetValue<bool>())
{
return;
}
if (Spells[SpellSlot.E].IsReady() &&
EntryPoint.Player.Distance(sender, true) <= Math.Pow(Spells[SpellSlot.E].Range, 2) &&
sender.IsValidTarget(Spells[SpellSlot.E].Range))
{
if (Spells[SpellSlot.Q].IsReady())
{
ProcessSphereE(sender);
}
else
{
Spells[SpellSlot.E].Instance.Cast(sender);
}
}
else if (Spells[SpellSlot.Q].IsReady() && Spells[SpellSlot.E].IsReady() &&
EntryPoint.Player.Distance(sender, true) <= Math.Pow(Spells[SpellSlot.SphereE].Range, 2))
{
ProcessSphereE(sender);
}
}
示例3: Interrupter_OnInterruptable
private void Interrupter_OnInterruptable(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
{
if (sender.IsValidTarget() && IsMenuEnabled("Interrupter") && E.IsReady())
{
E.CastIfHitchanceEquals(sender, CustomHitChance, Packets());
}
}
示例4: OnPossibleToInterrupt
public override void OnPossibleToInterrupt(Obj_AI_Hero unit, Interrupter2.InterruptableTargetEventArgs spell)
{
if (E.IsReady() && unit.IsValidTarget(E.Range))
{
E.Cast(unit);
}
}
示例5: Interrupter2_OnInterruptableTarget
private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero unit, Interrupter2.InterruptableTargetEventArgs args)
{
if (E.IsReady() && Config.Item("EInterruptable").GetValue<bool>() && unit.IsValidTarget(E.Range))
{
E.Cast(unit);
}
}
示例6: OnInterruptableTarget
private void OnInterruptableTarget(Obj_AI_Hero target, Interrupter2.InterruptableTargetEventArgs args)
{
if (E.CanCast(target) && config.Item("useEint", true).GetValue<bool>())
{
if (E.CastIfHitchanceEquals(target, HitChance.High, config.Item("packets").GetValue<bool>()))
{
return;
}
}
if (R.CanCast(target) && config.Item("useRint", true).GetValue<bool>())
{
if (savedQ != null && !SimpleQ && !target.IsMoving && target.Distance(qPos) > QExplosionRange &&
target.Distance(player) < R.Range - 100 &&
target.Position.Distance(savedQ.position) < 550 + QExplosionRange / 2 &&
!target.HasBuffOfType(BuffType.Knockback))
{
var cast = Prediction.GetPrediction(target, 1000f).UnitPosition.Extend(savedQ.position, -100);
R.Cast(cast);
}
else if (target.Distance(player) < R.Range - 100)
{
if (player.CountEnemiesInRange(2000) <= player.CountAlliesInRange(2000))
{
var cast = target.Position.Extend(player.Position, -100);
R.Cast(cast);
}
else
{
var cast = target.Position.Extend(player.Position, 100);
R.Cast(cast);
}
}
}
}
示例7: Interrupter2_OnInterruptableTarget
private static void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender,
Interrupter2.InterruptableTargetEventArgs args)
{
if (!Program.Config.Item("EnabledInterrupter").GetValue<bool>() || !sender.IsValidTarget())
{
return;
}
Interrupter2.DangerLevel a;
switch (Program.Config.Item("minChannel").GetValue<StringList>().SelectedValue)
{
case "HIGH":
a = Interrupter2.DangerLevel.High;
break;
case "MEDIUM":
a = Interrupter2.DangerLevel.Medium;
break;
default:
a = Interrupter2.DangerLevel.Low;
break;
}
if (args.DangerLevel == Interrupter2.DangerLevel.High ||
args.DangerLevel == Interrupter2.DangerLevel.Medium && a != Interrupter2.DangerLevel.High ||
args.DangerLevel == Interrupter2.DangerLevel.Medium && a != Interrupter2.DangerLevel.Medium &&
a != Interrupter2.DangerLevel.High)
{
if (Program._spells[Spells.E].IsReady() && sender.IsValidTarget(Program._spells[Spells.E].Range))
{
Program._spells[Spells.E].Cast(sender);
}
}
}
示例8: Interrupter2_OnInterruptableTarget
private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
{
if (E.IsReady() && sender.IsValidTarget(E.Range))
{
E.Cast(sender);
}
}
示例9: Interrupter2_OnInterruptableTarget
private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
{
if (E.IsReady() && Config.Item("inter", true).GetValue<bool>() && sender.IsValidTarget(E.Range))
{
E.Cast(sender.ServerPosition);
}
}
示例10: OnPossibleToInterrupt
public static void OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
{
if (Program.E.IsReady() && args.DangerLevel == Interrupter2.DangerLevel.High && sender.IsValidTarget(700))
{
Program.E.Cast(Program.E.GetPrediction(sender).UnitPosition);
}
}
示例11: OnInterruptableTarget
private void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
{
if (config.Item("useEint", true).GetValue<bool>() && E.IsReady() && E.CanCast(sender))
{
E.CastOnUnit(sender, config.Item("packets").GetValue<bool>());
}
}
示例12: OnPossibleToInterrupt
public static void OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
{
if (args.DangerLevel == Interrupter2.DangerLevel.High && Program.E.IsReady() && Program.E.IsInRange(sender))
{
Program.E.Cast(sender);
}
}
示例13: Interrupter2_OnInterruptableTarget
private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender,
Interrupter2.InterruptableTargetEventArgs args)
{
if (config.Item("Interrupt").GetValue<bool>() && R.CanCast(sender))
{
R.CastOnUnit(sender);
}
}
示例14: Interrupter2_OnInterruptableTarget
private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender,
Interrupter2.InterruptableTargetEventArgs args)
{
if (R.IsReady() && config.Item("Interrupt", true).GetValue<bool>() && sender.Distance(player) < R.Range)
{
CastR();
}
}
示例15: Interrupter2_OnInterruptableTarget
private static void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender,
Interrupter2.InterruptableTargetEventArgs args)
{
if (!CConfig.ConfigMenu.Item("InterruptSpells").GetValue<bool>() || !CSpell.E.CanCast(sender) ||
args.DangerLevel != Interrupter2.DangerLevel.High)
return;
CSpell.E.Cast(sender);
}