Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


asm memory aimbot help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Sun May 05, 2013 5:42 am    Post subject: asm memory aimbot help Reply with quote

hi, i want to take my gamehacking experience to the next level, but unfortunately i don't know how.
i want to make an aimbot.
i have already found pointers to crosshair x and y
to player and enemy position x, y, z
i heard that there's a function that can calculate the crosshair x and y position so it points at enemy's position based on the pointers above
thing is that i want to implement the cheat code in a script.
a little help would be appreciated.
thanks Smile

_________________
... Fresco
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun May 05, 2013 6:04 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites