本文整理汇总了C#中GameObjectPlayAnimationEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GameObjectPlayAnimationEventArgs类的具体用法?C# GameObjectPlayAnimationEventArgs怎么用?C# GameObjectPlayAnimationEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GameObjectPlayAnimationEventArgs类属于命名空间,在下文中一共展示了GameObjectPlayAnimationEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnAnimation
private void OnAnimation(GameObject sender, GameObjectPlayAnimationEventArgs args)
{
if(Orbwalking.OrbwalkingMode.Combo != Program.Orbwalker.ActiveMode ||
!Program.Menu.Item("use_UC").GetValue<bool>())
return;
if(!sender.IsMe)
return;
if(args.Animation == "Spell1a")
{
QStage = 1;
if(Program.Menu.Item("QLaugh").GetValue<bool>())
Game.Say("/l");
else if(Program.Menu.Item("CancleQAnimation").GetValue<bool>())
Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(Game.CursorPos.X, Game.CursorPos.Y)).Send();
}
if(args.Animation == "Spell1b")
{
QStage = 2;
if(Program.Menu.Item("QLaugh").GetValue<bool>())
Game.Say("/l");
else if(Program.Menu.Item("CancleQAnimation").GetValue<bool>())
Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(Game.CursorPos.X, Game.CursorPos.Y)).Send();
}
if(args.Animation != "Spell1c")
return;
QStage = 0;
if(Program.Menu.Item("QLaugh").GetValue<bool>())
Game.Say("/l");
else if(Program.Menu.Item("CancleQAnimation").GetValue<bool>())
Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(Game.CursorPos.X, Game.CursorPos.Y)).Send();
}
示例2: OnAnimation
private static void OnAnimation(GameObject sender, GameObjectPlayAnimationEventArgs args)
{
if (sender.IsMe && (args.Animation == "Run" || args.Animation == "Idle") && Orbwalking.CanMove(0) == false)
{
Orbwalking.ResetAutoAttackTimer();
}
}
示例3: OnPlay
public static void OnPlay(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs args)
{
if (!sender.IsMe) return;
var t = 0;
var a = 0;
var b = "";
switch (args.Animation) // Logic from Fluxy
{
case "Spell1a":
lastQ = Utils.GameTimeTickCount;
t = 291;
Qstack = 2;
b = "Q2";
a = t - MenuConfig.Qld - (Game.Ping - MenuConfig.Qd);
break;
case "Spell1b":
lastQ = Utils.GameTimeTickCount;
t = 290;
Qstack = 3;
b = "Q3";
a = t - MenuConfig.Qld - (Game.Ping - MenuConfig.Qd);
break;
case "Spell1c": // q3?
lastQ = Utils.GameTimeTickCount;
t = 343;
Qstack = 1;
b = "Q1";
a = t - MenuConfig.Qld - (Game.Ping - MenuConfig.Qd);
break;
case "Spell2":
t = 170;
break;
case "Spell3":
if (MenuConfig.Burst || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) ||
MenuConfig.FastHarass || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee))
Usables.CastYoumoo();
break;
case "Spell4a":
t = 0;
lastR = Utils.GameTimeTickCount;
break;
case "Spell4b":
t = 150;
var target = TargetSelector.SelectedTarget;
if (Spells.Q.IsReady() && target.LSIsValidTarget()) ForceCastQ(target);
break;
}
if (a != 0 && (Orbwalker.ActiveModesFlags != Orbwalker.ActiveModes.None))
{
LeagueSharp.Common.Utility.DelayAction.Add(a, () =>
{
Console.WriteLine(b);
Orbwalker.ResetAutoAttack();
EloBuddy.Player.DoEmote(Emote.Dance);
});
}
}
示例4: Obj_AI_Minion_OnPlayAnimation
static void Obj_AI_Minion_OnPlayAnimation(GameObject sender, GameObjectPlayAnimationEventArgs args)
{
if(sender is Obj_AI_Minion && ((Obj_AI_Minion)sender).IsSoldier())
{
Animations[sender.NetworkId] = args.Animation;
}
}
示例5: OnPlay
public static void OnPlay(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs args)
{
if (sender.IsMe)
{
int t = 0;
switch (args.Animation)
{
case "Spell1a":
QStacks = 1;
CanCastAnimation = false;
LastQTick = Utils.TickCount;
t = 291;
break;
case "Spell1b":
QStacks = 2;
CanCastAnimation = false;
LastQTick = Utils.TickCount;
t = 291;
break;
case "Spell1c":
QStacks = 0;
SetAttack(false);
CanCastAnimation = false;
LastQTick = Utils.TickCount;
t = 393;
break;
case "Spell2":
CanCastAnimation = false;
t = 10;
break;
case "Spell3":
CanCastAnimation = true;
LastETick = Utils.TickCount;
break;
case "Spell4a":
t = 10;
CanCastAnimation = false;
UltActive = true;
break;
case "Spell4b":
t = 200;
CanCastAnimation = false;
UltActive = false;
break;
default:
t = -1;
break;
}
if (t > 0)
{
if (Program.Champion.ConfigMenu.Item("MAUTOANIMCANCEL").GetValue<bool>() || Program.Champion.Orbwalker.ActiveMode != SCommon.Orbwalking.Orbwalker.Mode.None)
LeagueSharp.Common.Utility.DelayAction.Add(Math.Max(1, t - Game.Ping), () => CancelAnimation(args.Animation));
}
else if (t != -1)
LeagueSharp.Common.Utility.DelayAction.Add(1, () => OnAnimationCastable(args.Animation));
}
}
示例6: Obj_AI_Base_OnPlayAnimation
private static void Obj_AI_Base_OnPlayAnimation(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs args)
{
if(args.Animation == "Death")
{
int idx = s_Soldiers.FindIndex(p => p.NetworkId == sender.NetworkId);
if (idx != -1)
s_Soldiers.RemoveAt(idx);
}
}
示例7: OnPlayAnimation
/// <summary>
/// Called on animation trigger.
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="args">The <see cref="GameObjectPlayAnimationEventArgs" /> instance containing the event data.</param>
public static void OnPlayAnimation(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs args)
{
if (sender.IsMe && Variables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.None)
{
if (args.Animation.Equals("Spell1") || args.Animation.Equals("Spell2"))
{
ObjectManager.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
}
}
}
示例8: OnPlayAnimation
/// <summary>
/// Fired on animation start.
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="args">The <see cref="GameObjectPlayAnimationEventArgs" /> instance containing the event data.</param>
public static void OnPlayAnimation(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs args)
{
if (sender.IsMe &&
args.Animation.Equals("Spell3"))
{
if (Variables.Q.IsReady() && Targets.Target.IsValidTarget(Variables.Q.Range) && Menus.getCheckBoxItem(Variables.QMenu, "qspell.auto"))
{
Variables.Q.Cast(Variables.Q.GetPrediction(Targets.Target).UnitPosition);
}
}
}
示例9: OnPlayAnimation
/// <summary>
/// Called on animation trigger.
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="args">The <see cref="GameObjectPlayAnimationEventArgs" /> instance containing the event data.</param>
public static void OnPlayAnimation(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs args)
{
if (sender.IsMe &&
!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.None))
{
if (args.Animation.Equals("Spell1") ||
args.Animation.Equals("Spell2"))
{
EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
}
}
}
示例10: Obj_AI_Base_OnPlayAnimation
private static void Obj_AI_Base_OnPlayAnimation(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs args)
{
if (!sender.IsBall()) return;
foreach (var b in Balls.Where(m => m.ObjectIsValid && m.Object.NetworkId == sender.NetworkId))
{
b.LastAnimation = args.Animation;
}
if (args.Animation.Equals("Death"))
{
Balls.RemoveAll(m => m.Object.NetworkId == sender.NetworkId);
}
}
示例11: OnPlayAnimation
/// <summary>
/// Called on animation trigger.
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="args">The <see cref="GameObjectPlayAnimationEventArgs" /> instance containing the event data.</param>
public static void OnPlayAnimation(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs args)
{
if (sender.IsMe &&
!PortAIO.OrbwalkerManager.isNoneActive)
{
if (args.Animation.Equals("Spell1") ||
args.Animation.Equals("Spell2"))
{
EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
}
}
}
示例12: OnAnimation
public static void OnAnimation(GameObject unit, GameObjectPlayAnimationEventArgs args)
{
var hero = unit as AIHeroClient;
if (hero != null)
{
if (hero.Team == Player.Team) return;
if (hero.ChampionName == "Rengar" && args.Animation == "Spell5" && Player.LSDistance(hero) <= 725)
{
if (_E.IsReady() &&
getCheckBoxItem(miscMenu, "rengarleap"))
{
_E.Cast(unit.Position);
}
}
}
}
示例13: OnAnimation
public static void OnAnimation(GameObject unit, GameObjectPlayAnimationEventArgs args)
{
var hero = unit as Obj_AI_Hero;
if (hero != null)
{
if (hero.Team == Player.Team) return;
if (hero.ChampionName == "Rengar" && args.Animation == "Spell5" && Player.Distance(hero) <= 725)
{
if (_E.IsReady() &&
Config.SubMenu("Misc").SubMenu("Gapclosers").Item("rengarleap").GetValue<bool>())
{
_E.Cast(unit.Position);
}
}
}
}
示例14: OnPlay
public static void OnPlay(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs args)
{
if (!sender.IsMe)
{
return;
}
switch (args.Animation)
{
case "c29a362b":
LastQ = Utils.GameTimeTickCount;
Qstack = 2;
if (SafeReset())
{
Utility.DelayAction.Add(ResetDelay(MenuConfig.Qd), Reset);
Console.WriteLine("Q1 Delay: " + ResetDelay(MenuConfig.Qd));
}
break;
case "c39a37be":
LastQ = Utils.GameTimeTickCount;
Qstack = 3;
if (SafeReset())
{
Utility.DelayAction.Add(ResetDelay(MenuConfig.Q2D), Reset);
Console.WriteLine("Q2 Delay: " + ResetDelay(MenuConfig.Q2D));
}
break;
case "c49a3951":
LastQ = Utils.GameTimeTickCount;
Qstack = 1;
if (SafeReset())
{
Utility.DelayAction.Add(ResetDelay(MenuConfig.Qld), Reset);
Console.WriteLine("Q3 Delay: "
+ ResetDelay( MenuConfig.Qld)
+ Environment.NewLine + ">----END----<");
}
break;
}
}
示例15: Obj_AI_Base_OnPlayAnimation
static void Obj_AI_Base_OnPlayAnimation(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs args)
{
if (!sender.IsMe) return;
int d = 0;
bool qd = false;
//Chat.Print(args.Animation);
switch (args.Animation)
{
case "Spell1a":
d = 293;
break;
case "Spell1b":
d = 293;
break;
case "Spell1c":
d = 393;
break;
case "Attack1":
case "Attack2":
case "Attack3":
debugDictionary["ONANIMATION"] = Core.GameTickCount + "";
qd = true;
break;
}
//debugDictionary[args.Animation] = Core.GameTickCount + "";
if (d != 0)
{
LastQ = Core.GameTickCount;
Orbwalker.ResetAutoAttack();
/*var pos = Me.ServerPosition;
var facing = Me.Direction.To2D().Perpendicular().Normalized();
Orbwalker.DisableMovement = true;
Player.IssueOrder(GameObjectOrder.MoveTo, pos + facing.To3D());
Core.DelayAction(() => Orbwalker.DisableMovement = false, d - Game.Ping);*/
Core.DelayAction(()=>Player.DoEmote(Emote.Dance), d - Game.Ping);
}
if (qd)
{
LastAA = Core.GameTickCount;
debugDictionary["NEW"] = LastAA + (int)(Me.AttackCastDelay*1000) - Game.Ping/2 + "";
}
}