当前位置: 首页>>代码示例>>C#>>正文


C# Common.Interrupter2类代码示例

本文整理汇总了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);
     }
 }
开发者ID:ChewyMoon,项目名称:Experimental,代码行数:7,代码来源:Vayne.cs

示例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);
            }
        }
开发者ID:trigopano,项目名称:LeagueSharp,代码行数:26,代码来源:Mechanics.cs

示例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());
     }
 }
开发者ID:luizssn,项目名称:LeagueSharp,代码行数:7,代码来源:PennyJinx.cs

示例4: OnPossibleToInterrupt

 public override void OnPossibleToInterrupt(Obj_AI_Hero unit, Interrupter2.InterruptableTargetEventArgs spell)
 {
     if (E.IsReady() && unit.IsValidTarget(E.Range))
     {
         E.Cast(unit);
     }
 }
开发者ID:ChewyMoon,项目名称:Experimental,代码行数:7,代码来源:Draven.cs

示例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);
     }
 }
开发者ID:Deprive,项目名称:Private,代码行数:7,代码来源:Draven.cs

示例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);
             }
         }
     }
 }
开发者ID:koolkaracter,项目名称:LeagueSharp,代码行数:34,代码来源:Gragas.cs

示例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);
                }
            }
        }
开发者ID:ramonstro2323,项目名称:FARepo,代码行数:32,代码来源:AntiSpells.cs

示例8: Interrupter2_OnInterruptableTarget

 private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (E.IsReady() && sender.IsValidTarget(E.Range))
     {
         E.Cast(sender);
     }
 }
开发者ID:MrWenzoxfs,项目名称:elobuddy,代码行数:7,代码来源:Draven.cs

示例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);
     }
 }
开发者ID:MrWenzoxfs,项目名称:elobuddy,代码行数:7,代码来源:Thresh.cs

示例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);
     }
 }
开发者ID:q51251,项目名称:LeagueSharp-1,代码行数:7,代码来源:Interrupter.cs

示例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>());
     }
 }
开发者ID:koolkaracter,项目名称:LeagueSharp,代码行数:7,代码来源:Poppy.cs

示例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);
     }
 }
开发者ID:654955321,项目名称:HY_Recommend,代码行数:7,代码来源:Interrupter.cs

示例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);
     }
 }
开发者ID:koolkaracter,项目名称:LeagueSharp,代码行数:8,代码来源:Skarner.cs

示例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();
     }
 }
开发者ID:koolkaracter,项目名称:LeagueSharp,代码行数:8,代码来源:Galio.cs

示例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);
        }
开发者ID:qq2128969,项目名称:L-Assemblies,代码行数:9,代码来源:Program.cs


注:本文中的LeagueSharp.Common.Interrupter2类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。