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 


Protect only player health, not enemy

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

Joined: 29 Jul 2013
Posts: 39

PostPosted: Tue Nov 14, 2017 9:59 am    Post subject: Protect only player health, not enemy Reply with quote

I did 'replace with code that does nothing' on the instruciton that reduces player health when hit. Unfortunately it also seems to make enemies invincible too.

How can I modify the below to only affect the player?

00446C49 - D9 58 04 - fstp dword ptr [eax+04]
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Tue Nov 14, 2017 10:12 am    Post subject: Reply with quote

daninthemix wrote:
Code:
fstp dword ptr [eax+04]

on disassembler window right-click the instruction and choose find out what addresses this instruction access, then hit 3-5 enemies and get a hit as well.

from there you whether select all addresses and open them in dissect data / structures ctrl-d and separate your player's health in a different group to find the difference point.
or you can ctrl-r each address from that window were addresses are and see each register and what it contains if enemies registers are different than player's register state then you are good to go and take that register for your compare.

i can see your game is 32bit, so in some point its good for not looking into the new 64bit registers but also a less chance to find a good compare point from looking into 32bit registers.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
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