[C++] How to make a simple external bunnyhop hack!
Hello everyone, gonna teach you guys how to make a simple bunnyhop today.
To get started you need to learn C++, if you do not know C++ i recommend you to read my Tutorial for getting started with gamehacking, which can be found Here!
Credits for helping me ALOT with game hacking: @jkfauvel
When you feel comfortable enough to create a hack you can continue with this tutorial!
First of all, you need 2 files, ProcMem.h and ProcMem.cpp.
Open a Project and Add a header file called ProcMem.h. Within this header file paste the content from this pastebin:
ProcMem.h
After that you will need to add a source file called ProcMem.cpp, paste the content from this pastebin into it:
ProcMem.cpp
After you are done copy pasting theese 2, create a new source folder and name it main.cpp, after you are done adding all of theese your project should look like this:

After you have gotten all of the things sorted, we can start working on the code!
Now we need to make our declarations!
Once thoose are done, we need to start defining some things we are gonna need, such as key codes and key scans!
Just under that type in:
After you have gotten your declaration done, you need to get the latest offsets for csgo, you can get theese by using cheat engine or searching around! (Currently theese offsets are up to date as of 2015-02-24)
Now we have all our Offsets and declarations done, we can start working on our actual bunnyhop!
We are now gonna make our bhopFunc and start reading the games memory!
After you have choosen the Process and Module we're reading from, you wanna add this which is our localPlayer and m_fFlags:
Now we have everything we need to create our bhop, we need to actually make it jump when holding space bar!
To do this we must add this line:
Everything we need is in the bunnyhop function, all we need to do is add a loop to our main function which calls our bhopFunc! Which can be done like this:
Now, hopefully you have your very own working bunnyhop hack. This exact method is probably detected, but have fun creating hacks guys!
If you get banned using this method, dont blame me. I have warned you
Make sure to click that "Thanks" button if helped you!
Im gonna be heading to sleep now, if there are any issues you want help with, I'll reply tomorrow!
Edit: (Was tired when i made this, sorry for small misstakes!)
Since this only spams a bunch of 9's when holding down space you will have to open console and type the following:
1. unbind space
2. bind 9 "+jump"
3. ?
4. Profit
To get started you need to learn C++, if you do not know C++ i recommend you to read my Tutorial for getting started with gamehacking, which can be found Here!
Credits for helping me ALOT with game hacking: @jkfauvel
When you feel comfortable enough to create a hack you can continue with this tutorial!
First of all, you need 2 files, ProcMem.h and ProcMem.cpp.
Open a Project and Add a header file called ProcMem.h. Within this header file paste the content from this pastebin:
ProcMem.h
After that you will need to add a source file called ProcMem.cpp, paste the content from this pastebin into it:
ProcMem.cpp
After you are done copy pasting theese 2, create a new source folder and name it main.cpp, after you are done adding all of theese your project should look like this:

After you have gotten all of the things sorted, we can start working on the code!
Now we need to make our declarations!
Code:
#include "ProcMem.h" // including the header we just made! #include <iostream> // Used for ALOT of features. #include <Windows.h> // let us do stuff like keybd_event, sleep and alot of other stuff! // Not gonna need to use namespace std here, we have nothing to use it on! :) ProcMem Mem; // Shortcut for our Memory reading function!
Just under that type in:
Code:
#define key_space 0x20 // key_space is space button. #define key9 0x39 // key 9 is the button 9 (Not to be confused with numpad 9) #define key9_sc 0x0A // Scan code so we can use it in a keybd_event() void bhopFunc(); // This is where we are going to put our bunnyhop function!
After you have gotten your declaration done, you need to get the latest offsets for csgo, you can get theese by using cheat engine or searching around! (Currently theese offsets are up to date as of 2015-02-24)
Code:
const DWORD localBase = 0xA6C90C // This is our localBase. const DWORD flagOffset = 0x100 // This is our m_fFlags offset!
Now we have all our Offsets and declarations done, we can start working on our actual bunnyhop!

We are now gonna make our bhopFunc and start reading the games memory!
Code:
void bhopFunc() {
int FL_ONGROUND = 257; // When player is on ground this value is 257, 256 when in air.
Mem.Process("csgo.exe"); // Process we are reading from.
DWORD ClientDLL = Mem.Module("client.dll"); // This is the module we are reading from.
}
After you have choosen the Process and Module we're reading from, you wanna add this which is our localPlayer and m_fFlags:
Code:
DWORD localPlayer = Mem.Read<DWORD>(ClientDLL + localBase); // This is our local player. int m_fFlags = Mem.Read<DWORD>(localPlayer + flagOffset); // this is m_fFlags.
To do this we must add this line:
Code:
if (GetAsyncKeyState(key_space) & 0x8000 && m_fFlags == FL_ONGROUND) { /* If player is holding space, and m_fFlags is equal to 257 press space.*/
keybd_event(KEY9, KEY9SC, 0, 0);
keybd_event(KEY9, KEY9SC, KEYEVENTF_KEYUP, 0);
}
Everything we need is in the bunnyhop function, all we need to do is add a loop to our main function which calls our bhopFunc! Which can be done like this:
Code:
int main()
{
while(true) {
bhopFunc();
}
}
Now, hopefully you have your very own working bunnyhop hack. This exact method is probably detected, but have fun creating hacks guys!
If you get banned using this method, dont blame me. I have warned you

Make sure to click that "Thanks" button if helped you!
Im gonna be heading to sleep now, if there are any issues you want help with, I'll reply tomorrow!
Edit: (Was tired when i made this, sorry for small misstakes!)
Since this only spams a bunch of 9's when holding down space you will have to open console and type the following:
1. unbind space
2. bind 9 "+jump"
3. ?
4. Profit

