本文整理汇总了C#中LeagueSharp.Common.ActiveGapcloser类的典型用法代码示例。如果您正苦于以下问题:C# ActiveGapcloser类的具体用法?C# ActiveGapcloser怎么用?C# ActiveGapcloser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ActiveGapcloser类属于LeagueSharp.Common命名空间,在下文中一共展示了ActiveGapcloser类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnGapCloser
/// <summary>
/// Fired on an incoming gapcloser.
/// </summary>
/// <param name="args">The <see cref="ActiveGapcloser" /> instance containing the event data.</param>
public static void OnGapCloser(ActiveGapcloser args)
{
if (ObjectManager.Player.IsDead
|| TargetSelector.IsInvulnerable(args.Sender, TargetSelector.DamageType.Magical, false))
{
return;
}
if (Variables.E.IsReady() && ObjectManager.Player.Distance(args.End) < Variables.E.Range - 50f
&& Variables.EMenu.Item("gapcloser").IsActive())
{
Variables.E.Cast(args.End);
}
if (Variables.W.IsReady() && args.Sender.IsValidTarget(Variables.W.Range)
&& Variables.WMenu.Item("gapcloser").IsActive())
{
if (args.Sender.ChampionName.Equals("MasterYi"))
{
Utility.DelayAction.Add(
250,
() => { Variables.W.Cast(ObjectManager.Player.ServerPosition, args.Start); });
return;
}
Variables.W.Cast(
args.End,
args.Sender.IsMelee
? ObjectManager.Player.ServerPosition.Extend(
args.End,
ObjectManager.Player.Distance(args.End) * 2)
: ObjectManager.Player.ServerPosition);
}
}
示例2: OnEnemyGapcloser
public void OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (E.IsReady() && Config.Item("EGapCloser").GetValue<bool>() && gapcloser.Sender.IsValidTarget(E.Range))
{
E.Cast(gapcloser.Sender);
}
}
示例3: AntiGapcloser_OnEnemyGapcloser
private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (MenuProvider.Champion.Misc.UseAntiGapcloser)
if (W.isReadyPerfectly())
if (gapcloser.Sender.IsValidTarget(W.Range))
W.CastOnUnit(gapcloser.Sender);
}
示例4: OnEnemyGapcloser
public override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (E.IsReady() && gapcloser.Sender.IsValidTarget(E.Range))
{
E.Cast(gapcloser.Sender);
}
}
示例5: AntiGapcloser_OnEnemyGapcloser
private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
var target = gapcloser.Sender;
if (target.IsAlly || target.IsMe || !(menu.Item("AntiGapcloser").GetValue<bool>())) return;
if (GetPassiveStacks() == 4)
{
if (Q.IsReady())
{
Q.Cast(gapcloser.Sender, UsePackets());
}
else if (W.IsReady() && W.InRange(gapcloser.Sender.Position))
{
W.Cast(gapcloser.Sender, UsePackets());
}
}
if (GetPassiveStacks() == 3)
{
if (E.IsReady()) E.Cast(UsePackets());
if (GetPassiveStacks() == 4)
{
if (Q.IsReady())
{
Q.Cast(gapcloser.Sender, UsePackets());
}
else if (W.IsReady() && W.InRange(gapcloser.Sender.Position))
{
W.Cast(gapcloser.Sender, UsePackets());
}
}
}
}
示例6: OnEnemyGapcloser
private void OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (config.Item("usewgc", true).GetValue<bool>() && gapcloser.End.Distance(player.Position) < 200)
{
W.Cast();
}
}
示例7: AntiGapcloser_OnEnemyGapcloser
private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (humansexygirl)
{
if (Config.Item("agapcloser").GetValue<bool>())
{
if (gapcloser.Sender.IsValidTarget(1000))
{
Render.Circle.DrawCircle(gapcloser.Sender.Position, gapcloser.Sender.BoundingRadius, Color.Gold, 5);
var targetpos = Drawing.WorldToScreen(gapcloser.Sender.Position);
Drawing.DrawText(targetpos[0] - 40, targetpos[1] + 20, Color.Gold, "Gapcloser");
}
if (E.CanCast(gapcloser.Sender))
{
E.Cast(gapcloser.Sender);
}
}
}
if (spidergirl)
{
if (Config.Item("agapcloser2").GetValue<bool>())
{
if (gapcloser.Sender.IsValidTarget(1000))
{
Render.Circle.DrawCircle(gapcloser.Sender.Position, gapcloser.Sender.BoundingRadius, Color.Gold, 5);
var targetpos = Drawing.WorldToScreen(gapcloser.Sender.Position);
Drawing.DrawText(targetpos[0] - 40, targetpos[1] + 20, Color.Gold, "Gapcloser");
}
if (E.CanCast(gapcloser.Sender))
{
E.Cast(gapcloser.Sender);
}
}
}
}
示例8: AntiGapcloser_OnEnemyGapcloser
private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (!gapcloser.Sender.IsValidTarget(spells[Spells.Q].Range))
{
return;
}
if (gapcloser.Sender.Distance(Player) > spells[Spells.Q].Range)
{
return;
}
var useQ = ElSejuaniMenu.getCheckBoxItem(ElSejuaniMenu.interuptMenu, "ElSejuani.Interupt.Q");
var useR = ElSejuaniMenu.getCheckBoxItem(ElSejuaniMenu.interuptMenu, "ElSejuani.Interupt.R");
if (gapcloser.Sender.IsValidTarget(spells[Spells.Q].Range))
{
if (useQ && spells[Spells.Q].IsReady())
{
spells[Spells.Q].Cast(gapcloser.Sender);
}
if (useR && !spells[Spells.Q].IsReady() && spells[Spells.R].IsReady())
{
spells[Spells.R].Cast(gapcloser.Sender);
}
}
}
示例9: AntiGapcloser_OnEnemyGapcloser
private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (KoreanUtils.GetParamBool(vlady.MainMenu, "antigapcloser") && W.IsReady())
{
W.Cast();
}
}
示例10: AntiGapcloser_OnEnemyGapcloser
private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
var gapCloserActive = ElVladimirMenu._menu.Item("ElVladimir.Settings.AntiGapCloser.Active").GetValue<bool>();
if (gapCloserActive && spells[Spells.W].IsReady() && gapcloser.Sender.Distance(Player) < spells[Spells.W].Range && Player.CountEnemiesInRange(spells[Spells.Q].Range) >= 1)
spells[Spells.W].Cast(Player);
}
示例11: AntiGapcloser_OnEnemyGapcloser
protected override void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (!menu.Item("E_Gap_Closer", true).GetValue<bool>()) return;
if (E.IsReady() && gapcloser.Sender.IsValidTarget(E.Range)&& GetCurrentHeat() < 70)
E.Cast(gapcloser.Sender);
}
示例12: AntiGapcloser_OnEnemyGapcloser
private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (!CConfig.ConfigMenu.Item("AntiGapCloser").GetValue<bool>() || !CSpell.E.CanCast(gapcloser.Sender))
return;
CSpell.E.Cast(gapcloser.Sender);
}
示例13: AntiGapcloser_OnEnemyGapcloser
private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (DashSpell.IsReady() && Config.Item("EGCchampion" + gapcloser.Sender.ChampionName, true).GetValue<bool>())
{
int GapcloserMode = Config.Item("GapcloserMode", true).GetValue<StringList>().SelectedIndex;
if (GapcloserMode == 0)
{
var bestpoint = Player.Position.Extend(Game.CursorPos, DashSpell.Range);
if (IsGoodPosition(bestpoint))
DashSpell.Cast(bestpoint);
}
else
{
var points = OktwCommon.CirclePoints(10, DashSpell.Range, Player.Position);
var bestpoint = Player.Position.Extend(gapcloser.Sender.Position, -DashSpell.Range);
int enemies = bestpoint.CountEnemiesInRange(DashSpell.Range);
foreach (var point in points)
{
int count = point.CountEnemiesInRange(DashSpell.Range);
if (count < enemies)
{
enemies = count;
bestpoint = point;
}
else if (count == enemies && Game.CursorPos.Distance(point) < Game.CursorPos.Distance(bestpoint))
{
enemies = count;
bestpoint = point;
}
}
if (IsGoodPosition(bestpoint))
DashSpell.Cast(bestpoint);
}
}
}
示例14: AntiGapcloser_OnEnemyGapcloser
private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (E.IsReady() && gapcloser.Sender.IsValidTarget(E.Range))
{
E.Cast(gapcloser.Sender);
}
}
示例15: AntiGapcloser_OnEnemyGapcloser
public override void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (gapcloser.End.Distance(ObjectManager.Player.ServerPosition) <= 300)
{
Spells[E].Cast(gapcloser.End.Extend(ObjectManager.Player.ServerPosition, ObjectManager.Player.Distance(gapcloser.End) + Spells[E].Range));
}
}