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 


Finding the type of an entity - e.g. enemy, chest, car, etc

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
ranseier
Newbie cheater
Reputation: 0

Joined: 27 Sep 2015
Posts: 23

PostPosted: Tue Oct 13, 2015 5:10 am    Post subject: Finding the type of an entity - e.g. enemy, chest, car, etc Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Tue Oct 13, 2015 2:20 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
ranseier
Newbie cheater
Reputation: 0

Joined: 27 Sep 2015
Posts: 23

PostPosted: Wed Oct 14, 2015 4:36 pm    Post subject: Reply with quote

@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
View user's profile Send private message
vng21092
Grandmaster Cheater
Reputation: 15

Joined: 05 Apr 2013
Posts: 644

PostPosted: Wed Oct 14, 2015 5:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
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