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


C# Common.Dash类代码示例

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


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

示例1: OnDash

        private static void OnDash(Obj_AI_Base sender, Dash.DashItem args)
        {
            var target = TargetSelector.GetTarget(spells[Spells.E].Range, TargetSelector.DamageType.Magical);
            if (!target.IsValidTarget())
            {
                return;
            }

            if (sender.IsMe && Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                SendTime = TickCount;

                //test

                if (IsListActive("Combo.Prio").SelectedIndex == 0 && spells[Spells.E].IsReady())
                {
                    spells[Spells.E].Cast(target);
                    Console.WriteLine("E Ondash cast");
                }

                if (IsListActive("Combo.Prio").SelectedIndex == 1 && spells[Spells.Q].IsReady()
                    && Player.Distance(target) < spells[Spells.Q].Range + 50)
                {
                    spells[Spells.Q].Cast();
                    Console.WriteLine("Q Ondash cast");
                }

                if (Vector3.Distance(Player.ServerPosition, target.ServerPosition) < spells[Spells.W].Range)
                {
                    UseHydra();
                }
            }
        }
开发者ID:JamesChaplin,项目名称:ElBundle,代码行数:33,代码来源:Rengar.cs

示例2: Ondash

 private static void Ondash(Obj_AI_Base sender, Dash.DashItem args)
 {
     if (sender.IsMe)
     {
         passive = true;
     }
 }
开发者ID:Faqer,项目名称:LeagueSharp-3,代码行数:7,代码来源:Lucian.cs

示例3: Unit_OnDash

 private void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
 {
     if (sender.IsEnemy && sender is Obj_AI_Hero && config.Item("OnDash", true).GetValue<bool>() && E.IsReady() &&
         args.EndPos.Distance(player.Position) < E.Range)
     {
         CastE((Obj_AI_Hero) sender);
     }
 }
开发者ID:koolkaracter,项目名称:LeagueSharp,代码行数:8,代码来源:Veigar.cs

示例4: OnDash

 protected override void OnDash(Obj_AI_Base sender, Dash.DashItem args)
 {
     if (sender.IsMe)
     {
         DashEnd = args.EndPos.To3D();
         DashTime = myUtility.TickCount;
     }
 }
开发者ID:Shpaamyi,项目名称:LeagueSharp,代码行数:8,代码来源:Alistar.cs

示例5: Unit_OnDash

 private void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
 {
     if (sender.IsEnemy && config.Item("useegc", true).GetValue<bool>() && sender is Obj_AI_Hero &&
         args.EndPos.Distance(player.Position) < E.Range && E.CanCast(sender))
     {
         Utility.DelayAction.Add(args.Duration, () => { E.Cast(args.EndPos); });
     }
 }
开发者ID:koolkaracter,项目名称:LeagueSharp,代码行数:8,代码来源:Gragas.cs

示例6: Ondash

 private static void Ondash(Obj_AI_Base sender, Dash.DashItem args)
 {
     if (sender.IsMe || sender.IsAlly) return;
     var endpos = args.EndPos;
     if (endpos.Distance(Player) < 300)
     {
         Q.Cast(endpos.Extend(Player.ServerPosition.To2D(), Q.Range));
     }
 }
开发者ID:Faqer,项目名称:LeagueSharp-3,代码行数:9,代码来源:Kindred.cs

示例7: Unit_OnDash

        static void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
        {
            var target = TargetSelector.GetTarget(E.Range * 2, DamageType.Magical);
            var PacketCast = getCheckBoxItem(SkyLv_Taric.Misc, "Taric.UsePacketCast");

            var td = sender as AIHeroClient;

            if (!td.IsEnemy || td == null || Player.IsRecalling())
            {
                return;
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                if (sender.NetworkId == target.NetworkId)
                {
                    if (getCheckBoxItem(SkyLv_Taric.Combo, "Taric.EOnDashendPosition") && E.IsReady() && Player.LSDistance(args.EndPos) < E.Range)
                    {
                        var delay = (int)(args.EndTick - Game.Time - E.Delay - 0.1f);
                        if (delay > 0)
                        {
                            LeagueSharp.Common.Utility.DelayAction.Add(delay * 1000, () => E.Cast(args.EndPos, PacketCast));
                        }
                        else
                        {
                            E.Cast(args.EndPos, PacketCast);
                        }
                    }
                }

                if (getCheckBoxItem(SkyLv_Taric.Combo, "Taric.UseEFromAlly") && E.IsReady() && Player.Mana >= E.ManaCost)
                {
                    foreach (var AllyHero in ObjectManager.Get<AIHeroClient>().Where(a => !a.IsMe && a.IsDead && a.Team == ObjectManager.Player.Team && Player.LSDistance(a) < 1600 && (a.HasBuff("TaricWAllyBuff") || a.HasBuff("TaricW"))))
                    {
                        var Allytarget = ObjectManager.Get<AIHeroClient>().Where(t => !t.IsDead && t.Team != ObjectManager.Player.Team && AllyHero.LSDistance(args.EndPos) < E.Range).FirstOrDefault();

                        if (sender.NetworkId == Allytarget.NetworkId)
                        {
                            if (getCheckBoxItem(SkyLv_Taric.Combo, AllyHero.NetworkId + "TargetDashEPEComboFromAlly"))
                            {
                                var delay = (int)(args.EndTick - Game.Time - E.Delay - 0.1f);
                                if (delay > 0)
                                {
                                    LeagueSharp.Common.Utility.DelayAction.Add(delay * 1000, () => E.Cast(args.EndPos, PacketCast));
                                }
                                else
                                {
                                    E.Cast(args.EndPos, PacketCast);
                                }
                            }
                        }
                    }
                }
            }
        }
开发者ID:yMeliodasNTD,项目名称:PortAIO,代码行数:55,代码来源:CastOnDash.cs

示例8: OnDash

        protected override void OnDash(Obj_AI_Base sender, Dash.DashItem args)
        {
            if (sender.IsMe)
            {
                JumpStart = args.StartPos.To3D();
                JumpEnd = args.EndPos.To3D();
                //JumpTime = myUtility.TickCount;
                JumpTime = args.EndTick;

            }
        }
开发者ID:Shpaamyi,项目名称:LeagueSharp,代码行数:11,代码来源:Thresh.cs

示例9: Unit_OnDash

        /// <summary>
        /// Dash type
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private static void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
        {
            var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);

            if (!sender.IsEnemy)
                return;
            var delay = (int) (args.EndTick - Game.Time - E.Delay - 0.1f);
            if (target == null)
                return;
            if (delay > 0)
                E.Cast(args.EndPos);
        }
开发者ID:Faqer,项目名称:LeagueSharp-3,代码行数:17,代码来源:Ahri.cs

示例10: OnDash

        private void OnDash(Obj_AI_Base sender, Dash.DashItem args)
        {
 	         if (!sender.IsValidTarget())
             {
                  return;
             }

             if (!args.IsBlink && Variables.AssemblyMenu.GetItemValue<bool>("dzaio.champion.diana.extra.dashBlocker")
                        && spells[SpellSlot.E].IsReady() && spells[SpellSlot.E].Range >= ObjectManager.Player.Distance(sender))
             {
                  spells[SpellSlot.E].Cast();
             }
        }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:13,代码来源:Diana.cs

示例11: Unit_OnDash

 private void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
 {
     if (sender.Distance(player.Position) > Q.Range || !Q.IsReady())
     {
         return;
     }
     if (orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && config.Item("useq", true).GetValue<bool>() &&
         args.EndPos.Distance(player.Position) > Q.Range &&
         args.EndPos.Distance(player) > args.StartPos.Distance(player))
     {
         Q.CastOnUnit(sender, config.Item("packets").GetValue<bool>());
     }
 }
开发者ID:JelloBeans,项目名称:LeagueSharp-1,代码行数:13,代码来源:Jax.cs

示例12: Unit_OnDash

 private static void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
 {
     var caster = sender as AIHeroClient;
     if (caster == null || !caster.IsValid || caster.Team == Player.Team)
     {
         return;
     }
     // riven dash
     if (caster.ChampionName == "Riven" && getCheckBoxItem(evadeMenu, "Riven" + SpellSlot.Q))
     {
         RivenDashTick = Utils.GameTimeTickCount;
         RivenDashEnd = args.EndPos;
     }
 }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:14,代码来源:EvadeOthers.cs

示例13: Unit_OnDash

        private static void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
        {
            if (sender.BadaoIsValidTarget() && sender.IsEnemy && sender is Obj_AI_Hero
                && BadaoPoppyHelper.UseWAutoAntiDash(sender as Obj_AI_Hero))
            {
                if (Geometry.Distance(ObjectManager.Player.Position.To2D(),args.StartPos, args.EndPos,true)
                    <= BadaoMainVariables.W.Range + sender.BoundingRadius
                    || args.StartPos.Distance(ObjectManager.Player.Position.To2D()) <= BadaoMainVariables.W.Range
                    || args.EndPos.Distance(ObjectManager.Player.Position.To2D()) <= BadaoMainVariables.W.Range)
                {
                    BadaoMainVariables.W.Cast();
                }

            }
        }
开发者ID:badao,项目名称:BadaoKingdomTest,代码行数:15,代码来源:BadaoPoppyAuto.cs

示例14: OnDash

        private static void OnDash(Obj_AI_Base sender, Dash.DashItem args)
        {
            var target = TargetSelector.GetTarget(spells[Spells.E].Range, TargetSelector.DamageType.Magical);
            if (!target.IsValidTarget())
            {
                return;
            }

            if (sender.IsMe)
            {
                if (IsListActive("Combo.Prio").SelectedIndex == 0 && spells[Spells.E].IsReady())
                {
                    spells[Spells.E].Cast(target);
                    Console.WriteLine("E Ondash cast");
                }
            }
        }
开发者ID:459896686,项目名称:ElBundle,代码行数:17,代码来源:Rengar.cs

示例15: Unit_OnDash

        private static void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
        {
            var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);
            var qSpell = Menu.Item("useEdashcloser").GetValue<bool>();

            if (!sender.IsEnemy)
            {
                return;
            }

            if (sender.NetworkId == target.NetworkId)
            {
                if (qSpell)
                {

                    if (Q.IsReady()
                        && args.EndPos.Distance(Player) < Q.Range)
                    {
                        var delay = (int)(args.EndTick - Game.Time - Q.Delay - 0.1f);
                        if (delay > 0)
                        {
                            Utility.DelayAction.Add(delay * 1000, () => Q.Cast(args.EndPos));
                        }
                        else
                        {
                            Q.Cast(args.EndPos);
                        }
                        if (Q.IsReady()
                            && args.EndPos.Distance(Player) < Q.Range)
                        {
                            if (delay > 0)
                            {
                                Utility.DelayAction.Add(delay * 1000, () => Q.Cast(args.EndPos));
                            }
                            else
                            {
                                E.Cast(args.EndPos);
                            }
                        }
                    }
                }
            }
        }
开发者ID:Faqer,项目名称:LeagueSharp-3,代码行数:43,代码来源:SorakaModified.cs


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