本文整理汇总了C#中Interrupter类的典型用法代码示例。如果您正苦于以下问题:C# Interrupter类的具体用法?C# Interrupter怎么用?C# Interrupter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Interrupter类属于命名空间,在下文中一共展示了Interrupter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Interrupter_OnInterruptableSpell
private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender,
Interrupter.InterruptableSpellEventArgs e)
{
if (sender.IsValidTarget() && sender.IsEnemy)
{
}
}
示例2: Interrupter_OnInterruptableSpell
private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
{
if (Settings.interruptE && !sender.IsDead && !sender.IsInvulnerable && !sender.IsZombie && sender.IsEnemy && e.DangerLevel >= DangerLevel.Medium && sender.IsInRange(Player.Instance, SpellManager.E.Range) && SpellManager.E.IsReady())
{
SpellManager.E.Cast(sender);
}
}
示例3: Interrupter_OnInterruptableSpell
public static void Interrupter_OnInterruptableSpell(Obj_AI_Base unit, Interrupter.InterruptableSpellEventArgs spell)
{
float getDist = EloBuddy.SDK.Extensions.Distance(_Player, unit) / 2.0f; // formula of swag
if (Program.MiscMenu["interrupt"].Cast<CheckBox>().CurrentValue && Program.W.IsReady() && Program.Q.IsReady() && unit.IsValidTarget(Program.W.Range))
{
if (unit.IsValidTarget(220))
{
Program.W.Cast(unit);
Program.Q.Cast();
}
else
{
Program.W.Cast(unit);
EloBuddy.SDK.Core.DelayAction(() => { Program.Q.Cast(); }, (int)getDist);
}
}
if (Program.MiscMenu["interrupt"].Cast<CheckBox>().CurrentValue && Program.Q.IsReady())
{
if (unit.Distance(_Player.ServerPosition, true) <= Program.Q.Range)
{
Program.Q.Cast(unit);
}
}
if (Program.MiscMenu["interrupt"].Cast<CheckBox>().CurrentValue && Program.W.IsReady())
{
if (unit.Distance(_Player.ServerPosition, true) <= Program.W.Range)
{
Program.W.Cast(unit);
}
}
}
示例4: Interrupter_OnInterruptableSpell
private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
{
if (UltimateMenu["ultimateinterruptt"].Cast<CheckBox>().CurrentValue)
if (sender.IsValidTarget(Program.R.Range))
if (Program.R.IsReady())
Program.R.Cast(sender);
}
示例5: InterruptMode
public static void InterruptMode(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs args)
{
if (!MenuManager.SettingMenu["Interruptmode"].Cast<CheckBox>().CurrentValue) return;
if (sender != null && !sender.IsUnderEnemyturret())
{
if (MenuManager.SettingMenu["EQinterrupt"].Cast<CheckBox>().CurrentValue
&& args.DangerLevel < DangerLevel.High)
{
var target = TargetManager.GetChampionTarget(SpellManager.E.Range, DamageType.Magical);
if (target != null)
{
SpellManager.CastE(target);
if (Orbwalker.CanAutoAttack)
Orbwalker.ForcedTarget = target;
if (!target.HasBuff("leonazenithbladeroot")
&& Champion.IsInAutoAttackRange(target))
{
SpellManager.CastQ(target);
Orbwalker.ResetAutoAttack();
if (Orbwalker.CanAutoAttack)
Player.IssueOrder(GameObjectOrder.AttackTo, target);
}
}
}
if (MenuManager.SettingMenu["Rinterrupt"].Cast<CheckBox>().CurrentValue
&& args.DangerLevel >= DangerLevel.High)
{
var target = TargetManager.GetChampionTarget(SpellManager.E.Range, DamageType.Magical);
if (target != null)
{
SpellManager.CastR(target);
}
}
}
}
示例6: OnInterruptableSpell
private static void OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs args)
{
if (sender.IsValidTarget() && args.DangerLevel > DangerLevel.Medium && Settings.UseQOnInterruptable)
{
SpellManager.Q.Cast(sender);
}
}
示例7: Interrupter_OnInterruptableSpell
private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender,
Interrupter.InterruptableSpellEventArgs e)
{
if (!Menu.Misc.InterruptR || !Spells.R.IsReady() || !sender.IsEnemy || sender.HasBuff("xenzhaointimidate"))
{
return;
}
if (sender.IsValidTarget(Spells.R.Range))
{
Utility.Debug(string.Format("Used R on {0} (OnInterruptableSpell).",
((AIHeroClient) sender).ChampionName));
Spells.R.Cast(sender.Position);
}
else
{
var erManaCost = Spells.E.Handle.SData.Mana + Spells.R.Handle.SData.Mana;
if (Spells.E.IsReady() && sender.IsValidTarget(Spells.E.Range) && Player.Instance.Mana >= erManaCost)
{
Utility.Debug(string.Format("Used E on {0} (OnInterruptableSpell).",
((AIHeroClient) sender).ChampionName));
Spells.E.Cast(sender);
}
}
}
示例8: OnInterruptableSpell
private static void OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs args)
{
if (sender.IsEnemy && args.DangerLevel == DangerLevel.High && Config.Modes.Misc.UseWint && SpellManager.W.IsReady() && SpellManager.W.IsInRange(sender))
{
SpellManager.W.Cast(Player.Instance);
}
}
示例9: Interrupter_OnInterruptableSpell
private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
{
if (sender.IsEnemy && SpellManager.E.IsReady() && e.DangerLevel >= DangerLevel.High && sender.HealthPercent > 0 && Config.ESettings.interruptE && sender.IsInRange(Player.Instance, SpellManager.E.Range))
{
SpellManager.E.Cast(sender);
}
}
示例10: OnInterruptableSpell
public static void OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs args)
{
if (sender.IsEnemy && !sender.IsMinion && args.EndTime > Soraka.E.CastDelay)
{
Soraka.E.Cast(sender);
}
}
示例11: Interrupter_OnInterruptableSpell
private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
{
if (MenuManager.MiscMenu.GetCheckBoxValue("Interrupter"))
{
SpellManager.CastE(sender);
}
}
示例12: Interupt
public static void Interupt(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
{
if (!sender.IsEnemy) return;
if (e.DangerLevel == DangerLevel.High && FiddleTheTrollMeNu.InterupteQ())
{
Q.Cast(sender);
}
}
示例13: OnInterruptableSpell
private static void OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
{
if (!sender.IsEnemy || e.DangerLevel != DangerLevel.High ||
!MenuDesigner.MiscUi.Get<CheckBox>("InterW").CurrentValue || !W.IsReady() || !E.IsInRange(sender))
return;
W.Cast(sender);
}
示例14: Interrupt
public static void Interrupt(Obj_AI_Base sender,
Interrupter.InterruptableSpellEventArgs e)
{
if (e != null && Program.Q3.IsReady() && Variables.Q3READY(Variables._Player) && sender.IsValidTarget(Program.Q3.Range) && MenuManager.MiscMenu["InterruptQ"].Cast<CheckBox>().CurrentValue)
{
Program.Q3.Cast(sender);
}
}
示例15: Interrupt
public static void Interrupt(Obj_AI_Base sender,
Interrupter.InterruptableSpellEventArgs e)
{
if (e != null && Program.Q2.IsReady() && Variables.HaveQ3 && sender.IsValidTarget(Program.Q2.Range) && MenuManager.MiscMenu["InterruptQ"].Cast<CheckBox>().CurrentValue)
{
Program.Q2.Cast(sender.ServerPosition);
}
}