diff --git a/cheats/aimbot.py b/cheats/aimbot.py index d211918..8c5476f 100644 --- a/cheats/aimbot.py +++ b/cheats/aimbot.py @@ -1,7 +1,7 @@ from win32api import GetAsyncKeyState from hack import Hack -from utils import Vec, angle_fixer, calculate_angle, hypot +from utils import Vec, angle_fixer, hypot class Aimbot(Hack): @@ -133,3 +133,8 @@ class Aimbot(Hack): client_state + offset["dwClientState_ViewAngles"] + offset["float"], final_angle.y) self.hack_loop(cheat) + + +def calculate_angle(local_pos: Vec, ennemy_pos: Vec, angles: Vec) -> Vec: + """Angle calculation for aimbot""" + return ((ennemy_pos.minus(local_pos).to_angle().minus(angles))) diff --git a/utils.py b/utils.py index d1afa7c..b0d999d 100644 --- a/utils.py +++ b/utils.py @@ -96,11 +96,6 @@ class Vec: return xy and float(self.z) == 0. -def calculate_angle(local_pos: Vec, ennemy_pos: Vec, angles: Vec) -> Vec: - """Angle calculation for aimbot""" - return ((ennemy_pos.minus(local_pos).to_angle().minus(angles))) - - def angle_fixer(angle: Vec) -> Vec: """Force the angle to respect game limitation""" # Limit of pitch in game is ]-89; 180[