本文整理汇总了C#中LeagueSharp.Common.Spell.GetSPrediction方法的典型用法代码示例。如果您正苦于以下问题:C# Spell.GetSPrediction方法的具体用法?C# Spell.GetSPrediction怎么用?C# Spell.GetSPrediction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Spell
的用法示例。
在下文中一共展示了Spell.GetSPrediction方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DoCast
public static bool DoCast(Spell spell, Obj_AI_Hero target, HitChance minHitChance, bool colisionCheck=false)
{
// Data.Static.Objects.ProjectLogger.WriteLog("DoCast Call");
if ((PredictionMethod==0)||((PredictionMethod==1)&&colisionCheck)) //Sebby Colision is broken...lol
{
var output=spell.GetPrediction(target);
if (colisionCheck)
if (CheckColision(output))
return false;
if (minHitChance>output.Hitchance)
return false;
spell.Cast(output.CastPosition);
return true;
}
if (PredictionMethod==1)
{
var output=SebbyLib.Prediction.Prediction.GetPrediction(target, spell.Delay);
if (minHitChance>(HitChance)output.Hitchance)
return false;
spell.Cast(output.CastPosition);
return true;
}
if (PredictionMethod==2)
{
var output=spell.GetSPrediction(target);
if (colisionCheck)
if (CheckColision(output))
return false;
if (minHitChance>output.HitChance)
return false;
spell.Cast(output.CastPosition);
return true;
}
return false;
}
示例2: CastSpell
//.........这里部分代码省略.........
{
QWER.Cast(poutput2.CastPosition);
}
}
else if (getSliderItem("HitChance") == 1)
{
if (poutput2.Hitchance >= SebbyLib.Prediction.HitChance.High)
QWER.Cast(poutput2.CastPosition);
}
else if (getSliderItem("HitChance") == 2)
{
if (poutput2.Hitchance >= SebbyLib.Prediction.HitChance.Medium)
QWER.Cast(poutput2.CastPosition);
}
if (Game.Time - DrawSpellTime > 0.5)
{
DrawSpell = QWER;
DrawSpellTime = Game.Time;
}
DrawSpellPos = poutput2;
return;
}
if (getSliderItem("PredictionMODE") == 2)
{
if (target is AIHeroClient && target.IsValid)
{
var t = target as AIHeroClient;
if (getSliderItem("HitChance") == 0)
{
var pred = QWER.GetSPrediction(t);
if (pred.HitChance >= LeagueSharp.Common.HitChance.VeryHigh)
QWER.Cast(pred.CastPosition);
return;
}
else if (getSliderItem("HitChance") == 1)
{
var pred = QWER.GetSPrediction(t);
if (pred.HitChance >= LeagueSharp.Common.HitChance.High)
QWER.Cast(pred.CastPosition);
return;
}
else if (getSliderItem("HitChance") == 2)
{
var pred = QWER.GetSPrediction(t);
if (pred.HitChance >= LeagueSharp.Common.HitChance.Medium)
QWER.Cast(pred.CastPosition);
return;
}
}
else
{
QWER.CastIfHitchanceEquals(target, LeagueSharp.Common.HitChance.High);
}
return;
}
if (getSliderItem("PredictionMODE") == 3)
{
SebbyLib.Movement.SkillshotType CoreType2 = SebbyLib.Movement.SkillshotType.SkillshotLine;
bool aoe2 = false;
if (QWER.Width > 80 && !QWER.Collision)