本文整理汇总了C#中Obj_AI_Hero.IsRecalling方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Hero.IsRecalling方法的具体用法?C# Obj_AI_Hero.IsRecalling怎么用?C# Obj_AI_Hero.IsRecalling使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Hero
的用法示例。
在下文中一共展示了Obj_AI_Hero.IsRecalling方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CastSkillshot
public void CastSkillshot(Obj_AI_Hero t, Spell s, HitChance hc = HitChance.High)
{
if (!s.IsSkillshot)
return;
PredictionOutput p = s.GetPrediction(t);
if (s.Collision)
{
for (int i = 0; i < p.CollisionObjects.Count; i++)
if (!p.CollisionObjects[i].IsDead && (p.CollisionObjects[i].IsEnemy || p.CollisionObjects[i].IsMinion))
return;
}
if ((t.HasBuffOfType(BuffType.Slow) && p.Hitchance >= HitChance.High) || p.Hitchance == HitChance.Immobile)
s.Cast(p.CastPosition);
else if (t.IsRecalling())
s.Cast(t.ServerPosition);
else
{
if (s.IsReady())
{
s.SPredictionCast(t, hc);
}
}
}
示例2: Drawing_OnDraw
static void Drawing_OnDraw(EventArgs args)
{
if (!Menu.Item("switch").GetValue<Boolean>())
return;
Target = TargetSelector.GetSelectedTarget() != null ? TargetSelector.GetSelectedTarget() : Player;
var buffs = string.Empty;
foreach (var buff in Target.Buffs)
{
buffs += "\n" + buff.Name + "[Count: " + buff.Count + "/Duration: " + (buff.EndTime - Game.ClockTime).ToString("0.00") +"],";
}
var Mobs = MinionManager.GetMinions(1500, MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.MaxHealth);
var MobsList = string.Empty;
foreach (var Mob in Mobs)
{
MobsList += "\n" + Mob.Name + "[Skinname: " + Mob.SkinName + "/HP: " + Mob.Health + " / " + Mob.MaxHealth + "(" + Mob.HealthPercent.ToString("0.0") + "%)],";
}
Render.Circle.DrawCircle(Player.Position, 1500, Color.Red, 10);
Text.text =
//"Name: " + Target.Name + NewLine +
"ChampionName: " + Target.ChampionName + NewLine +
"SkinName: " + Target.SkinName + NewLine +
//"Gold: " + Target.Gold + NewLine +
//"Level: " + Target.Level + NewLine +
"TotalAttackDamage: " + Utility.TotalAttackDamage(Target) + NewLine +
"TotalMagicalDamage: " + Utility.TotalMagicalDamage(Target) + NewLine +
"Armor: " + Target.Armor + NewLine +
"Health: " + Target.Health + " / " + Target.MaxHealth + " (" + Target.HealthPercent.ToString("0.0") + "%)" + NewLine +
"Mana: " + Target.Mana + " / " + Target.MaxMana + " (" + Target.HealthPercent.ToString("0.0") + "%)" + NewLine +
"HPRegenRate: " + Target.HPRegenRate + NewLine +
"PARRegenRate: " + Target.PARRegenRate + NewLine +
"Experience: " + Target.Experience + NewLine +
"Position: " + Target.Position + NewLine +
"ServerPosition: " + Target.ServerPosition + NewLine +
"Team: " + Target.Team + NewLine +
"NetworkId: " + Target.NetworkId + NewLine +
"MoveSpeed: " + Target.MoveSpeed + NewLine +
"AttackRange: " + Target.AttackRange + NewLine +
"RealAutoAttackRange: " + Orbwalking.GetRealAutoAttackRange(Target) + NewLine +
//"DeathDuration: " + Target.DeathDuration + NewLine +
"BoundingRadius: " + Target.BoundingRadius + NewLine +
NewLine +
"Buffs: " + buffs + NewLine +
NewLine +
"IsDead: " + Target.IsDead + NewLine +
"IsImmovable: " + Target.IsImmovable + NewLine +
"IsInvulnerable: " + Target.IsInvulnerable + NewLine +
"IsMoving: " + Target.IsMoving + NewLine +
"IsPacified: " + Target.IsPacified + NewLine +
"IsTargetable: " + Target.IsTargetable + NewLine +
"IsWindingUp: " + Target.IsWindingUp + NewLine +
"IsZombie: " + Target.IsZombie + NewLine +
"IsRecalling: " + Target.IsRecalling() + NewLine +
"IsStunned: " + Target.IsStunned + NewLine +
"IsRooted: " + Target.IsRooted + NewLine +
"IsMelee: " + Target.IsMelee() + NewLine +
"IsDashing: " + Target.IsDashing() + NewLine +
"IsAlly: " + Target.IsAlly + NewLine +
"IsCanMove: " + Orbwalking.CanMove(1) + NewLine +
"UnderTurret: " + Target.UnderTurret() + NewLine +
NewLine +
"Mobs: " + MobsList + NewLine +
NewLine +
"Game_CursorPos: " + Game.CursorPos + NewLine +
"Game_ClockTime: " + Game.ClockTime + NewLine +
"Game_Time: " + Game.Time + NewLine +
"Game_Type: " + Game.Type + NewLine +
"Game_Version: " + Game.Version + NewLine +
"Game_Region: " + Game.Region + NewLine +
"Game_IP: " + Game.IP + NewLine +
"Game_Port: " + Game.Port + NewLine +
"Game_Ping: " + Game.Ping + NewLine +
"Game_Mode: " + Game.Mode + NewLine +
"Game_MapId: " + Game.MapId + NewLine +
"Game_MapName: " + Utility.Map.GetMap().Name
;
Text.OnEndScene();
}