本文整理汇总了C#中LeagueSharp.Common.Dash类的典型用法代码示例。如果您正苦于以下问题:C# Dash类的具体用法?C# Dash怎么用?C# Dash使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Dash类属于LeagueSharp.Common命名空间,在下文中一共展示了Dash类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: Unit_OnDash
internal static void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
{
if (!Config.Item("useeflee").GetValue<bool>())
{
return;
}
var hero = sender as Obj_AI_Hero;
if (hero != null && hero.IsEnemy && hero.Distance(args.EndPos) < KL.Player.Distance(args.EndPos))
{
if (hero.IsValidTarget(KL.Spellbook["E"].Range))
{
if (KL.Spellbook["E"].IsReady())
{
KL.Spellbook["E"].Cast(args.EndPos);
}
}
}
}
开发者ID:Esk0r,项目名称:KurisuSolutions,代码行数:19,代码来源:KurisuDarius.cs
示例17: Unit_OnDash
public static void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
{
if (!sender.IsMe)
return;
if (Variables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo)
return;
var mode = Variables.ComboMode.GetValue<StringList>().SelectedValue;
if (Helper.HasItem())
{
if (args.Duration - 100 - Game.Ping / 2 > 0)
{
Utility.DelayAction.Add((args.EndTick - Environment.TickCount - Game.Ping - 150),() => Helper.CastItem());
}
else
{
Helper.CastItem();
}
}
if (Player.Mana < 4)
{
var targetE = TargetSelector.GetTarget(Variables.E.Range, TargetSelector.DamageType.Physical);
if (Variables.E.IsReady() && targetE.IsValidTarget() && !targetE.IsZombie)
{
Helper.CastE(targetE);
}
}
if (mode == "E")
{
if (Player.Mana == 4)
{
var targetE = TargetSelector.GetTarget(Variables.E.Range, TargetSelector.DamageType.Physical);
if (Variables.E.IsReady() && targetE.IsValidTarget() && !targetE.IsZombie)
{
Helper.CastE(targetE);
}
}
}
//Game.Say("dash");
}
开发者ID:badao,项目名称:Rengar,代码行数:42,代码来源:Combo.cs
示例18: 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.StartPos.Distance(player.Position) < E.Range)
{
E.CastOnUnit(sender, config.Item("packets").GetValue<bool>());
}
if (config.Item("GapCloser", true).GetValue<bool>() && sender.IsEnemy && sender is Obj_AI_Hero &&
args.EndPos.Distance(player.Position) < E.Range && !forcedPos.IsValid())
{
forcedPos = args.StartPos.To3D();
cgTarg = sender;
Utility.DelayAction.Add(
600, () =>
{
forcedPos = Vector3.Zero;
E.CastOnUnit(
HeroManager.Enemies.FirstOrDefault(h => h.NetworkId == sender.NetworkId),
config.Item("packets").GetValue<bool>());
});
}
}
开发者ID:koolkaracter,项目名称:LeagueSharp,代码行数:22,代码来源:Singed.cs
示例19: Unit_OnDash
private static void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
{
#region dash
if (!getCheckBoxItem(miscMenu, "qwd"))
{
return;
}
var useQ = getCheckBoxItem(comboMenu, "UseQMini");
var useQm = getCheckBoxItem(comboMenu, "UseQMega");
var target = TargetSelector.GetTarget(GnarSpells.QMini.Range, DamageType.Magical);
if (!sender.IsEnemy || sender == null)
{
return;
}
if (sender.NetworkId == target.NetworkId
&& Player.IsMiniGnar())
{
if (useQ
&& GnarSpells.QMini.IsReady()
&& args.EndPos.LSDistance(Player) <= GnarSpells.QMini.Range)
{
var delay = (int) (args.EndTick - Game.Time - GnarSpells.QMini.Delay - 0.1f);
if (delay > 0)
{
Utility.DelayAction.Add(delay*1000, () => GnarSpells.QMini.Cast(args.EndPos));
}
else
{
GnarSpells.QMini.Cast(args.EndPos);
}
}
if (sender.NetworkId == target.NetworkId
&& Player.IsMegaGnar())
{
if (useQm
&& GnarSpells.QMini.IsReady()
&& args.EndPos.LSDistance(Player) <= GnarSpells.QMega.Range)
{
var delay = (int) (args.EndTick - Game.Time - GnarSpells.QMega.Delay - 0.1f);
if (delay > 0)
{
Utility.DelayAction.Add(delay*1000, () => GnarSpells.QMega.Cast(args.EndPos));
}
else
{
GnarSpells.QMega.Cast(args.EndPos);
}
}
}
}
}
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:55,代码来源:Gnar.cs
示例20: Dash
public static void Dash(Obj_AI_Base sender, Dash.DashItem args)
{
var useQ = _config.Item("UseQC").GetValue<bool>();
var useW = _config.Item("UseWC").GetValue<bool>();
var useE = _config.Item("UseEC").GetValue<bool>();
var useEE = _config.Item("UseEEC").GetValue<bool>();
var iYoumuu = _config.Item("Youmuu").GetValue<bool>();
var iTiamat = _config.Item("Tiamat").GetValue<bool>();
var iHydra = _config.Item("Hydra").GetValue<bool>();
if (!sender.IsMe) return;
if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
{
if (_player.Mana <= 4)
{
if (useQ)
{
var tq = TargetSelector.GetTarget(_q.Range, TargetSelector.DamageType.Physical);
if (tq.IsValidTarget(_q.Range) && _q.IsReady()) _q.Cast();
}
var th = TargetSelector.GetTarget(_e.Range, TargetSelector.DamageType.Magical);
if (iTiamat && _tiamat.IsReady() && th.IsValidTarget(_tiamat.Range))
{
_tiamat.Cast();
}
if (iHydra && _hydra.IsReady() && th.IsValidTarget(_hydra.Range))
{
_hydra.Cast();
}
if (useE)
{
var te = TargetSelector.GetTarget(_e.Range, TargetSelector.DamageType.Physical);
var predE = _e.GetPrediction(te);
if (te.IsValidTarget(_e.Range) && _e.IsReady()
&& predE.Hitchance >= Echange() && predE.CollisionObjects.Count == 0) _e.Cast(te);
}
}
if (_player.Mana == 5)
{
var tq = TargetSelector.GetTarget(_q.Range, TargetSelector.DamageType.Physical);
if (useQ
&& (_config.Item("ComboPrio").GetValue<StringList>().SelectedIndex == 0
|| (_config.Item("ComboPrio").GetValue<StringList>().SelectedIndex == 2
&& Orbwalking.InAutoAttackRange(tq)))) if (tq.IsValidTarget(_q.Range) && _q.IsReady()) _q.Cast();
var th = TargetSelector.GetTarget(_e.Range, TargetSelector.DamageType.Magical);
if (iTiamat && _tiamat.IsReady() && th.IsValidTarget(_tiamat.Range))
{
_tiamat.Cast();
}
if (iHydra && _hydra.IsReady() && th.IsValidTarget(_hydra.Range))
{
_hydra.Cast();
}
if (useE && _config.Item("ComboPrio").GetValue<StringList>().SelectedIndex == 2)
{
var te = TargetSelector.GetTarget(_e.Range, TargetSelector.DamageType.Physical);
var predE = _e.GetPrediction(te);
if (te.IsValidTarget(_e.Range) && _e.IsReady() && predE.Hitchance >= Echange()
&& predE.CollisionObjects.Count == 0) _e.Cast(te);
}
}
}
}
开发者ID:diabaths,项目名称:Mycodes,代码行数:70,代码来源:Program.cs
注:本文中的LeagueSharp.Common.Dash类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论