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


C# Gapcloser类代码示例

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

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

示例3: OnGapcloser

 private static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs args)
 {
     if (sender.IsValidTarget() && Settings.UseQOnGapcloser && sender.IsTargetable)
     {
         SpellManager.Q.Cast(args.End);
     }
 }
开发者ID:Enochen,项目名称:EloBuddy,代码行数:7,代码来源:ModeManager.cs

示例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);
                    }
                }
            }
        }
开发者ID:KoalaHuman,项目名称:EloBuddy-4,代码行数:31,代码来源:Events.cs

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

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

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

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

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

示例10: Gapcloser_OnGapcloser

 private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
 {
     if (MenuManager.MiscMenu.GetCheckBoxValue("Gapcloser"))
     {
         SpellManager.CastE(sender);
     }
 }
开发者ID:Real263,项目名称:EloBuddy,代码行数:7,代码来源:Champion.cs

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

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

示例13: Gapcloser_OnGapcloser

        private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
        {
            if (sender.IsValidTarget() && sender.IsEnemy)
            {

            }
        }
开发者ID:mezer123,项目名称:EloBuddy,代码行数:7,代码来源:Champion.cs

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

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


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