本文整理汇总了C#中Obj_AI_Hero.IsHunted方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Hero.IsHunted方法的具体用法?C# Obj_AI_Hero.IsHunted怎么用?C# Obj_AI_Hero.IsHunted使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Hero
的用法示例。
在下文中一共展示了Obj_AI_Hero.IsHunted方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetComboDamage
private static float GetComboDamage(Obj_AI_Hero target)
{
double damage = 0d;
if (_player.IsCougar())
{
if (_takedown.IsReady())
{
damage += target.IsHunted()
? _player.GetSpellDamage(target, SpellSlot.Q) * 0.33f
: _player.GetSpellDamage(target, SpellSlot.Q);
}
if (_pounce.IsReady())
{
damage += _player.GetSpellDamage(target, SpellSlot.W);
}
if (_swipe.IsReady())
{
damage += _player.GetSpellDamage(target, SpellSlot.E);
}
}
else
{
if (_javelinToss.IsReady())
{
damage += GetActualSpearDamage(target);
}
}
return (float) damage;
}
示例2: OnCombo
private static void OnCombo(Obj_AI_Hero target)
{
var pounceDistance = target.IsHunted() ? 730 : _pounce.Range;
if (_player.IsCougar())
{
/*if (_menu.Item("useTakedown").GetValue<bool>() && _takedown.IsReady() &&
_player.Distance(target.Position) <= _takedown.Range)
{
_takedown.Cast(true);
}*/
if (_pounce.IsReady() && MainMenu.Item("usePounce").GetValue<bool>())
{
if (MainMenu.Item("turretSafety").GetValue<bool>() && target.UnderTurret(true))
{
return;
}
if (MainMenu.Item("pounceHunted").GetValue<bool>())
{
if (target.IsHunted() && _player.Distance(target.ServerPosition) <= pounceDistance &&
_player.Distance(target) > _swipe.Range)
{
_pounce.Cast(target.ServerPosition);
}
if (!target.IsHunted() && _player.GetSpellDamage(target, SpellSlot.W) > target.Health + 20 &&
_player.Distance(target.ServerPosition) <= pounceDistance)
{
_pounce.Cast(target.ServerPosition);
}
}
else
{
if (_player.Distance(target) <= pounceDistance && _player.Distance(target) > _swipe.Range)
{
_pounce.Cast(target.ServerPosition);
}
}
}
if (MainMenu.Item("useSwipe").GetValue<bool>() && _swipe.IsReady() &&
_player.Distance(target.Position, true) <= _swipe.RangeSqr)
{
_swipe.Cast(target);
}
//I'd call it 0.5% ?
if (MainMenu.Item("useHuman").GetValue<bool>())
{
if (_player.Distance(target.ServerPosition) > pounceDistance && HQ < 0.5 &&
_player.Distance(target.ServerPosition) < _javelinToss.Range && CW < 0.5)
{
var prediction = _javelinToss.GetPrediction(target);
if (_aspectOfTheCougar.IsReady() && prediction.Hitchance >= HitChance.Medium)
{
_aspectOfTheCougar.Cast();
//Utility.DelayAction.Add(200, () => _javelinToss.Cast(prediction.CastPosition));
}
}
}
}
else
{
if (MainMenu.Item("useJavelin").GetValue<bool>() && _javelinToss.IsReady() &&
target.IsValidTarget(_javelinToss.Range) &&
_player.Distance(target.Position) <= MainMenu.Item("javelinRange").GetValue<Slider>().Value)
{
_javelinToss.CastIfHitchanceEquals(target, CustomHitChance);
}
if (MainMenu.Item("useBushwhack").GetValue<bool>() && _bushwhack.IsReady() &&
target.IsValidTarget(_bushwhack.Range) && _player.Distance(target.Position) <= _bushwhack.Range)
{
_bushwhack.CastIfHitchanceEquals(target, CustomHitChance);
}
if (MainMenu.Item("useCougar").GetValue<bool>() && (CW < 0.2) && (CQ < 0.2) && (CE < 0.2) &&
!_javelinToss.IsReady() && _player.Distance(target) <= pounceDistance)
{
if (MainMenu.Item("pounceHunted").GetValue<bool>()) {}
if (_aspectOfTheCougar.IsReady())
{
_aspectOfTheCougar.Cast();
}
}
}
}