 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
thefreestyle Cheater
Reputation: 0
Joined: 29 Oct 2015 Posts: 35
|
Posted: Fri Jan 22, 2016 8:38 pm Post subject: How to find enemies entity list ? |
|
|
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 |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Jan 22, 2016 8:42 pm Post subject: |
|
|
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 |
|
 |
thefreestyle Cheater
Reputation: 0
Joined: 29 Oct 2015 Posts: 35
|
Posted: Sat Jan 23, 2016 3:16 am Post subject: |
|
|
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 ) etc, which would be in an offset away. |
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Jan 23, 2016 3:37 am Post subject: |
|
|
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 |
|
 |
Rydian Grandmaster Cheater Supreme
Reputation: 31
Joined: 17 Sep 2012 Posts: 1358
|
Posted: Sat Jan 23, 2016 8:57 am Post subject: |
|
|
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 |
|
 |
|
|
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
|
|