Solved [Delphi]Mouse Target Coordinates

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

jotatera

Spanish
Dank Tier Donator
Jul 2, 2013
18
182
0
I'm trying to make a aimbot and failed.

I'm using Delphi 7 code is as follows:

in expos eyPos, ezPos. = Floats on the position of the enemy.
xPos, yPos, ZPOS. = My position

I have a OPK And it works very well, but failed to understand the aimbot.:(

code:

C++:
var
xPos,yPos,zPos,yawY,pitchX,exPos,eyPos,ezPos,distance:single;
begin
distance: = sqrt (
((Expos - xPos) * (Expos - xPos)) +
((eyPos - yPos) * (eyPos - yPos)) +
((ezPos - ZPOS) * (ezPos - ZPOS))
);


if (distance> 0.0) then
begin

pitchX: = Math.Arcsin ((ezPos - ZPOS) / distance) * 180 / PI;
baseaddress = $ 1029344; // mouseY
WriteProcessMemory (HandleWindow, ptr (baseaddress)pitchX, 4, write);

yawY: = -Math.ArcTan2 (expos - xPos, eyPos - yPos)/ Pi * 180 + 180;
baseaddress = $ 1029340; // mouseX
WriteProcessMemory (HandleWindow, ptr (baseaddress)yawY, 4, write);
end;
end;

Thanks for the help you can offer me.
 
Last edited:

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,185
78,998
2,399
This is what I'm using:

C++:
vec CalcAngle(vec src, vec dst)
{
	vec angles;

	angles.x = (-(float)atan2(dst.x - src.x, dst.y - src.y)) / PI * 180.0f + 180.0f;
	angles.y = (atan2(dst.z - src.z, distxy(src, dst))) * 180.0f / PI;
	angles.z = 0.0f;

	return angles;
}
 

jotatera

Spanish
Dank Tier Donator
Jul 2, 2013
18
182
0
HE TRIED calculate the coordinates, to find the position MOUSE AIMING TO MY GOAL, RESULTS: FAIL.

thank me if you can help, when you leave the coordinates point in my enemy.

Coordinates, when I point my enemy


C++:
MouseX = Integer: 1079445544, Float: 3,359872818;//POSITION Mouse Target Enemy
MouseY = Integer: 0, Float: 0; //POSITION  Mouse Target Enemy

EnemyX = Integer: 1120850412, Float: 103,4100037
EnemyY = Integer: 1126465556, Float: 164,5003052
EnemyZ = Integer: 3292002386, Float: -735,8800049 

MiPJx = Integer: 1123293499, Float:  122,0492783
MiPJy = Integer: 1130397716, Float:  224,5003052
MiPJz = Integer: 3290636758, Float:  -652,5286865

---------------------TEST TWO---------------------------------

MouseX = Integer: 1025723346, Float: 0,03986722976; //POSITION  Mouse Target Enemy
MouseY = Integer: 0, Float: 0; //POSITION  Mouse Target Enemy

EnemyX = Integer:  1120850412, Float:  103,4100037 // position X enemy
EnemyY = Integer:  1126465556, Float:  164,5003052 // position Y enemy
EnemyZ = Integer:  3292002386, Float:  -735,8800049 // position Z enemy
 
MiPJx = Integer: 1107750724, Float:  33,73365784 // my position x
MiPJy = Integer: 1150324739, Float:  1156,500366 // my position y
MiPJz = Integer: 3275330451, Float:  -185,5764618 my position z
 
Last edited:

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,185
78,998
2,399
We can't help you because your English is not good enough to understand. You should look for a website in your language, sorry :(
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,185
78,998
2,399
I think the OP is asking why his aimbot is not 'aiming' properly.
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,185
78,998
2,399
MiPyjama

Not sure, maybe it has a meaning in some foreign I am not familiar with. But I assume it's Player Position.
 

jotatera

Spanish
Dank Tier Donator
Jul 2, 2013
18
182
0
What is miPJ?

C++:
MouseX = Integer: 1025723346, Float: 0,03986722976; //POSITION  Mouse Target Enemy
MouseY = Integer: 0, Float: 0; //POSITION  Mouse Target Enemy

EnemyX = Integer:  1120850412, Float:  103,4100037 // position X enemy
EnemyY = Integer:  1126465556, Float:  164,5003052 // position Y enemy
EnemyZ = Integer:  3292002386, Float:  -735,8800049 // position Z enemy
 
MiPJx = Integer: 1107750724, Float:  33,73365784 // my position x
MiPJy = Integer: 1150324739, Float:  1156,500366 // my position y
MiPJz = Integer: 3275330451, Float:  -185,5764618 my position z
SORRY FOR MY BAD ENGLISH, REALLY I NEED HELP.

Try ATAN2, ATAN, PI and nothing failed to get the mouse position my enemy.
 
Last edited by a moderator:

jotatera

Spanish
Dank Tier Donator
Jul 2, 2013
18
182
0
This is what I'm using:

C++:
vec CalcAngle(vec src, vec dst)
{
	vec angles;

	angles.x = (-(float)atan2(dst.x - src.x, dst.y - src.y)) / PI * 180.0f + 180.0f;
	angles.y = (atan2(dst.z - src.z, distxy(src, dst))) * 180.0f / PI;
	angles.z = 0.0f;

	return angles;
}

THIS IS MY CODE DOES NOT WORK.

C++:
var
xPos,yPos,zPos,yawY,pitchX,exPos,eyPos,ezPos,distance:single;
begin
distance: = sqrt (
((Expos - xPos) * (Expos - xPos)) +
((eyPos - yPos) * (eyPos - yPos)) +
((ezPos - ZPOS) * (ezPos - ZPOS))
);


if (distance> 0.0) then
begin

pitchX: = Math.Arcsin ((ezPos - ZPOS) / distance) * 180 / PI;
baseaddress = $ 1029344; // mouseY
WriteProcessMemory (HandleWindow, ptr (baseaddress) [USER=10096]pit[/USER]chX, 4, write);

yawY: = -Math.ArcTan2 (expos - xPos, eyPos - yPos)/ Pi * 180 + 180;
baseaddress = $ 1029340; // mouseX
WriteProcessMemory (HandleWindow, ptr (baseaddress),@yawY, 4, write);
end;
end;
 

jotatera

Spanish
Dank Tier Donator
Jul 2, 2013
18
182
0
This is what I'm using:

C++:
vec CalcAngle(vec src, vec dst)
{
	vec angles;

	angles.x = (-(float)atan2(dst.x - src.x, dst.y - src.y)) / PI * 180.0f + 180.0f;
	angles.y = (atan2(dst.z - src.z, distxy(src, dst))) * 180.0f / PI;
	angles.z = 0.0f;

	return angles;
}
C++:
MouseX = Integer: 1079445544, Float: 3,359872818;// Mouse Target Enemy
MouseY = Integer: 0, Float: 0; // Mouse Target Enemy

EnemyX = Integer: 1120850412, Float: 103,4100037
EnemyY = Integer: 1126465556, Float: 164,5003052

MiPJx = Integer: 1123293499, Float:  122,0492783 // MI POSITION X
MiPJy = Integer: 1130397716, Float:  224,5003052 // MI POSITION Y



vec CalcAngle()
{
    vec angles;
    angles.x = (-(float)atan2(103,4100037 - 122,0492783, 164,5003052 - 224,5003052)) / PI * 180.0f + 180.0f;
    return angles;
}

vec CalcAngle()
{
    vec angles;
    angles.x = -(-2,840389907157582f) / (3,14159265359) * 180.0f + 180.0f;
    return angles;
}
Result:
angles.x = 342,74235727838186

the result is well above the target mouseX


correct result should be 3,359872818
 
Last edited:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods