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?
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;
}
DWORD classIDPointer = FindPointer(Entity.dwBase, {0x8, 0x8, 0x1, 0x14});
int classID = ReadMemory<int>(classIDPointer);