本文整理汇总了C#中LeagueSharp.Common.ActiveGapcloser类的典型用法代码示例。如果您正苦于以下问题:C# ActiveGapcloser类的具体用法?C# ActiveGapcloser怎么用?C# ActiveGapcloser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ActiveGapcloser类属于LeagueSharp.Common命名空间,在下文中一共展示了ActiveGapcloser类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
}
开发者ID:nabbhacker,项目名称:ExoryREPO,代码行数:38,代码来源:Taliyah.cs
示例2: OnEnemyGapcloser
public void OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (E.IsReady() && Config.Item("EGapCloser").GetValue<bool>() && gapcloser.Sender.IsValidTarget(E.Range))
{
E.Cast(gapcloser.Sender);
}
}
开发者ID:Deprive,项目名称:Private,代码行数:7,代码来源:Draven.cs
示例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);
}
开发者ID:zezzy,项目名称:LeagueSharp-1,代码行数:7,代码来源:Ryze.cs
示例4: OnEnemyGapcloser
public override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (E.IsReady() && gapcloser.Sender.IsValidTarget(E.Range))
{
E.Cast(gapcloser.Sender);
}
}
开发者ID:nongnoobjung,项目名称:Experimental,代码行数:7,代码来源:Draven.cs
示例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());
}
}
}
}
开发者ID:guskate,项目名称:LeagueSharp,代码行数:31,代码来源:Program.cs
示例6: OnEnemyGapcloser
private void OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (config.Item("usewgc", true).GetValue<bool>() && gapcloser.End.Distance(player.Position) < 200)
{
W.Cast();
}
}
开发者ID:koolkaracter,项目名称:LeagueSharp,代码行数:7,代码来源:Gragas.cs
示例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);
}
}
}
}
开发者ID:pinpolhoxx,项目名称:LeagueSharp,代码行数:35,代码来源:Program.cs
示例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);
}
}
}
开发者ID:Xelamats,项目名称:PortAIO,代码行数:28,代码来源:Sejuani.cs
示例9: AntiGapcloser_OnEnemyGapcloser
private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (KoreanUtils.GetParamBool(vlady.MainMenu, "antigapcloser") && W.IsReady())
{
W.Cast();
}
}
开发者ID:47110572,项目名称:LeagueSharp-9,代码行数:7,代码来源:FuckinAntiGapCloser.cs
示例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);
}
开发者ID:Justyyy,项目名称:ElBundle,代码行数:7,代码来源:Vladimir.cs
示例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);
}
开发者ID:werdbrian,项目名称:LSharp,代码行数:7,代码来源:Rumble.cs
示例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);
}
开发者ID:qq2128969,项目名称:L-Assemblies,代码行数:7,代码来源:Program.cs
示例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);
}
}
}
开发者ID:qq2128969,项目名称:LeagueRepo,代码行数:35,代码来源:OKTWdash.cs
示例14: AntiGapcloser_OnEnemyGapcloser
private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (E.IsReady() && gapcloser.Sender.IsValidTarget(E.Range))
{
E.Cast(gapcloser.Sender);
}
}
开发者ID:tuandaica225,项目名称:LeagueRepo,代码行数:7,代码来源:Draven.cs
示例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));
}
}
开发者ID:mirinsharp,项目名称:Leaguesharp,代码行数:7,代码来源:Ezreal.cs
示例16: AntiGapcloser_OnEnemyGapcloser
static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (!Config.GapcloseE)
return;
var awayPosition = gapcloser.End.Extend(ObjectManager.Player.ServerPosition, ObjectManager.Player.Distance(gapcloser.End) + SpellManager.E.Range);
SpellManager.E.Cast(awayPosition);
}
开发者ID:cvbncvbn,项目名称:LeagueSharp,代码行数:7,代码来源:Program.cs
示例17: AntiGapcloser_OnEnemyGapcloser
private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (_w.IsReady() && gapcloser.Sender.IsValidTarget(_w.Range) && _config.Item("Gap_W").GetValue<bool>())
{
_w.Cast();
}
}
开发者ID:diabaths,项目名称:Mycodes,代码行数:7,代码来源:Program.cs
示例18: AntiGapcloser_OnEnemyGapcloser
private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
var target = gapcloser.Sender;
if (E.IsReady() && target.IsValidTarget(E.Range) && Config.Item("gapE", true).GetValue<bool>() && Config.Item("gap" + target.ChampionName).GetValue<bool>())
E.Cast(target);
}
开发者ID:qq2128969,项目名称:LeagueRepo,代码行数:7,代码来源:Vayne.cs
示例19: AntiGapcloser_OnEnemyGapcloser
private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (Q.IsReady() && gapcloser.Sender.IsValidTarget(400) && Config.Item("antigap").GetValue<bool>())
{
Q.SPredictionCast(gapcloser.Sender, (HitChance)Config.Item("qhit").GetValue<Slider>().Value + 1);
}
}
开发者ID:47110572,项目名称:LeagueSharp-7,代码行数:7,代码来源:Program.cs
示例20: AntiGapcloser_OnEnemyGapcloser
static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
{
if (gapcloser.Sender.IsAlly || !GetValueMenuBool("GC.W")) return;
if (W.IsReady() && W.IsInRange(gapcloser.Sender))
W.CastOnUnit(gapcloser.Sender);
}
开发者ID:ngothaison,项目名称:LeagueSharp,代码行数:7,代码来源:Nasus.cs
注:本文中的LeagueSharp.Common.ActiveGapcloser类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论