View previous topic :: View next topic |
Author |
Message |
ranseier Newbie cheater
Reputation: 0
Joined: 27 Sep 2015 Posts: 23
|
Posted: Tue Oct 13, 2015 5:10 am Post subject: Finding the type of an entity - e.g. enemy, chest, car, etc |
|
|
Hi,
I have found the a static pointer array to almost all entities in a game. this array holds the enemies but also other entities like chests, cars, etc.
Now I am trying to figure out the type of a specific entity. is it an enemy, a chest or a car?
Using the dissect data/structure with 2 groups (addresses of 3 enemies and 3 cars) didn't reveal anything useful to distinct enemies from cars.
My guess is, that the type of the entities is in another pointer. something like a parent pointer pointing to a entity. could this be possible?
if yes, how do I find such (parent)pointers?
Thanks
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Tue Oct 13, 2015 2:20 pm Post subject: |
|
|
the fist value of the structure wasn't different ?
Often objects inherited from a base class have a unique vtable for each type
As for finding a parent pointer, find the base address (you should already have that as dissect structure is useless if you don't) and then do a 4/8 byte hex scan for that address and hope there's not too many results
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
ranseier Newbie cheater
Reputation: 0
Joined: 27 Sep 2015 Posts: 23
|
Posted: Wed Oct 14, 2015 4:36 pm Post subject: |
|
|
@Dark Byte:
The first first value of the structure (each enitity) didn't help in this case.
My goal is to find the enemy coordinates, which already works. I found an array that holds the coordinates of all entities in the game - beside some other information. too bad, this array does not have anything that looks like an entitiy type.
what do you guys recommend now? search for another array that may contains all the coordinates and hope for an entity type there?
|
|
Back to top |
|
 |
vng21092 Grandmaster Cheater
Reputation: 15
Joined: 05 Apr 2013 Posts: 644
|
Posted: Wed Oct 14, 2015 5:34 pm Post subject: |
|
|
what are you trying to accomplish though? Something like entity ID would probably be within the same structure as it's health, I doubt you'd find the entity type in the coordinates structure. In the health structure you'll probably find a type, but in coordinates it'll probably just filter you from enemies.
|
|
Back to top |
|
 |
|