CLEO Help How to modify crosshair coordinates

CLEO related

137

New member
Joined
Mar 11, 2020
Messages
3
Reaction score
0
Location
加利福尼亚州
Hi, I'm making an aimbot run by external EXE
But I have a problem. The crosshair of the weapon in the game does not seem to be in the middle of the screen. So when I change 0xB6F258 and 0xB6F248, the crosshair will not face the enemy.
I want to know the memory address of the crosshair coordinate, because I can't find it.
I know that modifying 0xB6EC10 and 0xB6EC14 can make crosshair in the middle of the screen, but this is not the effect I want because it is not beautiful.
I hope you can provide me with a solution. If you want to provide source code, it is better to use C++. Of course, I hope it is simpler, because my C++level is not good
Thank you very much!
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
226
Location
( ͡° ͜ʖ ͡°)
The code checks the current weapon of the player and adjusts the crosshair position based on the weapon's ID. The crosshair position is adjusted using the variables crosshairX and crosshairy , which represent the x and y coordinate of the crosshair on the screen, respectively.

C++:
int playerWeapon = GetPlayerWeapon();

if (playerWeapon >= 22 && playerWeapon <= 29) {
    crosshairX -= 0.07780f;
    crosshairY += 0.04253f;
} else if (playerWeapon == 32) {
    crosshairX -= 0.07780f;
    crosshairY += 0.04253f;
} else if (playerWeapon >= 30 && playerWeapon <= 31) {
    crosshairX -= 0.05200f;
    crosshairY += 0.02800f;
} else if (playerWeapon == 33) {
    crosshairX -= 0.03570f;
    crosshairY += 0.01897f;
}
 

137

New member
Joined
Mar 11, 2020
Messages
3
Reaction score
0
Location
加利福尼亚州
The code checks the current weapon of the player and adjusts the crosshair position based on the weapon's ID. The crosshair position is adjusted using the variables crosshairX and crosshairy , which represent the x and y coordinate of the crosshair on the screen, respectively.

C++:
int playerWeapon = GetPlayerWeapon();

if (playerWeapon >= 22 && playerWeapon <= 29) {
    crosshairX -= 0.07780f;
    crosshairY += 0.04253f;
} else if (playerWeapon == 32) {
    crosshairX -= 0.07780f;
    crosshairY += 0.04253f;
} else if (playerWeapon >= 30 && playerWeapon <= 31) {
    crosshairX -= 0.05200f;
    crosshairY += 0.02800f;
} else if (playerWeapon == 33) {
    crosshairX -= 0.03570f;
    crosshairY += 0.01897f;
}
Can you directly modify the coordinates of the crosshair when aiming? Just like modifying 0xB6F258 and 0xB6F248.
It seems difficult for me to use offset to calculate
 
Top