本文整理汇总了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();
}
}
}
示例2: Ondash
private static void Ondash(Obj_AI_Base sender, Dash.DashItem args)
{
if (sender.IsMe)
{
passive = true;
}
}
示例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);
}
}
示例4: OnDash
protected override void OnDash(Obj_AI_Base sender, Dash.DashItem args)
{
if (sender.IsMe)
{
DashEnd = args.EndPos.To3D();
DashTime = myUtility.TickCount;
}
}
示例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); });
}
}
示例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));
}
}
示例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);
}
}
}
}
}
}
}
示例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;
}
}
示例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);
}
示例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();
}
}
示例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>());
}
}
示例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;
}
}
示例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();
}
}
}
示例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");
}
}
}
示例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);
}
}
}
}
}
}