本文整理汇总了C#中AIHeroClient.LSIsFacing方法的典型用法代码示例。如果您正苦于以下问题:C# AIHeroClient.LSIsFacing方法的具体用法?C# AIHeroClient.LSIsFacing怎么用?C# AIHeroClient.LSIsFacing使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIHeroClient
的用法示例。
在下文中一共展示了AIHeroClient.LSIsFacing方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnInterruptableTarget
static void OnInterruptableTarget(AIHeroClient sender, Interrupter2.InterruptableTargetEventArgs args)
{
if (Player.IsDead)
{
return;
}
if (sender.LSIsValidTarget())
{
if (CassioUtils.getCheckBoxItem(CassiopeiaMenu.Interrupter, "Interrupter.UseR") && Vector3.Distance(sender.ServerPosition, Player.ServerPosition) <= Spells[SpellSlot.R].Range && sender.LSIsFacing(Player))
{
//Spells[SpellSlot.R].SPredictionCast(sender, CassioUtils.GetHitChance("Hitchance.R"));
var pred = Spells[SpellSlot.R].GetPrediction(sender);
if (pred.Hitchance >= HitChance.VeryHigh && sender.LSIsFacing(Player))
{
Spells[SpellSlot.R].Cast(pred.CastPosition);
}
}
}
}
示例2: rpred
public static Vector3 rpred(AIHeroClient Target)
{
var pos = Spells.R.GetVectorSPrediction(Target, -(Player.MoveSpeed - Target.MoveSpeed)).CastTargetPosition;
if (Target != null && !pos.LSIsWall())
{
if (Target.LSIsFacing(Player))
{
if (Target.IsMoving)
{
pos = pos.LSExtend(Player.Position.LSTo2D(), -90);
}
pos = pos.LSExtend(Player.Position.LSTo2D(), -110);
}
if (!Target.LSIsFacing(Player))
{
pos = pos.LSExtend(Player.Position.LSTo2D(), -150);
}
}
return pos.To3D2();
}