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 


Basics to find the enemy health

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
PeterFonda
How do I cheat?
Reputation: 0

Joined: 15 May 2012
Posts: 3

PostPosted: Tue May 15, 2012 7:19 am    Post subject: Basics to find the enemy health Reply with quote

Hello!

I'm new here but I'm using this forum just to read some tutorials.

I'm trying to learn about making some basics cheats to some games and I found that I could start doing in the Nation Red (steam game) game. I already have done a basic godmode and it works great (thanks for the tutorials here). I've found the base pointer to it and it works even If I restart the game.

What I'm trying to learn is how can I discover the enemy health? Let's say: in this game I dont have a health bar under the enemys and even got a number of the current enemy health. Can someone point me to the right direction?

I was reading another tutorial in here and say that I maybe have to find what access the player health adress. But I'm getting lost...

Thank you guys.

This is what I got working:



 Description:
This is what I got working on the Nation Red game.
 Filesize:  54.71 KB
 Viewed:  12676 Time(s)




Back to top
View user's profile Send private message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Tue May 15, 2012 7:50 am    Post subject: Reply with quote

One option if you're able to pause the game, find an enemy and search unknown value.
Unpause and shoot him once
Pause and search decreased value
Repeat

This usually works to narrow down the address for that enemy but you might want to debug that address to get all the enemy health addresses.
See the tutorial section

_________________
Back to top
View user's profile Send private message
PeterFonda
How do I cheat?
Reputation: 0

Joined: 15 May 2012
Posts: 3

PostPosted: Tue May 15, 2012 7:52 am    Post subject: Reply with quote

Pingo wrote:
One option if you're able to pause the game, find an enemy and search unknown value.
Unpause and shoot him once
Pause and search decreased value
Repeat

This usually works to narrow down the address for that enemy but you might want to debug that address to get all the enemy health addresses.
See the tutorial section


Thank you Pingo. The problem is that there is almost 20 enemies at the screen. And some of them just die with one shot (depending on my weapon). But there are a few others (like the boss) that I can do what you said.

But what if I found the adress of the boss heatlh. This adress is only to the respectively enemy, not all, right?

EDIT: Things are getting nice. I just found the adress that holds the current weapon the player is carring.
This is so great.
Back to top
View user's profile Send private message
Corruptor
Advanced Cheater
Reputation: 3

Joined: 10 Aug 2011
Posts: 82

PostPosted: Tue May 15, 2012 1:40 pm    Post subject: Reply with quote

What you could do is hoping that there is a universal "damage" function that deals damage to you and your opponents. It's at least worth trying. Right click on your health and use "find out what writes to this adress" and loose some health. A list of instructions writing to your health will be displayed (who would have guessed). Open one of those instructions in the disassembler and set a break point on it. If it also breaks when you shoot an enemy and not only if an enemy hits you, you got lucky: then this function also damages your enemys. You can, then, simply use "find out what adresses this instruction accesses" in the disassembler and it will list all the enemy's health's adresses once you shot them.

Tracking this adress to the base pointer, i asume you will find some sort of array (looking something like [eax+ecx*4]) which may be a list of enemys.

As for the array, you may also try looking into the base pointer you have allready found. If there was something like [eax+ecx*4] , its likely that you are also part of this array. You can then simply change the offset of this pointer (e.g increasing it by 4) and will find all the enemys. (In Star Wars Battlefront for example, enemys are safed in this way).
Back to top
View user's profile Send private message
PeterFonda
How do I cheat?
Reputation: 0

Joined: 15 May 2012
Posts: 3

PostPosted: Tue May 15, 2012 2:08 pm    Post subject: Hey Reply with quote

I just found the boss health here. Using your tips, thanks!

Now, I now to what writes to that adress, but really dont know what do to with it.

Here is a screeshot:

EDIT: Corruptor, thank you! This is an amazing tip. I'll take a look right now!
Thanks!



 Description:
 Filesize:  115.46 KB
 Viewed:  12582 Time(s)




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