Hi all,
This is my first post so sorry if I have violated any rules.
After learning c++ for a couple of weeks I have gotten into putting together my first botched cheat for csgo.
I have used a tweaked procmem (thanks to Yamiez and his awesome tutorial) for the hook and I know for a fact the game is attached as I can write +jump etc into my program and it works in game.
I am so close to finally get my first bhop cheat working however I am utterly confused with a 'localbase'
See below:
Code:
const DWORD localBase = 0x00A7D4CC;
const DWORD flagOffset = 0x100;
const DWORD jumpOffset = 0x04F33AA8;
void bhopF() {
//DWORD ClientDLL = Mem.Module("client.dll");
DWORD clientdll, clientdllsize;
int onFloor = 257;
clientdll = gMemory->Module("client.dll", clientdllsize);
gMemory->Process("csgo.exe");
DWORD localPlayer = Mem.Read<DWORD>(clientdll + localBase); // This is our local player.
int m_fFlags = Mem.Read<DWORD>(localPlayer + flagOffset); // this is m_fFlags.
if (GetAsyncKeyState(key_space) & 0x8000 && m_fFlags == onFloor) { /* If player is holding space, and m_fFlags is equal to 257 press space.*/
std::cout << "BHOP!";
gMemory->Write<int>(clientdll + jumpOffset, 5);
Sleep(100);
gMemory->Write<int>(clientdll + jumpOffset, 4);
}
}
Can anyone enlighten me on where I find this localbase value? Is it just an offset or am I completely mixed up here?
I have tried using different offsets from updated lists but I'm honestly now sure which one I'm looking for.
I just need this to work -
Code:
DWORD localPlayer = Mem.Read<DWORD>(clientdll + localBase); // This is our local player.
Thanks so much.