本文整理汇总了C#中GameObjectIssueOrderEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GameObjectIssueOrderEventArgs类的具体用法?C# GameObjectIssueOrderEventArgs怎么用?C# GameObjectIssueOrderEventArgs使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GameObjectIssueOrderEventArgs类属于命名空间,在下文中一共展示了GameObjectIssueOrderEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Obj_AI_Base_OnIssueOrder
private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
if (sender == null || !sender.IsValid || !sender.IsMe)
{
return;
}
else
{
if (cancelMovt)
{
blockCount++;
if (blockCount == 3)
{
cancelMovt = false;
blockCount = 0;
}
else
args.Process = false;
}
}
//blockCount++;
//if (blockCount == 100)
//{
// cancelMovt = false;
// blockCount = 0;
//}
//else
// packet.Block = true;
}
示例2: OnIssueOrder
internal static void OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
if (sender.IsMe && args.Order == GameObjectOrder.MoveTo)
{
//Console.WriteLine(@"Movement Order issued!");
}
}
示例3: Obj_AI_Base_OnIssueOrder
private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
if (_clone != null && !_override && _menu.Item("CloneOverride").IsActive() &&
sender.NetworkId == _clone.NetworkId)
{
_override = true;
}
}
示例4: OnIssueOrder
private static void OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
//Accidental Cancel
if (sender.IsMe && Logic.Player.HasBuff("katarinarsound") && Utils.TickCount <= whenToCancelR && Config.GetBoolValue("misc.noRCancel"))
{
args.Process = false;
}
}
示例5: Obj_AI_Hero_OnIssueOrder
static void Obj_AI_Hero_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
if (sender.IsMe && args.Order == GameObjectOrder.MoveTo)
{
if (Config.Item("blockmove").GetValue<bool>())
{
args.Process = !Casted;
}
}
}
示例6: OnIssueOrder
private static void OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
if (!sender.IsMe)
return;
if (_blockAttack && args.IsAttackMove)
{
args.Process = false;
}
}
示例7: OnIssueOrder
public static void OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
if (sender == Heroes.Player && args.Order == GameObjectOrder.MoveTo)
{
var nearbyEnemyTurret = args.TargetPosition.GetClosestEnemyTurret();
if (nearbyEnemyTurret != null && nearbyEnemyTurret.Position.CountNearbyAllyMinions(700) <= 2 && nearbyEnemyTurret.Distance(args.TargetPosition) < 800)
{
args.Process = false;
}
}
}
示例8: Obj_AI_Base_OnIssueOrder
private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
if (!OrbwalkLastClickActive)
return;
if (!sender.IsMe)
return;
if (args.Order != GameObjectOrder.MoveTo)
return;
if (!Orbwalking.CanMove(90) || Player.IsCastingInterruptableSpell())
args.Process = false;
}
示例9: Obj_AI_Base_OnIssueOrder
public override void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
if (sender.IsMe)
{
if (E.IsCharging)
{
args.Process = false;
orb.SetMovement(false);
}
}
}
示例10: OnOrder
private static void OnOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
if (!sender.IsMe) return;
if (MenuManager.Get<KeyBind>("global.cancelkey").Active)
{
args.Process = true;
}
else if (Player.HasBuff("KatarinaR") || Player.IsCastingInterruptableSpell())
{
args.Process = false;
}
}
示例11: OnObjAiBaseIssueOrder
private static void OnObjAiBaseIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
try
{
if (Enabled && Orders && sender.IsMe)
{
args.Process = false;
}
}
catch (Exception ex)
{
Global.Logger.AddItem(new LogItem(ex));
}
}
示例12: Obj_AI_Base_OnIssueOrder
private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
if (sender == null || !sender.IsValid || !sender.IsMe || args.Order != GameObjectOrder.MoveTo ||
!Menu.Item("MovementEnabled").GetValue<bool>())
{
return;
}
if (Environment.TickCount - LastMove < Menu.Item("MovementDelay").GetValue<Slider>().Value)
{
args.Process = false;
return;
}
LastMove = Environment.TickCount;
}
示例13: Obj_AI_Base_OnIssueOrder
private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
var senderValid = sender != null && sender.IsValid && sender.IsMe;
if (!senderValid || args.Order != GameObjectOrder.MoveTo || !Menu.Item("MovementEnabled").IsActive())
{
return;
}
if (Utils.TickCount - LastMove < Menu.Item("MovementDelay").GetValue<Slider>().Value)
{
args.Process = false;
return;
}
LastMove = Utils.TickCount;
}
示例14: Obj_AI_Base_OnIssueOrder
//Will work when Jodus implemented it
void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
if (!IsActive() || HeroJungler == null)
return;
if (sender.NetworkId == HeroJungler.NetworkId)
{
if (args.Target.NetworkId == ObjectManager.Player.NetworkId)
{
targeting = true;
}
else
{
targeting = false;
}
}
}
示例15: Obj_AI_Base_OnIssueOrder
private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
{
var senderValid = sender.IsValid() && sender.IsMe;
if (!senderValid || !args.Order.Equals(GameObjectOrder.MoveTo) ||
!Menu.GetValue<MenuBool>("MovementEnabled").Value)
{
return;
}
if (Variables.TickCount - LastMove < Menu.GetValue<MenuSlider>("MovementDelay").Value)
{
args.Process = false;
return;
}
LastMove = Variables.TickCount;
}