private void xerathUlt(Positions positions, Vector3 pos = default(Vector3)) { if (pos != Vector3.Zero) { xerathUltActivated = true; xerathUltTarget = positions.Player; LeagueSharp.Common.Utility.DelayAction.Add(5000, () => xerathUltActivated = false); R.Cast(pos); } else { if (positions.Player.IsVisible) { xerathUltActivated = true; xerathUltTarget = positions.Player; LeagueSharp.Common.Utility.DelayAction.Add(5000, () => xerathUltActivated = false); R.Cast(positions.Player); } else { xerathUltActivated = true; xerathUltTarget = positions.Player; LeagueSharp.Common.Utility.DelayAction.Add(5000, () => xerathUltActivated = false); R.Cast( positions.Player.Position.LSExtend( positions.predictedpos, (float) (positions.Player.MoveSpeed * 0.3))); } } }
public RecallData(Positions positions) { Positions = positions; Recall = new Packet.S2C.Teleport.Struct( Positions.Player.NetworkId, Packet.S2C.Teleport.Status.Unknown, Packet.S2C.Teleport.Type.Unknown, 0); }
private Vector3 getpos(Positions enemy, float dist) { var time = (enemy.LastSeen - enemy.RecallData.RecallStartTime) / 1000; var line = enemy.Player.Position.LSExtend(enemy.predictedpos, dist); if (enemy.Player.Position.LSDistance(enemy.predictedpos) < dist && ((time < 2 || enemy.Player.Position.LSDistance(enemy.predictedpos) > enemy.Player.Position.LSDistance(line) * 0.70f))) { line = enemy.predictedpos; } return line; }
private void kill(Positions positions, Vector3 pos) { if (R.IsReady() && pos.LSDistance(positions.Player.Position) < 1200 && ObjectManager.Get<AIHeroClient>() .Count(o => o.IsAlly && o.LSDistance(pos) < config["Alliesrange"].Cast<Slider>().CurrentValue) < 1) { if (checkdmg(positions.Player, pos) && UltTime(pos) < positions.RecallData.GetRecallTime() && !isColliding(pos)) { if (player.ChampionName == "Xerath") { xerathUlt(positions, pos); } R.Cast(pos); if (player.ChampionName == "Draven" && config["CallBack"].Cast<CheckBox>().CurrentValue) { LeagueSharp.Common.Utility.DelayAction.Add((int) (UltTime(pos) - 300), () => R.Cast()); } } } }
private void kill(Positions positions, Vector3 pos) { if (R.IsReady() && pos.Distance(positions.Player.Position) < 1200 && ObjectManager.Get<Obj_AI_Hero>() .Count(o => o.IsAlly && o.Distance(pos) < configMenu.Item("Alliesrange").GetValue<Slider>().Value) < 1) { if (checkdmg(positions.Player, pos) && UltTime(pos) < positions.RecallData.GetRecallTime() && !isColliding(pos)) { if (player.ChampionName == "Xerath") { xerathUlt(positions, pos); } R.Cast(pos); if (player.ChampionName == "Draven" && configMenu.Item("CallBack").GetValue<bool>()) { Utility.DelayAction.Add((int) (UltTime(pos) - 300), () => R.Cast()); } } } }
private void kill(Positions positions, Vector3 pos) { if (R.IsReady() && Extensions.Distance(pos, positions.Player.Position) < 1200 && ObjectManager.Get<AIHeroClient>() .Count( o => o.IsAlly && Extensions.Distance(o, pos) < getSliderItem(menu, "Alliesrange")) < 1) { if (checkdmg(positions.Player, pos) && UltTime(pos) < positions.RecallData.GetRecallTime() && !isColliding(pos)) { if (player.ChampionName == "Xerath") { xerathUlt(positions, pos); } R.Cast(pos); if (player.ChampionName == "Draven" && getCheckBoxItem(menu, "CallBack")) { Utility.DelayAction.Add((int) (UltTime(pos) - 300), () => R.Cast()); } } } }
public RecallData(Positions positions) { Positions = positions; Recall = new RecallInf( Positions.Player.NetworkId, TeleportStatus.Unknown, TeleportType.Unknown, 0); }
private void kill(Positions positions, Vector3 pos) { if (R.IsReady() && pos.Distance(positions.Player.Position) < 1200 && pos.CountAlliesInRange(configMenu.Item("Alliesrange").GetValue<Slider>().Value) < 1) { if (checkdmg(positions.Player, pos) && UltTime(pos) < positions.RecallData.GetRecallTime() && !isColliding(pos)) { if (player.ChampionName == "Xerath") { xerathUlt(positions, pos); } R.Cast(pos); } } }