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 


Advice with shared code

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

Joined: 29 Jul 2013
Posts: 39

PostPosted: Sat Apr 13, 2019 9:05 am    Post subject: Advice with shared code Reply with quote

I've found the instruction that reduces everyone's health (teammates and enemies).

Code:
mov [esi+3A],bx
mov [esi+00000082],cx


I need advice on how to modify this to only apply to team mates.[/code]
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sat Apr 13, 2019 9:39 am    Post subject: Reply with quote

You'll have to look at the registories or the structure to find a difference.
If you have the other structures hooked you could compare to the base addresses. An easy way is to use the structure spider and scan to find strings (names or classes) or I like to look for address (functions) that are unique to the player and team mates, then you only need one hooked to do a compare with.

But the CE tutorial goes over shared opcode.

_________________
Back to top
View user's profile Send private message Visit poster's website
daninthemix
Cheater
Reputation: 0

Joined: 29 Jul 2013
Posts: 39

PostPosted: Sun Apr 14, 2019 12:30 am    Post subject: Reply with quote

TheyCallMeTim13 wrote:
You'll have to look at the registories or the structure to find a difference.
If you have the other structures hooked you could compare to the base addresses. An easy way is to use the structure spider and scan to find strings (names or classes) or I like to look for address (functions) that are unique to the player and team mates, then you only need one hooked to do a compare with.

But the CE tutorial goes over shared opcode.


Thanks, I figured out a unique identifier for (I assume) the player class and changed my code:

Code:
cmp [esi+90],400
jne originalcode
jmp exit


Now my guys (only) are immune to gunfire...but they still get hurt when run over, or in explosions etc. It would be so much easier to just be able to find the health values, but I just can't. Both manual and automatic pointer scans do not find the address, and it changes every level.

Sad
Back to top
View user's profile Send private message
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