So I've managed to locate this subroutine:
Code:
int __thiscall unit::getHealth(void *this)
{
int health;
if ( *(_DWORD *)(dword_ED7738 + 48) ) // Not even a clue
health = *((_DWORD *)this + 1139);
else
health = *(_DWORD *)(*((_DWORD *)this + 62) + 72);
return health;
}
I figured this can get me what I want, I might have mangled it a bit but I want to get a unit's health from its base address.
I could swear I tried
Code:
CurrentObject+ 1139
OR
Code:
*((_DWORD *)CurrentObject+ 62) + 72
and one of them worked. I leave the room, come back and it's
And it works, the other two values don't. Now I can't figure out where I got 4556 from.... What did I do?