本文整理匯總了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();
}