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 


enemy player health help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
axel9999
Newbie cheater
Reputation: 0

Joined: 15 Oct 2012
Posts: 10

PostPosted: Thu Jan 20, 2022 10:32 am    Post subject: enemy player health help Reply with quote

I have a problem, I have found the health address. but if I do a NOP, my health doesn't go down, but the enemy's doesn't either. I want to know what I have to do so that only my health stops.
I attach an image with the code, in green, it is the health code. help. Do I have to codecave with that green address? and what should I put?



health.jpg
 Description:
 Filesize:  134.51 KB
 Viewed:  722 Time(s)

health.jpg


Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Thu Jan 20, 2022 10:50 am    Post subject: Reply with quote

Find out what addresses access this instruction. Then filter out your health address from your enemies' health addresses. Add your HP address to group 1 and a few others to group 2 then scan for commonalities.

Locate a row where the value for the offset you chose is different from all the enemies' value.

Once you have that information you can just use a compare instruction:
Code:

label(isEnemy)
...
cmp [register+offset], value
// if the value isn't the player's value then jump to isEnemy
jne isEnemy
// code to execute for player here
jmp code // or jmp return depending on the situation/instructions used

isEnemy:
 jmp code

code:
  // original instructions
...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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