From 0f3e933ca35693ed1fda22c23cfb8847e1bf4add Mon Sep 17 00:00:00 2001 From: Qfc9 Date: Sat, 16 Apr 2022 14:10:45 -0400 Subject: [PATCH] Added a variable for easy shifting of AA when in games like fortnite --- main.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index c489e8f..720f91c 100644 --- a/main.py +++ b/main.py @@ -22,12 +22,17 @@ def main(): # How big the Autoaim box should be around the center of the screen aaDetectionBox = 320 - # Autoaim speed + # For use in games that are 3rd person and character model interferes with the autoaim + # EXAMPLE: Fornite and New World + aaRightShift = 0 + + # Autoaim mouse movement amplifier aaMovementAmp = 1.1 # Person Class Confidence confidence = 0.5 + # If you want to main slightly upwards towards the head headshot_mode = True # Set to True if you want to get the visuals @@ -47,7 +52,7 @@ def main(): # Setting up the screen shots sctArea = {"mon": 1, "top": videoGameWindow.top + (videoGameWindow.height - screenShotHeight) // 2, - "left": ((videoGameWindow.left + videoGameWindow.right) // 2) - (screenShotWidth // 2), + "left": aaRightShift + ((videoGameWindow.left + videoGameWindow.right) // 2) - (screenShotWidth // 2), "width": screenShotWidth, "height": screenShotHeight} @@ -105,7 +110,7 @@ def main(): targets.sort_values(by="dist", ascending=False) # Take the first person that shows up in the dataframe (Recall that we sort based on Euclidean distance) - xMid = round((targets.iloc[0].xmax + targets.iloc[0].xmin) / 2) + xMid = round((targets.iloc[0].xmax + targets.iloc[0].xmin) / 2) + aaRightShift yMid = round((targets.iloc[0].ymax + targets.iloc[0].ymin) / 2) box_height = targets.iloc[0].ymax - targets.iloc[0].ymin