当前位置: 首页>>代码示例>>C#>>正文


C# LeagueSharp.SPredictionCast方法代码示例

本文整理汇总了C#中LeagueSharp.SPredictionCast方法的典型用法代码示例。如果您正苦于以下问题:C# LeagueSharp.SPredictionCast方法的具体用法?C# LeagueSharp.SPredictionCast怎么用?C# LeagueSharp.SPredictionCast使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在LeagueSharp的用法示例。


在下文中一共展示了LeagueSharp.SPredictionCast方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CastSpell


//.........这里部分代码省略.........

                if (QWER.Type == LeagueSharp.Common.SkillshotType.SkillshotCircle)
                {
                    CoreType2 = SebbyLib.Prediction.SkillshotType.SkillshotCircle;
                    aoe2 = true;
                }

                if (QWER.Width > 80 && !QWER.Collision)
                    aoe2 = true;

                var predInput2 = new SebbyLib.Prediction.PredictionInput
                {
                    Aoe = aoe2,
                    Collision = QWER.Collision,
                    Speed = QWER.Speed,
                    Delay = QWER.Delay,
                    Range = QWER.Range,
                    From = ThreshWarden.Player.ServerPosition,
                    Radius = QWER.Width,
                    Unit = target,
                    Type = CoreType2
                };
                var poutput2 = SebbyLib.Prediction.Prediction.GetPrediction(predInput2);

                //var poutput2 = QWER.GetPrediction(target);

                if (QWER.Speed != float.MaxValue && SebbyLib.OktwCommon.CollisionYasuo(ThreshWarden.Player.ServerPosition, poutput2.CastPosition))
                    return;

                if (getBoxItem(ThreshWarden.PredictConfig, "HitChance") == 0)
                {
                    if (poutput2.Hitchance >= SebbyLib.Prediction.HitChance.VeryHigh)
                        QWER.Cast(poutput2.CastPosition);
                    else if (predInput2.Aoe && poutput2.AoeTargetsHitCount > 1 && poutput2.Hitchance >= SebbyLib.Prediction.HitChance.High)
                    {
                        QWER.Cast(poutput2.CastPosition);
                    }

                }
                else if (getBoxItem(ThreshWarden.PredictConfig, "HitChance") == 1)
                {
                    if (poutput2.Hitchance >= SebbyLib.Prediction.HitChance.High)
                        QWER.Cast(poutput2.CastPosition);

                }
                else if (getBoxItem(ThreshWarden.PredictConfig, "HitChance") == 2)
                {
                    if (poutput2.Hitchance >= SebbyLib.Prediction.HitChance.Medium)
                        QWER.Cast(poutput2.CastPosition);
                }
            }
            else
            if (ThreshWarden.getBoxItem(ThreshWarden.PredictConfig, "PredictionMode") == 0)
            {
              //      Chat.Print("Common");
                if (getBoxItem(ThreshWarden.PredictConfig, "HitChance") == 0)
                {
                    QWER.CastIfHitchanceEquals(target, EloBuddy.SDK.Enumerations.HitChance.High);
                    return;
                }
                else if (getBoxItem(ThreshWarden.PredictConfig, "HitChance") == 1)
                {
                    QWER.CastIfHitchanceEquals(target, EloBuddy.SDK.Enumerations.HitChance.High);
                    return;
                }
                else if (getBoxItem(ThreshWarden.PredictConfig, "HitChance") == 2)
                {
                    QWER.CastIfHitchanceEquals(target, EloBuddy.SDK.Enumerations.HitChance.Medium);
                    return;
                }
            }

            else if (getBoxItem(ThreshWarden.PredictConfig, "PredictionMode") == 3)
            {
              //  Chat.Print("Prediction");
                if (target is AIHeroClient && target.IsValid)
                {
              //      var t = target as AIHeroClient;
                    if (getBoxItem(ThreshWarden.PredictConfig, "HitChance") == 0)
                    {
                        QWER.SPredictionCast(target, EloBuddy.SDK.Enumerations.HitChance.High);
                        return;
                    }
                    else if (getBoxItem(ThreshWarden.PredictConfig, "HitChance") == 1)
                    {
                        QWER.SPredictionCast(target, EloBuddy.SDK.Enumerations.HitChance.High);
                        return;
                    }
                    else if (getBoxItem(ThreshWarden.PredictConfig, "HitChance") == 2)
                    {
                        QWER.SPredictionCast(target, EloBuddy.SDK.Enumerations.HitChance.Medium);
                        return;
                    }
                }
                else
                {
                    QWER.CastIfHitchanceEquals(target, EloBuddy.SDK.Enumerations.HitChance.High);
                }
            }
        }
开发者ID:yMeliodasNTD,项目名称:PortAIO,代码行数:101,代码来源:SpellQ.cs


注:本文中的LeagueSharp.SPredictionCast方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。