private void CastEtarget(AIHeroClient target) { var pred = E.GetPrediction(target); var pos = target.Position.Extend(pred.CastPosition, Orbwalking.GetRealAutoAttackRange(target)); var poly = CombatHelper.GetPoly(pred.CastPosition, player.Distance(pos), E.Width); if (pred.Hitchance >= HitChance.High && poly.IsInside(pred.UnitPosition) && poly.IsInside(target.ServerPosition)) { E.Cast(pos); } }
private void CastEtarget(Obj_AI_Hero target) { var pred = E.GetPrediction(target); var pos = target.Position.Extend(pred.CastPosition, Orbwalking.GetRealAutoAttackRange(target)); var poly = CombatHelper.GetPoly(pred.CastPosition, player.Distance(pos), E.Width); if (pred.Hitchance >= HitChance.High && poly.IsInside(pred.UnitPosition) && poly.IsInside(target.ServerPosition)) { E.Cast(pos, config.Item("packets").GetValue <bool>()); } }
private static void HandleQ(AIHeroClient target) { Q.UpdateSourcePosition(blade); var pred = Q.GetPrediction(target); var poly = CombatHelper.GetPoly(blade.Extend(player.Position, 30), player.Distance(blade), 150); if (((pred.Hitchance >= HitChance.VeryHigh && poly.IsInside(pred.UnitPosition)) || (target.Distance(blade) < 100) || (target.Distance(blade) < 500 && poly.IsInside(target.Position)) || player.Distance(target) < Orbwalking.GetRealAutoAttackRange(target) || player.Spellbook.IsAutoAttacking) && CheckQDef()) { Q.Cast(); } }
private static void CastETarget(AIHeroClient target) { var pred = E.GetPrediction(target); var poly = CombatHelper.GetPoly(pred.UnitPosition, E.Range, E.Width); var enemiesBehind = HeroManager.Enemies.Count( e => e.NetworkId != target.NetworkId && e.LSIsValidTarget(E.Range) && (poly.IsInside(E.GetPrediction(e).UnitPosition) || poly.IsInside(e.Position)) && e.Position.LSDistance(player.Position) > player.LSDistance(pred.UnitPosition)); if (pred.HitChance >= EloBuddy.SDK.Enumerations.HitChance.High) { if (enemiesBehind > 0) { E.Cast( player.ServerPosition.LSExtend(pred.CastPosition, E.Range), getCheckBoxItem(config, "packets")); } else { if (poly.IsInside(pred.UnitPosition) && poly.IsInside(target.Position)) { E.Cast( player.ServerPosition.LSExtend( pred.CastPosition, player.LSDistance(pred.CastPosition) + Orbwalking.GetRealAutoAttackRange(target)), getCheckBoxItem(config, "packets")); } else { E.Cast( player.ServerPosition.LSExtend( pred.CastPosition, player.LSDistance(pred.CastPosition) + Orbwalking.GetRealAutoAttackRange(target)), getCheckBoxItem(config, "packets")); } } } }
private static void CastETarget(AIHeroClient target) { if (Program.IsSPrediction) { var pred = E.GetPrediction(target); var poly = CombatHelper.GetPoly(pred.UnitPosition, E.Range, E.Width); var enemiesBehind = HeroManager.Enemies.Count( e => e.NetworkId != target.NetworkId && e.IsValidTarget(E.Range) && (poly.IsInside(E.GetPrediction(e).UnitPosition) || poly.IsInside(e.Position)) && e.Position.Distance(player.Position) > player.Distance(pred.UnitPosition)); if (pred.Hitchance >= HitChance.High) { if (enemiesBehind > 0) { E.Cast(player.ServerPosition.Extend(pred.CastPosition, E.Range)); } else { if (poly.IsInside(pred.UnitPosition) && poly.IsInside(target.Position)) { E.Cast( player.ServerPosition.Extend( pred.CastPosition, player.Distance(pred.CastPosition) + Orbwalking.GetRealAutoAttackRange(target))); } else { E.Cast( player.ServerPosition.Extend( pred.CastPosition, player.Distance(pred.CastPosition) + Orbwalking.GetRealAutoAttackRange(target))); } } } } else { var pred = E.GetSPrediction(target); var poly = CombatHelper.GetPoly(pred.UnitPosition.To3D2(), E.Range, E.Width); var enemiesBehind = HeroManager.Enemies.Count( e => e.NetworkId != target.NetworkId && e.IsValidTarget(E.Range) && (poly.IsInside(E.GetPrediction(e).UnitPosition) || poly.IsInside(e.Position)) && e.Position.Distance(player.Position) > player.Distance(pred.UnitPosition)); if (pred.HitChance >= HitChance.High) { if (enemiesBehind > 0) { E.Cast(player.ServerPosition.Extend(pred.CastPosition.To3D2(), E.Range)); } else { if (poly.IsInside(pred.UnitPosition) && poly.IsInside(target.Position)) { E.Cast( player.ServerPosition.Extend( pred.CastPosition.To3D2(), player.Distance(pred.CastPosition) + Orbwalking.GetRealAutoAttackRange(target))); } else { E.Cast( player.ServerPosition.Extend( pred.CastPosition.To3D2(), player.Distance(pred.CastPosition) + Orbwalking.GetRealAutoAttackRange(target))); } } } } }