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 


Player Movement Hook

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
gunminiho
Expert Cheater
Reputation: 0

Joined: 15 Dec 2008
Posts: 144
Location: peru

PostPosted: Mon Oct 18, 2010 3:19 pm    Post subject: Player Movement Hook Reply with quote

Hi to everyone , i was intrested on this particular part of my game , i was thinking on a way to get that of part memory where it can be done.

Anyone can give me a idea on where to look or atleast any directions ?

i guess DirectInput should get me there , but no idea how to get there

i wont mentione the game name because its not ****** here Smile

i got this old version but its outdated now, and its not because i can't update it, its because it was a modification on that game to make it work with Joystick, so i guess it has been changed.

Code:
[ENABLE]
alloc(MYAUTOLR,1024)
label(StopMove)
label(MoveLeft)
label(MoveRight)

MYAUTOLR:
mov edx, [00C4D318]//
mov edx, [edx+1214]//
mov edx, [edx+00000C4]
cmp [edx], 4 //Character Frame Check
jne StopMove
mov edx, [00C4D324]//
mov edx, [edx+28]//
mov edx, [edx+4]//
mov edx, [edx+518]//
mov ecx, [00C4EDB4]//
mov ecx, [ecx+5EC]//
cmp [ecx], edx
jg MoveLeft
jmp MoveRight

MoveLeft:
mov [ebp-8],ffffffff
xor ecx,ecx
jmp 057CBB2D //39 45 ? 0F 9F ? 51 33 ? 39

MoveRight:
mov [ebp-8],1
xor ecx,ecx
jmp 057CBB2D//39 45 ? 0F 9F ? 51 33 ? 39

StopMove:
xor ecx,ecx
xor eax,eax
jmp 057CBB2D//39 45 ? 0F 9F ? 51 33 ? 39

057CBB26:
jmp MYAUTOLR
[DISABLE]
057CBB26: //33 ? 33 ? 39 45 ? 0F 9F
xor ecx,ecx
xor eax,eax
cmp [ebp-04],eax
setg al

dealloc(MYAUTOLR)


You may be wondering why dont i use SendInput or keybrd_evnt.
Reason is that i need to my windows be minimized
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Oct 18, 2010 3:58 pm    Post subject: Reply with quote

Two seconds of Googling found what game this was for, not that it wasn't already obvious. Locked.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming 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