 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun May 05, 2013 6:04 am Post subject: |
|
|
| Quote: | | i have already found pointers to crosshair x and y |
I think, is some cases it is better to find camera look at angles
I made aimbot for S.T.A.L.K.E.R Call of Pripyat.
Below script gives you both angles:
| Quote: | movss xmm0,[ecx+00000098] // hero X
subss xmm0,[eax+00000098] // object X (enemy X)
mulss xmm0,xmm0
movss xmm1,[ecx+000000a0] // hero Y
subss xmm1,[eax+000000a0] // object Y
mulss xmm1,xmm1
addss xmm0,xmm1
movss xmm1,[ecx+0000009c] // hero Z
subss xmm1,[eax+0000009c] // object Z
mulss xmm1,xmm1
addss xmm1,xmm0
sqrtss xmm1,xmm1
//xmm1 contains 3D distance (x-y-z)
comiss xmm1,[range] // skip autoaim when long distance
jae autoaimskip
sqrtss xmm0,xmm0
//xmm0 contains 2D distance (x-y)
movss dword ptr [dist2D],xmm0
fld dword ptr [ecx+0000009c]
fld dword ptr [eax+0000009c]
fsubp
fld dword ptr [dist2D]
fpatan
fstp dword ptr [angle+4] // up-down angle
fld dword ptr [ecx+00000098]
fld dword ptr [eax+00000098]
fsubrp
fld dword ptr [ecx+000000a0]
fld dword ptr [eax+000000a0]
fsubrp
fpatan
fstp dword ptr [angle] // left-right angle |
ECX has address of player struct, EAX enemy struct.
To achieve "aim at head", I used
[objectZCorrected]
instead of
[eax+0000009c] // object Z
(movss xmm0,[eax+0000009c]; addss xmm0,[adjustment]; movss [objectZCorrected],xmm0 _________________
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|