static void update_local_player() {
DWORD lpStart = mem->FindPatternArray(modClient.dwBase, modClient.dwSize, "xxx????xx????xxxxx?", 19, 0x8D, 0x34, 0x85, 0x0, 0x0, 0x0, 0x0, 0x89, 0x15, 0x0, 0x0, 0x0, 0x0, 0x8B, 0x41, 0x8, 0x8B, 0x48, 0x0);
DWORD lpP1 = mem->Read<DWORD>(lpStart + 3);
BYTE lpP2 = mem->Read<BYTE>(lpStart + 18);
dwLocalPlayer = (lpP1 + lpP2) - modClient.dwBase;
}
static void update_entity_list() {
DWORD elStart = mem->FindPatternArray(modClient.dwBase, modClient.dwSize, "x????xx?xxx", 11, 0x5, 0x0, 0x0, 0x0, 0x0, 0xC1, 0xE9, 0x0, 0x39, 0x48, 0x4);
DWORD elP1 = mem->Read<DWORD>(elStart + 1);
BYTE elP2 = mem->Read<BYTE>(elStart + 7);
dwEntityList = (elP1 + elP2) - modClient.dwBase;
}