I'm working on a nudge hack in-game that uses registered console cmds to nudge, but I'm having a problem. I have the function registering and everything, but when I have it run, it doesn't move my character. Here's my code, including my find playerbase code(I know it's terrible and has zero error checking, but this is just a base and will fix up when I get it up and running)
Code:
void upNudge(void)
{
float* Z = (float*)(playerBase + 0x7A0);
*Z = *Z + 0.130f;
}
Code:
void updatePlayerBase(void)
{
DWORD* unk = (DWORD*)(0x10B65F4);
DWORD* unk2 = (DWORD*)(*unk + 0x34);
playerBase = (DWORD*)(*unk2 + 0x24);
}
EDIT: Though irrelevent, I found this address a lot in random-seeming lua functions: 0x98AA70. What is it? I set it to zero and my char fell through the earth... Pretty cool, but still curious what it actually is. Also noticed that it screws with your mouseover. And camera. Little confused now.