public static Vector3 GetQWallPosition(Obj_AI_Hero target) { if (!VHRMenu["dz191.vhr.misc"]["dz191.vhr.misc.tumble"]["qburst"].GetValue<MenuBool>().Value || target.HealthPercent >= 45 || target.HealthPercent > ObjectManager.Player.HealthPercent || (target.IsRunningAway())) { return Vector3.Zero; } var Positions = GetCheckWallPositions(70).ToList().OrderBy(t => t.DistanceSquared(target.ServerPosition)); foreach (var pos in Positions) { if (pos.IsWall() && pos.IsSafePosition() && pos.PassesNoQIntoEnemiesCheck()) { return pos; } } return Vector3.Zero; }
public static Vector3 GetQWallPosition(Obj_AI_Hero target) { if (!VHRMenu["dz191.vhr.misc"]["dz191.vhr.misc.tumble"]["qburst"].GetValue <MenuBool>().Value || target.HealthPercent >= 45 || target.HealthPercent > ObjectManager.Player.HealthPercent || (target.IsRunningAway())) { return(Vector3.Zero); } var Positions = GetCheckWallPositions(70).ToList().OrderBy(t => t.DistanceSquared(target.ServerPosition)); foreach (var pos in Positions) { if (pos.IsWall() && pos.IsSafePosition() && pos.PassesNoQIntoEnemiesCheck()) { return(pos); } } return(Vector3.Zero); }