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)); }
public _PingEventArgs(int sourceId, int targetId, Vector2 position, PingCategory pingCategory) { this.SourceId = sourceId; this.TargetId = targetId; this.Position = position; this.PingCategory = pingCategory; }
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); */ }
public PingInfo(int networkId, Vector2 pos, float time, PingCategory type) { NetworkId = networkId; Pos = pos; Time = time; Type = type; }
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); }
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); }
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)); }
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)); }
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)); }
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); }
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); }
public static void SendPing(PingCategory category, IGameObject target) { Fragment.SendPing(category, target); }
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)); }
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); }
public static void SendPing(PingCategory category, Vector2 targetPos) { Fragment.SendPing(category, targetPos); }
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)); }
private static void Ping(object iMode, float x, float y, float z, PingCategory bPing) { Game.SendPing(bPing, new Vector3(x, y , z)); }
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); }
public abstract void SendPing(PingCategory PingType, Vector3 position, bool PlaySound = true);