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 


How to find enemies entity list ?

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

Joined: 29 Oct 2015
Posts: 35

PostPosted: Fri Jan 22, 2016 8:38 pm    Post subject: How to find enemies entity list ? Reply with quote

Hi,
I thought if making a "kill all enemies" option. But still not sure how find all enemies array \ list ?
How is it generally done ?

Thanks a lot,
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Jan 22, 2016 8:42 pm    Post subject: Reply with quote

Find player health. Right-click address and check to see what is accessing it. Right-click in debugger window to see if found opcodes also access other addresses. If you see one that only accesses (1) address, you can use that for your filter (see CE tutorial, last step). If you see one that accesses more than one, you can use that for your kill-all script.
Back to top
View user's profile Send private message
thefreestyle
Cheater
Reputation: 0

Joined: 29 Oct 2015
Posts: 35

PostPosted: Sat Jan 23, 2016 3:16 am    Post subject: Reply with quote

Hi ++METHOS,

thanks for reply

If i understand you correctly, i need health opcode that access everybody's health constantly, and then inject code that will filter mine, but for enemies will reduce health to zero, did i get you right ?

That's a good solution, but still i would like to know how to find an entity list, since i also want to make an external trainer using C++. I want to be able to get enemies list, iterate and set health to zero. And maybe later change other enemies values like speed, position (send them all off map Laughing ) etc, which would be in an offset away.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Jan 23, 2016 3:37 am    Post subject: Reply with quote

thefreestyle wrote:
If i understand you correctly, i need health opcode that access everybody's health constantly, and then inject code that will filter mine, but for enemies will reduce health to zero, did i get you right ?
-Yes.

Quote:
That's a good solution, but still i would like to know how to find an entity list
-Not sure what you mean by this, but doing the above will get you the structure of whatever you want, be it health, coordinates or whatever. Some games even combine everything in to one structure. Nonetheless, all you need to do is find the base address and you can change all of the offsets for whatever attributes that you find. As far as affecting specific enemies at a time, you'll need to find ID's for everything in order to do that, or, find a way to single them out (by lock-on or selection etc.).
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Sat Jan 23, 2016 8:57 am    Post subject: Reply with quote

In many cases you're not going to find a direct list, and even if there is a list the most effective way to deal with this would be to find code that works on enemy health and modify it anyways.

1 - Find an enemy's HP value.

2 - Right-click, find what accesses that address.

3 - Find code there that runs all the time, click Show Disassembler.

4 - On that code, right-click it and choose "find what addresses this instruction accesses".

5 - Leave the new window open and play in-game a bit, and see if that window starts filling in with lots of addresses (it should), each of those should be an enemy's HP address added to the list as it's touched by the game.

So edit that code, see if it affects all enemies (bam, done), or all enemies and you too (will need filtering).

_________________
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