Results 1 to 5 of 5
  1. #1
    bulentERH's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    381
    My Mood
    Amused

    Bunny Hop Coding Help!

    Hello, I was following Fleep's video on how to make a bunny hop hack for CS:GO. I have no errors but when I launch the .exe file its blank :/

    Any chance someone help me? Also, I am using his HackProcess.h and its not modified but some people were commenting down saying something related to CS:GO it will work if you modify..

    Code:
    #include <Windows.h>
    #include <iostream>
    #include "HackProcess.h"
    
    CHackProcess fProcess; 
    using namespace std; 
    
    const DWORD Player_Base = 0xA6C90C;
    
    const DWORD healthOffset = 0xFC;
    const DWORD dw_JumpOffsets = 0x100;
    
    #define FL_ONGROUND 257
    #define SPACE_BAR 0x20
    
    #define F6_Key 0x75
    
    bool b_true = true;
    bool b_false = false;
    bool bunnyHopStatus = false; 
    
    
    
    struct MyPlayer_t
    {
    	DWORD ClocalPlayer;
    	int m_fFlags;
    
    
    	void ReadInformation()
    	{
    		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + Player_Base), &ClocalPlayer, sizeof(DWORD), 0);
    	
    		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(ClocalPlayer+ dw_JumpOffsets), &m_fFlags, sizeof(int), 0);
    	
    	}
    
    
    }MyPlayer;
    
    
    
    
    void BunnyHop()
    {
    
    
    
    	if (GetAsyncKeyState(SPACE_BAR))
    	{
    		bunnyHopStatus = !bunnyHopStatus;
    		Sleep(250);
    
    	}
    
    	if (!bunnyHopStatus)
    		return; 
    
    
    	if (MyPlayer.m_fFlags == FL_ONGROUND) {
    		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_JumpOffsets), &b_true, sizeof(bool), NULL);
    	}
    
    	else if (MyPlayer.m_fFlags == FL_ONGROUND) {
    	
    		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_JumpOffsets), &b_false, sizeof(bool), NULL);
    	
    	}
    
    
    
    
    }
    
    
    
    
    
    
    
    
    int main() {
    
    	fProcess.RunProcess();
    	cout << "Proccess Found, Running Bunny Hop Client!" << endl;
    
    	while (!GetAsyncKeyState(F6_Key)) {
    		MyPlayer.ReadInformation();
    		BunnyHop();
    
    	}
    
    
    }
    That's how the console looks like :/




    UPDATED ----------------------------------------------------------------------
    Now the console is showing that its found. However, its not working, when I press space it only jumps once... :/


    Last edited by bulentERH; 02-22-2015 at 03:51 PM.

  2. #2
    Merccy2's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    886
    Reputation
    310
    Thanks
    19,668
    My Mood
    Cool
    m_fFlags is a bit mask.
    use m_fFlags & 1 == 1 to check if the player is on the ground.

    and remove this
    Code:
    if (MyPlayer.m_fFlags == FL_ONGROUND) {
    		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_JumpOffsets), &b_true, sizeof(bool), NULL);
    	}
    
    	else if (MyPlayer.m_fFlags == FL_ONGROUND) {
    	
    		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_JumpOffsets), &b_false, sizeof(bool), NULL);
    You want to check if the player is on the ground and then press spacebar (or write 5 (+jump) then sleep for a few milliseconds and write 4 (-jump) to client.dll + 0x4A9D9D8).
    Currently you are writing to the flags.

    Check your code and you will see dw_JumpOffsets is equal to the m_fFlags offset and not to the actual jump command.
    If you have any questions regarding my hacks, add me on Discord: Merccy#8314

  3. #3
    bulentERH's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    381
    My Mood
    Amused
    Just to clarify, I have no idea on how to do that :/ I mean your most properly wondering why you even trying but I wanted to do it. Also Merccy any chance you can make it sound more sense for someone like me? Beginner level :d thanks for the effort to comment and try to help me out bro.. :*

  4. #4
    moot_'s Avatar
    Join Date
    Oct 2014
    Gender
    male
    Location
    Church of Emacs
    Posts
    161
    Reputation
    20
    Thanks
    15
    Quote Originally Posted by bulentERH View Post
    Just to clarify, I have no idea on how to do that :/ I mean your most properly wondering why you even trying but I wanted to do it. Also Merccy any chance you can make it sound more sense for someone like me? Beginner level :d thanks for the effort to comment and try to help me out bro.. :*
    Even though you can get flags as an int, it's not what you want.
    Different bits in the flag mean different things. You need to get the first bit, which is 1 when your character is on the ground.
    You can do this with the code Merccy2 posted.

    Instead of
    Code:
    if (MyPlayer.m_fFlags == FL_ONGROUND)
    You should use something like
    Code:
    if ((MyPlayer.m_fFlags & 1) == 1)
    As for why it's blank, it looks like it's getting stuck on fProcess.runProcess
    I can't see your HackProcess.h file so I can't really tell you why it's hanging there.

    Thanks :-)

  5. #5
    bulentERH's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    381
    My Mood
    Amused
    Everything is sorted except the coding bit I guess.

    I mean it finds the process cause I changed the HackProcess.h to match CS:GO and it does it fine.

    I've changed the coding too but still no sign of bunny hoping :/

    Code:
    #include <Windows.h>
    #include <iostream>
    #include "HackProcess.h"
    
    CHackProcess fProcess; 
    using namespace std; 
    
    const DWORD Player_Base = 0xA6C90C;
    
    const DWORD healthOffset = 0xFC;
    const DWORD dw_JumpOffsets = 0x100;
    
    #define FL_ONGROUND 257
    #define SPACE_BAR 0x20
    
    #define F6_Key 0x75
    
    bool b_true = true;
    bool b_false = false;
    bool bunnyHopStatus = false; 
    
    
    
    struct MyPlayer_t
    {
    	DWORD ClocalPlayer;
    	int m_fFlags;
    
    
    	void ReadInformation()
    	{
    		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + Player_Base), &ClocalPlayer, sizeof(DWORD), 0);
    	
    		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(ClocalPlayer+ dw_JumpOffsets), &m_fFlags, sizeof(int), 0);
    	
    	}
    
    
    }MyPlayer;
    
    
    
    
    void BunnyHop()
    {
    
    
    
    	if (GetAsyncKeyState(SPACE_BAR))
    	{
    		bunnyHopStatus = !bunnyHopStatus;
    		Sleep(250);
    
    	}
    
    	if (!bunnyHopStatus)
    		return; 
    
    
    	if ((MyPlayer.m_fFlags & 1) == 1) {
    		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_JumpOffsets), &b_true, sizeof(bool), NULL);
    	}
    
    	else if ((MyPlayer.m_fFlags & 1) == 1) {
    	
    		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_JumpOffsets), &b_false, sizeof(bool), NULL);
    	
    	}
    
    
    
    
    }
    
    
    
    
    
    
    
    
    int main() {
    
    	fProcess.RunProcess();
    	cout << "Proccess Found, Running Bunny Hop Client!" << endl;
    
    	while (!GetAsyncKeyState(F6_Key)) {
    		MyPlayer.ReadInformation();
    		BunnyHop();
    
    	}
    
    
    }

Similar Threads

  1. [Tutorial] How to code your own Bunny Hop [NOT AHK SHIT]
    By Requiii in forum Counter-Strike 2 Tutorials
    Replies: 9
    Last Post: 02-07-2015, 06:27 AM
  2. [Help] Bunny hop Macro help?
    By rynkiller1 in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 0
    Last Post: 12-31-2012, 05:18 PM
  3. Need help about bunny hop
    By S]n!ck-_* in forum CrossFire Glitches
    Replies: 6
    Last Post: 02-23-2012, 07:16 PM
  4. [Help Request] GSC coding help
    By Brabomclaren in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 06-12-2011, 03:05 AM
  5. [Help] Bunny Hop + Nexon Acc Gen
    By LetItRock in forum Visual Basic Programming
    Replies: 15
    Last Post: 11-21-2009, 02:20 PM