Example #1
0
 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);
 }
Example #2
0
 private void kill(Positions positions, Vector3 pos)
 {
     if (R.IsReady() && pos.Distance(positions.Player.Position) < 1200 &&
         ObjectManager.Get<AIHeroClient>()
             .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());
             }
         }
     }
 }
Example #3
0
 private void xerathUlt(Positions positions, Vector3 pos = default(Vector3))
 {
     if (pos != Vector3.Zero)
     {
         xerathUltActivated = true;
         xerathUltTarget = positions.Player;
         Utility.DelayAction.Add(5000, () => xerathUltActivated = false);
         R.Cast(pos);
     }
     else
     {
         if (positions.Player.IsVisible)
         {
             xerathUltActivated = true;
             xerathUltTarget = positions.Player;
             Utility.DelayAction.Add(5000, () => xerathUltActivated = false);
             R.Cast(positions.Player);
         }
         else
         {
             xerathUltActivated = true;
             xerathUltTarget = positions.Player;
             Utility.DelayAction.Add(5000, () => xerathUltActivated = false);
             R.Cast(
                 positions.Player.Position.Extend(
                     positions.predictedpos, (float)(positions.Player.MoveSpeed * 0.3)));
         }
     }
 }
Example #4
0
 private Vector3 getpos(Positions enemy, float dist)
 {
     var time = (enemy.LastSeen - enemy.RecallData.RecallStartTime) / 1000;
     var line = enemy.Player.Position.Extend(enemy.predictedpos, dist);
     if (enemy.Player.Position.Distance(enemy.predictedpos) < dist &&
         ((time < 2 ||
           enemy.Player.Position.Distance(enemy.predictedpos) > enemy.Player.Position.Distance(line) * 0.70f)))
     {
         line = enemy.predictedpos;
     }
     return line;
 }