• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Common.Interrupter2类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中LeagueSharp.Common.Interrupter2的典型用法代码示例。如果您正苦于以下问题:C# Interrupter2类的具体用法?C# Interrupter2怎么用?C# Interrupter2使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Interrupter2类属于LeagueSharp.Common命名空间,在下文中一共展示了Interrupter2类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: Interrupter2_OnInterruptableTarget

 private void Interrupter2_OnInterruptableTarget(
     Obj_AI_Hero unit,
     Interrupter2.InterruptableTargetEventArgs args)
 {
     if (R.IsReady() && Config.Item("RInterruptable" + Id).GetValue<bool>() && unit.IsValidTarget(1500))
     {
         R.Cast(unit);
     }
 }
开发者ID:firas500,项目名称:Marksman,代码行数:9,代码来源:Ashe.cs


示例17: OnInterruptableTarget

 protected override void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (config.Item("UseEMisc").GetValue<bool>() && E.IsReady() && args.DangerLevel == Interrupter2.DangerLevel.High)
     {
         if (Vector3.Distance(Player.ServerPosition, sender.ServerPosition) <= E.Range && myUtility.PlayerHealthPercentage < (sender.Health * 100 / sender.MaxHealth))
         {
             W.Cast(sender);
         }
     }
 }
开发者ID:Shpaamyi,项目名称:LeagueSharp,代码行数:10,代码来源:Irelia.cs


示例18: OnInterruptableTarget

 private static void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (MenuExtensions.GetItemValue<bool>("dz191.vhr.misc.general.interrupt"))
     {
         if (args.DangerLevel == Interrupter2.DangerLevel.High && sender.IsValidTarget(Variables.spells[SpellSlot.E].Range))
         {
             Variables.spells[SpellSlot.E].Cast(sender);
         }
     }
 }
开发者ID:luizssn,项目名称:LeagueSharp,代码行数:10,代码来源:InterrupterGapcloser.cs


示例19: Interrupter2_OnInterruptableTarget

 private static void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (Variables.AutoEInterrupt.GetValue<bool>() && Player.Mana == 4 && Variables.E.IsReady())
     {
         if (sender.IsValidTarget(Variables.E.Range))
         {
             Helper.CastE(sender);
         }
     }
 }
开发者ID:badao,项目名称:Rengar,代码行数:10,代码来源:Auto.cs


示例20: OnPossibleToInterrupt

        protected override void OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
        {
            if (!sender.IsEnemy || !Q.IsReady() || !config.Item("Use-Interrupt", true).GetValue<bool>())
                return;

            if (args.DangerLevel == Interrupter2.DangerLevel.High && Player.Distance(sender.Position) < Q.Range)
            {
                CastQ(sender);
            }
        }
开发者ID:fgpmaia123,项目名称:KaiserSharp,代码行数:10,代码来源:Morgana.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Items.Item类代码示例发布时间:2022-05-26
下一篇:
C# Common.InterruptableSpell类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap