Open willstar-51 opened 4 years ago
I guess it's sensitivity yeah I'm honestly not sure i just tried some different multipliers until i got somewhat close to what i expected .. when you put more delay between the frames you can see if it goes too far or not far enough, adjust accordingly
was one of my first projects was happy it even ran :D good luck with your project :)
On Thu, Mar 26, 2020, 21:07 willstar-51 notifications@github.com wrote:
Hi, I am making a similar program like yours and I had everything done except for the mouse movement. I tried pyautogui and pynput but in the game the mouse flicks and spins around. Can you explain to me about your mouse movement function? Also, in file tNiddy.py line 70, mouse.move(rheadpos[0]1.6, rheadpos[1]1.3), is 1.6 and 1.3 sensitivity related or something else?
Thank you.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/allokrv/KrunkerBot/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKKDX3UZJJAC2WHHQ5XTOCDRJOYXNANCNFSM4LUQFTSA .
Thanks for the quick response, when you are using your bot, does your crosshair flicks around like crazy when an enemy appears? I am using pyautogui and it flicks so bad that it is impossible to aim, I guess I need to switch to pynput.
are you resetting the movement vector and updating the relativ Position every frame? what happens when no enemies are detected? sounds a lot like that other than that maybe the game has their own mouse movement with your windows mouse locked (like gta v) .. Time for some debugging :D
On Thu, Mar 26, 2020, 23:54 willstar-51 notifications@github.com wrote:
Thanks for the quick response, when you are using your bot, does your crosshair flicks around like crazy when an enemy appears? I am using pyautogui and it flicks so bad that it is impossible to aim, I guess I need to switch to pynput.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/allokrv/KrunkerBot/issues/1#issuecomment-604728256, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKKDX3RZPPRTDLL4IYSHFS3RJPMJDANCNFSM4LUQFTSA .
I don't have any relative position variable but that's a very good point. With cv2.circle and pyautogui, I was able to pinpoint the cursor and I found out when you move in the game, the cursor moves to the edge of the screen and then gets moved to the center of the screen once reaching a certain coordinate. So I need to make some relative variables or move the cursor bit by bit until I reach the enemy.
Also, when no enemies are detected the program won't do anything because there is a boolean variable that determines whether the function activates or not.
Thanks for all the help :)
Hi, I am making a similar program like yours and I had everything done except for the mouse movement. I tried pyautogui and pynput but in the game the mouse flicks and spins around. Can you explain to me about your mouse movement function? Also, in file tNiddy.py line 70,
mouse.move(rheadpos[0]*1.6, rheadpos[1]*1.3)
, is 1.6 and 1.3 sensitivity related or something else?Thank you.