示例#1
0
 public static void Ping(PingCategory cat, GameObject target)
 {
     if (MainMenu.GetMenu("AB").Get<CheckBox>("disablepings").CurrentValue) return;
     if (lastPing > Game.Time) return;
     lastPing = Game.Time + 1.8f;
     Core.DelayAction(() => TacticalMap.SendPing(cat, target), RandGen.r.Next(450, 800));
 }
示例#2
0
 public _PingEventArgs(int sourceId, int targetId, Vector2 position, PingCategory pingCategory)
 {
     this.SourceId     = sourceId;
     this.TargetId     = targetId;
     this.Position     = position;
     this.PingCategory = pingCategory;
 }
示例#3
0
            public static void Ping(Vector2 position, int pingCount = 4, PingCategory pingCategory = PingCategory.Fallback)
            {
                if (LeagueSharp.Common.Utils.TickCount - LastPingT < 30 * 1000)
                {
                    return;
                }

                LastPingT    = LeagueSharp.Common.Utils.TickCount;
                PingLocation = position;
                SimplePing();

                for (int i = 1; i <= pingCount; i++)
                {
                    Utility.DelayAction.Add(i * 400, (() =>
                    {
                        Game.ShowPing(pingCategory, PingLocation, true);
                    }));
                }

                /*
                 * Utility.DelayAction.Add(150, SimplePing);
                 * Utility.DelayAction.Add(300, SimplePing);
                 * Utility.DelayAction.Add(400, SimplePing);
                 * Utility.DelayAction.Add(800, SimplePing);
                 */
            }
示例#4
0
 public PingInfo(int networkId, Vector2 pos, float time, PingCategory type)
 {
     NetworkId = networkId;
     Pos       = pos;
     Time      = time;
     Type      = type;
 }
示例#5
0
 private static void PingGround(Vector3 point, PingCategory pingtype)
 {
     if (point.Distance(ObjectManager.Player.ServerPosition) > 1000) return;
     if (Utils.GameTimeTickCount - LastPing < Rand.Next(100, 1100) || NumberOfPings >= Rand.Next(Math.Max(1, Config.Item("maxpings").GetValue<Slider>().Value/2), Config.Item("maxpings").GetValue<Slider>().Value)) return;
     LastPing = Utils.GameTimeTickCount;
     NumberOfPings++;
     Game.SendPing(pingtype, point);
 }
示例#6
0
文件: Program.cs 项目: Enelx/EloBuddy
 private static void PingGround(Vector3 point, PingCategory pingtype)
 {
     if (point.Distance(Player.Instance.ServerPosition) > 1000) return;
     if (Environment.TickCount - LastPing < Rnd.Next(100, 1100) || NumberOfPings >= Rnd.Next(Math.Max(1, Config["maxpings"].Cast<Slider>().CurrentValue / 2), Config["maxpings"].Cast<Slider>().CurrentValue)) return;
     LastPing = Environment.TickCount;
     NumberOfPings++;
     TacticalMap.SendPing(pingtype, point);
 }
示例#7
0
 public static void Ping(PingCategory cat, GameObject target)
 {
     if (_lastPing > Game.Time)
     {
         return;
     }
     _lastPing = Game.Time + .8f;
     Core.DelayAction(() => TacticalMap.SendPing(cat, target), RandGen.R.Next(150, 400));
 }
示例#8
0
 public static void Ping(PingCategory cat, Vector3 pos)
 {
     if (lastPing > Game.Time)
     {
         return;
     }
     lastPing = Game.Time + .8f;
     Core.DelayAction(() => TacticalMap.SendPing(cat, pos), RandGen.r.Next(150, 400));
 }
示例#9
0
        private static void DrawingOnOnDrawUlti(EventArgs args)
        {
            if (!R.IsReady())
            {
                return;
            }

            var ally = GetHelplessAlly;

            if (ally != null)
            {
                var allyConfirmUltimate = LocalMenu.Item(ally.ChampionName + ".UseRConfirm").GetValue <StringList>().SelectedIndex;
                //if (allyConfirmUltimate == 1 && R.IsReady() && ObjectManager.Player.HealthPercent >= LocalMenu.Item("SpellR.AutoUltimate").GetValue<StringList>().SelectedIndex * 5)
                if (LocalMenu.Item("SpellR.WarnNotificationText").GetValue <StringList>().SelectedIndex != 0)
                {
                    if (allyConfirmUltimate == 1 && R.IsReady())
                    {
                        if (Modes.MenuConfig.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo)
                        {
                            DrawWarningMessage(args, "AUTO ULTIMATE: " + ally.ChampionName, Color.GreenYellow);
                            R.CastOnUnit(ally);
                        }
                        else
                        {
                            var warningText = "Press " + char.ConvertFromUtf32((int)ActiveConfirmKey.Key) + " for Ulti: " + ally.ChampionName;
                            DrawWarningMessage(args, warningText, Color.Red);
                        }
                    }
                    else
                    {
                        var warningText = "Press " + char.ConvertFromUtf32((int)ActiveConfirmKey.Key) + " for Ulti: " + ally.ChampionName;
                        DrawWarningMessage(args, warningText, Color.Red);
                    }
                }

                if (LocalMenu.Item("SpellR.WarnPingAlly").GetValue <StringList>().SelectedIndex != 0)
                {
                    switch (LocalMenu.Item("SpellR.WarnPingAlly").GetValue <StringList>().SelectedIndex)
                    {
                    case 1:
                    {
                        pingCategory = PingCategory.Danger;
                        break;
                    }

                    case 2:
                    {
                        pingCategory = PingCategory.Fallback;
                        break;
                    }
                    }

                    Ping(ally.Position.To2D());
                }
            }
        }
        public C2S_MapPing(PacketReader reader, ChannelID channelID, NetID senderNetID)
        {
            this.SenderNetID = senderNetID;
            this.ChannelID   = channelID;

            this.Position    = reader.ReadVector2();
            this.TargetNetID = reader.ReadNetID();
            byte bitfield = reader.ReadByte();

            this.PingCategory = (PingCategory)(bitfield & 0x0F);

            this.ExtraBytes = reader.ReadLeft();
        }
 public static void Ping(PingCategory cat, GameObject target)
 {
     if (MainMenu.GetMenu("AB").Get <CheckBox>("disablepings").CurrentValue)
     {
         return;
     }
     if (_lastPing > Game.Time)
     {
         return;
     }
     _lastPing = Game.Time + 1.8f;
     Core.DelayAction(() => TacticalMap.SendPing(cat, target), RandGen.R.Next(450, 800));
 }
示例#12
0
 private static void PingGround(Vector3 point, PingCategory pingtype)
 {
     if (point.Distance(ObjectManager.Player.ServerPosition) > 1000)
     {
         return;
     }
     if (Utils.GameTimeTickCount - LastPing < Rand.Next(100, 1100) || NumberOfPings >= Rand.Next(Math.Max(1, Config.Item("maxpings").GetValue <Slider>().Value / 2), Config.Item("maxpings").GetValue <Slider>().Value))
     {
         return;
     }
     LastPing = Utils.GameTimeTickCount;
     NumberOfPings++;
     Game.SendPing(pingtype, point);
 }
示例#13
0
 private static void PingGround(Vector3 point, PingCategory pingtype)
 {
     if (point.Distance(Player.Instance.ServerPosition) > 1000)
     {
         return;
     }
     if (Environment.TickCount - LastPing < Rnd.Next(100, 1100) || NumberOfPings >= Rnd.Next(Math.Max(1, Config["maxpings"].Cast <Slider>().CurrentValue / 2), Config["maxpings"].Cast <Slider>().CurrentValue))
     {
         return;
     }
     LastPing = Environment.TickCount;
     NumberOfPings++;
     TacticalMap.SendPing(pingtype, point);
 }
示例#14
0
文件: Game.cs 项目: Wiciaki/SparkTech
 public static void SendPing(PingCategory category, IGameObject target)
 {
     Fragment.SendPing(category, target);
 }
示例#15
0
 public static void Ping(PingCategory cat, Vector3 pos)
 {
     if (lastPing > Game.Time) return;
     lastPing = Game.Time + .8f;
     Core.DelayAction(()=>TacticalMap.SendPing(cat, pos), RandGen.r.Next(150, 400));
 }
示例#16
0
 private static void SimplePing(PingCategory pingCategory = PingCategory.Fallback)
 {
     S2C.Ping.Encoded(new S2C.Ping.Struct(PingLocation.X, PingLocation.Y, 0, 0, PingType.Fallback)).Process();
     Game.ShowPing(pingCategory, PingLocation, true);
 }
示例#17
0
文件: Game.cs 项目: Wiciaki/SparkTech
 public static void SendPing(PingCategory category, Vector2 targetPos)
 {
     Fragment.SendPing(category, targetPos);
 }
示例#18
0
 public static void Ping(PingCategory cat, GameObject target)
 {
     if (lastPing > Game.Time) return;
     lastPing = Game.Time + 1.8f;
     Core.DelayAction(() => TacticalMap.SendPing(cat, target), RandGen.r.Next(450, 800));
 }
示例#19
0
 private static void Ping(object iMode, float x, float y, float z, PingCategory bPing)
 {
     Game.SendPing(bPing, new Vector3(x, y , z));
 }
示例#20
0
文件: Utils.cs 项目: Burbb/Portaio
 private static void SimplePing(PingCategory pingCategory = PingCategory.Fallback)
 {
     S2C.Ping.Encoded(new S2C.Ping.Struct(PingLocation.X, PingLocation.Y, 0, 0, LeagueSharp.Common.Packet.PingType.Fallback));
     TacticalMap.ShowPing(pingCategory, PingLocation, true);
 }
示例#21
0
 public abstract void SendPing(PingCategory PingType, Vector3 position, bool PlaySound = true);
示例#22
0
 public PingInfo(int networkId, Vector2 pos, float time, PingCategory type)
 {
     NetworkId = networkId;
     Pos = pos;
     Time = time;
     Type = type;
 }