• # Thread: [Help] Princip of an Aimbot

1. ## [Help] Princip of an Aimbot

Hello all

So can someone explain me the main princip of an aimbot ?

I've found the (x|y) coordinates of me and the enemy. And I have my cursor position. I want to make an Aimbot for a simple 2D game.
But how to combine the player-coordinates and the mouse coordinates ?
How to calculate it ?
I dont get , how I can set my mouse position on the enemy (x|y) :/

Please explain and help me a little :P

Thanks and sorry for my english :/

2. So if its a 2D game u see everything from top. Get your screen position by moving cursor on your char and caling GetCursorPos. Then do the same for one enemy. Count distance with pythagoran (i dont know english version but u knwo what i mean). Then count the distance with ingame coords and count proportion. Thats all, this is just a basic math, so you know the screen distance using ingame coords. Then get angle and ur done

Btw game name?

3. Game name is Counter Strike 2D. I dont want to ruin the game so I won't release it or play with it online...just btw.
Yea I know what you mean . I used the GetCursorPos in C++. I wrote down my Pos but how I do it with the enemy Pos ? I mean it changes everytime he moves and I cant read it from the client mhhh

4. I understand you got memory addresses with actual, live X Y of enemies in the game. Then its just math

5. Mh it's still not clear to me.
I can calculate the Ingame-distance with pytagoras. Okay
But even if i have the distance , I still dont know which direction he is ?

What I got is :

Mouse Position in client (got it with C++ GetCursorPos)
Player and Enemy (XY) Coordinates Ingame.

Maybe you can do an example or something. Im still new to this sorry :/

6. You have your world XY and enemy XY. Count angle and ur done

7. You don't need to get your mouse position, it's totally irrelevant.

8. Thats it? My paint skillz

9. Originally Posted by Szaka
Thats it? My paint skillz
27 is that just a constant when transforming points to pixels, or how'd you figure that out :P

10. i cound distance between pixels and between world coords and divided it

Page 1 of 2 12 Last