External Class IDs

Posts 12 of 2 · Page 1 of 1
External Class IDs
Hi, I'm wondering how I can get the ClassID of an entity. I used to use the RPM(RPM(RPM(RPM(ent + 0x8)+0x8)+0x1)+0x14) but I think that's changed now? Just to verify, the classID of player entities is 15?
Quote Originally Posted by $ighmaniac View Post
Hi, I'm wondering how I can get the ClassID of an entity. I used to use the RPM(RPM(RPM(RPM(ent + 0x8)+0x8)+0x1)+0x14) but I think that's changed now? Just to verify, the classID of player entities is 15?
Use this function instead:
Code:
DWORD FindPointer(DWORD address, std::vector<DWORD> offsets)
	{
		for (unsigned int i = 0; i < offsets.size(); i++)
		{
			ReadProcessMemory(pHandle, (BYTE*)address, &address, sizeof(address), 0);
			address += offsets[i];
		}
		return address;
	}
To call it:
Code:
DWORD classIDPointer = FindPointer(Entity.dwBase, {0x8, 0x8, 0x1, 0x14});
int classID = ReadMemory<int>(classIDPointer);
Player entity is 38. You can dump all the class id's by typing "sv_dump_class_info" into your console.
Posts 12 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?