本文整理汇总了C#中AIHeroClient.IsMelee方法的典型用法代码示例。如果您正苦于以下问题:C# AIHeroClient.IsMelee方法的具体用法?C# AIHeroClient.IsMelee怎么用?C# AIHeroClient.IsMelee使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIHeroClient
的用法示例。
在下文中一共展示了AIHeroClient.IsMelee方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: putWallBehind
public static void putWallBehind(AIHeroClient target)
{
if (!W.IsReady() || !E.IsReady() || target.IsMelee())
return;
Vector2 dashPos = getNextPos(target);
PredictionOutput po = LeagueSharp.Common.Prediction.GetPrediction(target, 0.5f);
float dist = Player.LSDistance(po.UnitPosition);
if (!target.IsMoving || Player.LSDistance(dashPos) <= dist + 40)
if (dist < 330 && dist > 100 && W.IsReady())
{
W.Cast(po.UnitPosition);
}
}
示例2: eBehindWall
public static void eBehindWall(AIHeroClient target)
{
if (!E.IsReady() || !enemyIsJumpable(target) || target.IsMelee())
return;
float dist = Player.LSDistance(target);
var pPos = Player.Position.LSTo2D();
Vector2 dashPos = target.Position.LSTo2D();
if (!target.IsMoving || Player.LSDistance(dashPos) <= dist)
{
foreach (Obj_AI_Base enemy in ObjectManager.Get<Obj_AI_Base>().Where(enemy => enemyIsJumpable(enemy)))
{
Vector2 posAfterE = pPos + (Vector2.Normalize(enemy.Position.LSTo2D() - pPos) * E.Range);
if ((target.LSDistance(posAfterE) < dist
|| target.LSDistance(posAfterE) < Orbwalking.GetRealAutoAttackRange(target) + 100)
&& goesThroughWall(target.Position, posAfterE.To3D()))
{
if (useENormal(target))
return;
}
}
}
}
示例3: putWallBehind
public static void putWallBehind(AIHeroClient target)
{
if (!W.IsReady() || !E.IsReady() || target.IsMelee())
return;
Vector2 dashPos = getNextPos(target);
PredictionOutput po = LeagueSharp.Common.Prediction.GetPrediction(target, 0.5f);
float dist = myHero.LSDistance(po.UnitPosition);
if (!target.IsMoving || myHero.LSDistance(dashPos) <= dist + 40)
if (dist < 330 && dist > 100 && W.IsReady() && getCheckBoxItem(wwMenu, target.NetworkId + ""))
{
W.Cast(po.UnitPosition - 50, true);
}
}