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

C# Orbwalker类代码示例

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

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



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

示例1: Orbwalker_OnPreAttack

        public static void Orbwalker_OnPreAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
        {
            /// <summary>
            ///     The Target Forcing Logic.
            /// </summary>
            if (args.Target is AIHeroClient &&
                Vars.GetRealHealth(args.Target as AIHeroClient) >
            GameObjects.Player.GetAutoAttackDamage(args.Target as AIHeroClient) * 3)
            {
                if (GameObjects.EnemyHeroes.Any(
                    t =>
                        t.IsValidTarget(Vars.AARange) &&
                        t.HasBuff("kalistacoopstrikemarkally")))
                {
                    args.Process = false;
                    Orbwalker.ForcedTarget = GameObjects.EnemyHeroes.Where(
                        t =>
                            t.IsValidTarget(Vars.AARange) &&
                            t.HasBuff("kalistacoopstrikemarkally")).OrderByDescending(
                                o =>
                                    Data.Get<ChampionPriorityData>().GetPriority(o.ChampionName)).First();
                    return;
                }

                Orbwalker.ForcedTarget = null;
            }
        }
开发者ID:yMeliodasNTD,项目名称:PortAIO,代码行数:27,代码来源:Kalista.cs


示例2: BeforeAttack

 /// <summary>
 ///     Called Before the orbwalker attacks.
 /// </summary>
 /// <param name="args">The <see cref="Orbwalking.BeforeAttackEventArgs" /> instance containing the event data.</param>
 private void BeforeAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
 {
     if (ShouldGetExecuted())
     {
         args.Process = false;
     }
 }
开发者ID:roaxtreil,项目名称:EBRepo,代码行数:11,代码来源:NoAAStealth.cs


示例3: BeforeAuto

        private static void BeforeAuto(AttackableUnit target, Orbwalker.PreAttackArgs args)
        {
            if (!CassioUtils.getCheckBoxItem(CassiopeiaMenu.Combo, "Combo.Useauto") && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                args.Process = false;
                return;

            }
            if (CassioUtils.getCheckBoxItem(CassiopeiaMenu.Combo, "Combo.Disableautoifspellsready") && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                if (SpellSlot.Q.IsReady() || SpellSlot.W.IsReady() || SpellSlot.E.IsReady() || SpellSlot.R.IsReady())
                {
                    args.Process = false;
                    return;
                }
            }
            if (!CassioUtils.getCheckBoxItem(CassiopeiaMenu.Waveclear, "Waveclear.Useauto") && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                args.Process = false;
                return;
            }
            if (!CassioUtils.getCheckBoxItem(CassiopeiaMenu.Farm, "Farm.Useauto") && (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit)))
            {
                args.Process = false;
                return;
            }


        }
开发者ID:yMeliodasNTD,项目名称:PortAIO,代码行数:29,代码来源:Cassiopeia.cs


示例4: OnAction

        /// <summary>
        ///     Called on orbwalker action.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The <see cref="OrbwalkingActionArgs" /> instance containing the event data.</param>
        public static void OnAction(AttackableUnit target, Orbwalker.PreAttackArgs args)
        {
            if (PortAIO.OrbwalkerManager.isComboActive)
            {
                if (Vars.getCheckBoxItem(Vars.MiscMenu, "noaacombo"))
                {
                    if (Vars.Q.IsReady() ||
                        Vars.W.IsReady() ||
                        Vars.E.IsReady() ||
                        !Bools.HasSheenBuff() ||
                        GameObjects.Player.ManaPercent > 10)
                    {
                        args.Process = false;
                    }
                }
            }

            if (PortAIO.OrbwalkerManager.isHarassActive || PortAIO.OrbwalkerManager.isLastHitActive || PortAIO.OrbwalkerManager.isLaneClearActive)
            {
                if (Vars.getCheckBoxItem(Vars.MiscMenu, "support"))
                {
                    if (args.Target is Obj_AI_Minion &&
                        GameObjects.AllyHeroes.Any(a => a.Distance(GameObjects.Player) < 2500))
                    {
                        args.Process = false;
                    }
                }
            }
        }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:34,代码来源:Ryze.cs


示例5: Unkillable

 internal static void Unkillable(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit) && Config.QSettings.unkillableMinion && SpellManager.Q.IsReady())
     {
         SpellManager.CastQ(false);
     }
 }
开发者ID:denizereer3,项目名称:EloBuddy,代码行数:7,代码来源:LastHit.cs


示例6: Cast

        /// <summary>
        /// Casts E Logic.
        /// </summary>
        /// <param name="target">The target.</param>
        /// <param name="activeMode">The active mode.</param>
        public override void Cast(Obj_AI_Base target, Orbwalker.ActiveModes activeMode)
        {
            if (!ShouldCast())
            {
                _spellCasted = false;
                return;
            }

            if (_spellCasted)
            {
                if (HitChanceCast(E, target, 70)) _spellCasted = false;
            }
            else if (!target.Valid(E.Range))
            {
                return;
            }

            switch (activeMode)
            {
                case Orbwalker.ActiveModes.Combo:
                    if (HitChanceCast(E, target)) _spellCasted = true;
                    break;
                case Orbwalker.ActiveModes.Harass:
                    if (HitChanceCast(E, target)) _spellCasted = true;
                    break;
            }
        }
开发者ID:mrarticuno,项目名称:EBHQ,代码行数:32,代码来源:ELogic.cs


示例7: Orbwalker_OnUnkillableMinion

 private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {/*
     var minion = target as Obj_AI_Minion;
     if (minion != null && minion.IsValidTarget(SpellManager.Q.Range) && Settings.UseQun && Player.Instance.ManaPercent >= Settings.ManaLast)
     {
         SpellManager.Q.Cast(minion);
     }*/
 }
开发者ID:hao1630,项目名称:KickAss,代码行数:8,代码来源:EventsManager.cs


示例8: BeforeAttack

 private static void BeforeAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
 {
     if (Utils.isChecked(MenuX.Misc, "Support") && target.Type == GameObjectType.obj_AI_Minion)
     {
         var allyinrage = EntityManager.Heroes.Allies.Count(x => !x.IsMe && x.Distance(_Player) <= 0x4b0);
         if (allyinrage > 0)
             args.Process = false;
     }
 }
开发者ID:giaanthunder,项目名称:EloBuddy,代码行数:9,代码来源:Brain.cs


示例9: OnPreAttack

        private static void OnPreAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
        {
            if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) return;

            if (Q.IsReady() && target.IsValidTarget(Q.Range) && !target.IsZombie)
            {
                Q.Cast(target.Position);
            }
        }
开发者ID:Enelx,项目名称:EloBuddy,代码行数:9,代码来源:Ryze.cs


示例10: Orbwalker_OnUnkillableMinion

        private void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
        {
            if (Game.CursorPos.GetTumbleEndPos().IsPositionSafe())
            {
                Q.Cast(Game.CursorPos.ExtendPlayerVector(250));
            }

            Orbwalker.OnUnkillableMinion -= Orbwalker_OnUnkillableMinion;
        }
开发者ID:FireBuddy,项目名称:EloBuddy-Addons,代码行数:9,代码来源:LastHit.cs


示例11: ShouldBeExecuted

 public override bool ShouldBeExecuted(Orbwalker.ActiveModes activeModes)
 {
     if (activeModes.HasFlag(Orbwalker.ActiveModes.Combo))
     {
         return true;
     }
     var deadCombo = Instance.GetGlobal<CheckBox>("ComboWhileDead");
     return deadCombo != null && deadCombo.CurrentValue && Instance.IsDead;
 }
开发者ID:Hellsing,项目名称:EloBuddy-Addons,代码行数:9,代码来源:Combo.cs


示例12: Cast

        /// <summary>
        /// Casts W Logic.
        /// </summary>
        /// <param name="target">The target.</param>
        /// <param name="activeMode">The active mode.</param>
        public override void Cast(Orbwalker.ActiveModes activeMode)
        {
            if (!ShouldCast()) return;

            switch (activeMode)
            {
                case Orbwalker.ActiveModes.Combo:
                    if(Player.Instance.HealthPercent <= 25 && EntityManager.Heroes.Enemies.Count(e => !e.IsDead && W.IsInRange(e)) > 0)
                    {
                        if (CastOnAlly())
                        {
                            return;
                        }

                        var firstOrDefault = EntityManager.Heroes.Enemies.FirstOrDefault(e => !e.IsDead && W.IsInRange(e));
                        if (firstOrDefault != null)
                            W.Cast(firstOrDefault.ServerPosition);
                    }
                    if (CastOnAlly()) return;
                    break;
                case Orbwalker.ActiveModes.Harass:
                    if (Player.Instance.HealthPercent <= 20 && EntityManager.Heroes.Enemies.Count(e => !e.IsDead && W.IsInRange(e)) > 0)
                    {
                        if (CastOnAlly())
                        {
                            return;
                        }
                        else
                        {
                            var firstOrDefault = EntityManager.Heroes.Enemies.FirstOrDefault(e => !e.IsDead && W.IsInRange(e));
                            if (firstOrDefault != null)
                                W.Cast(firstOrDefault.ServerPosition);
                        }
                    }
                    if (CastOnAlly()) return;
                    break;
                case Orbwalker.ActiveModes.JungleClear:
                    if (Player.Instance.HealthPercent <= 20)
                    {
                        var firstMonster = EntityManager.MinionsAndMonsters.Monsters.FirstOrDefault(m => m.IsValidTarget(W.Range));
                        if(firstMonster != null)
                            W.Cast(firstMonster);
                    }

                    break;
                case Orbwalker.ActiveModes.LaneClear:
                    if (Player.Instance.HealthPercent <= 20)
                    {
                        var minion = EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(m => m.IsValidTarget(W.Range));
                        if(minion != null)
                            W.Cast(minion);
                    }

                    break;
            }
        }
开发者ID:mrarticuno,项目名称:EBHQ,代码行数:61,代码来源:WLogic.cs


示例13: Orbwalker_OnPreAttack

 internal static void Orbwalker_OnPreAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
 {
     if (!IsNone)
     {
         if (Orbwalker.ForcedTarget != null)
         {
             args.Process = Orbwalker.ForcedTarget.IdEquals(args.Target) && Champion.HasFishBonesActive;
         }
     }
 }
开发者ID:chienhao10,项目名称:Elobuddy-10,代码行数:10,代码来源:ModeManager.cs


示例14: Orbwalker_OnPreAttack

 private static void Orbwalker_OnPreAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
 {
     if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
         return;
     if (Player.Instance.HasBuff("rengarpassivebuff") && !Player.HasBuff("RengarR"))
     {
         args.Process = false;
         BushTargeting();
     }
 }
开发者ID:btr10,项目名称:EloBuddyAddons,代码行数:10,代码来源:Targetting.cs


示例15: Orbwalker_OnUnkillableMinion

 private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     var dmg = Prediction.Health.GetPrediction(target, Spells.Q.CastDelay) - 30 <= target.Health;
     var count = EntityManager.MinionsAndMonsters.GetLaneMinions().Count(m => m.IsEnemy && m.IsInRange(target, 600) && dmg);
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit) && Helpers.GetCheckBoxValue(Helpers.MenuTypes.LastHit, "qLast") && Spells.Q.IsReady() && dmg &&
         target.Health <= Player.Instance.GetAutoAttackDamage(target) && count >= 2)
     {
         Spells.Q.Cast(target);
     }
 }
开发者ID:Casanje,项目名称:ItsMeMario,代码行数:10,代码来源:EventsManager.cs


示例16: Orbwalker_OnPreAttack

        public static void Orbwalker_OnPreAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
        {
            if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) return;

            if (MenuConfig.ComboMode != 1) return;

            if (!MenuConfig.TripleQAAReset) return;

            Spells.Q.Cast();
        }
开发者ID:yMeliodasNTD,项目名称:PortAIO,代码行数:10,代码来源:BeforeAA.cs


示例17: Orbwalker_OnPreAttack

 public static void Orbwalker_OnPreAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
 {
     /// <summary>
     ///     Stop attack commands while channeling E.
     /// </summary>
     if (GameObjects.Player.HasBuff("pantheonesound"))
     {
         args.Process = false;
     }
 }
开发者ID:yMeliodasNTD,项目名称:PortAIO,代码行数:10,代码来源:Pantheon.cs


示例18: Orbwalker_OnPreAttack

 private void Orbwalker_OnPreAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
 {
     if (FocusWBuffedEnemyBool)
     {
         Orbwalker.ForcedTarget =
             ValidTargets.FirstOrDefault(
                 h =>
                 h.Distance(ObjectManager.Player.ServerPosition) < 600
                 && h.HasBuff("kalistacoopstrikemarkally"));
     }
 }
开发者ID:Xelamats,项目名称:PortAIO,代码行数:11,代码来源:Kalista.cs


示例19: UnkillableMinion

 private static void UnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (Config.Modes.Harass.Mana >= Player.Instance.ManaPercent)
         return;
     if (Settings.useQFarm && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
     {
         if (SpellManager.Q.IsReady() && target.IsInRange(Player.Instance, SpellManager.Q.Range))
         {
             SpellManager.Q.Cast(target);
         }
     }
 }
开发者ID:denizereer3,项目名称:EloBuddy,代码行数:12,代码来源:Program.cs


示例20: Orbwalker_OnUnkillableMinion

 private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     var minion = target as Obj_AI_Minion;
     if (minion != null && minion.IsValidTarget(SpellManager.Q.Range) && LastConfig.UseQ &&
         Player.Instance.ManaPercent >= LastConfig.LastMana &&
         Prediction.Health.GetPrediction(minion, SpellManager.Q.CastDelay) > 10 &&
         Prediction.Health.GetPrediction(minion, SpellManager.Q.CastDelay) <
         SpellDamage.GetRealDamage(SpellSlot.Q, minion))
     {
         SpellManager.Q.Cast(minion);
     }
 }
开发者ID:mariogk,项目名称:EB,代码行数:12,代码来源:EventsManager.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# OrbwalkingDelay类代码示例发布时间:2022-05-24
下一篇:
C# Orbit类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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