Register for your free account! | Forgot your password?

You last visited: Today at 22:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How to code your own Bunny Hop

Discussion on How to code your own Bunny Hop within the Counter-Strike Hacks, Bots, Cheats & Exploits forum part of the Counter-Strike category.

Reply
 
Old   #1

 
Requi's Avatar
 
elite*gold: 6300
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,009
Received Thanks: 8,192
How to code your own Bunny Hop

Hey guys, I just wanted to share with you how to code your own bhop.

Here will be only pseudo-code and logical stuff. No copy&pasterino feeding for newbs.

A bhop "hack" is the easiest thing you can code.

1. Check if user is pressing space in a while loop.

Code:
while (true)
if(userIsPressingSpace()) {
//later on
}
2. Check per memory if user is on ground or in air.
We need 2 offsets for that. One changes after a game update. One doesn't. And we need the ModuleBaseAdress of the client.dll.
LocalPlayerBase and m_fFlag.

You have to get them by yourself. I won't share them.

So now:
Code:
UInt clientDll = GetModuleBaseAdress(processhandle, "client.dll")
while(true)
if(userIsPressingSpace()) {
uint localPlayer = MemRead(processhandle, clientDll + LocalPlayerBase)
//now we have our local player.
uint m_fFlag = MemRead(processhandle, localPlayer + m_fFlagOffset)
}
now that we have our values, we just need to check if they are, what we want.
in our case on ground would be 257. In air would be 256 afaik.

so we just check for 257.

Code:
UInt clientDll = GetModuleBaseAdress(processhandle, "client.dll")
Int FL_ONGROUND = 257
while(true)
if(userIsPressingSpace()) {
uint localPlayer = MemRead(processhandle, clientDll + LocalPlayerBase)
//now we have our local player.
uint m_fFlag = MemRead(processhandle, localPlayer + m_fFlagOffset)
if(m_fFlag == FL_ONGROUND)
{
//send a space up the the csgo window
//send a space down to the csgo window
// SendMessage *cough*
}
}
Copying this code and paste it in some project will not help. It won't work like this at all. Like I told you, it's just Pseudo-Code (Pseudocode - Wikipedia, the free encyclopedia)

If you dont want to jump ingame, if you're just writing somebody, you have to check if the current ForegroundWindow = the csgo window. How to do that, is your job

I hope you like this little, but easy tutorial and I hope you understood me
And thanks to

Good Luck coding your own perfect bhop.
Requi is offline  
Old 01/05/2015, 13:50   #2
 
cяαzуℓυмι's Avatar
 
elite*gold: 1
Join Date: May 2012
Posts: 287
Received Thanks: 39
Code:
bool checkState(int state)
        {
            if (state == 256) return false;
            else if (state == 258) return false;
            else if (state == 260) return false;
            else if (state == 262) return false;
            else return true;
        }
if returns true -> jump
cяαzуℓυмι is offline  
Thanks
1 User
Old 01/06/2015, 13:08   #3
 
AresZs's Avatar
 
elite*gold: 28
Join Date: Aug 2012
Posts: 178
Received Thanks: 8
Why are you using?
Code:
int FL_ONGROUND == 257
the flag for on ground u can do with
Code:
localPlayer.m_fFlags & (1<<0)
257 is only for staying on ground, if you crouch, u can't even jump normal.
AresZs is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Buy]Snow Bunny Nidalee Acc or Code
11/09/2012 - League of Legends Trading - 4 Replies
I buy a Snow Bunny Nidalee Skin Code or One Snowbunny Nidalee ACC. Eu WEST! My Skype Addy is Crysox1234 Guten Tag leute ich kaufe einen Snow Bunny Nidalee Skin Code / Account Für Eu West Skype Addy: Crysox1234 Zahle Gut!
Bunny hop help
08/30/2011 - WarRock - 4 Replies
Also ich mache einen bunny hop aber es klappt nicht habe keybord smothing auf 100% ich drücke doppelt w dann rollen und lerrtaste also speedrolle und hallte noch die lerrtaste aber ich bleibe dann stehen und springe nur im stand 3 mal.. :(
[TuT]Bunny-Hop
12/30/2010 - WarRock Guides, Tutorials & Modifications - 4 Replies
http://atschool.eduweb.co.uk/rgshiwyc/school/curri c/German/Deutsch_Anfanger/Haustiere/Rabbit.gif Warrock Bunny Hop How to : ★Zwei mal auf „w“ drücken, nicht gedrückt halten. ★Anschließend schnell auf shift drücken um zu rollen, nicht gleichzeitig mit „w“. ★Nach dem rollen, direkt auf die Leertaste drücken und gedrückt halten.
BUNNY HOP
10/27/2010 - WarRock - 5 Replies
HALLO LEUTE WOLLTE FRAGEN OB MIR JEMAND BUNNY HOP BEIBRINGEN KANN AM BESTEN MIT HEADSET Danke an alle die sich melden:D
Bunny Hop ?
04/20/2010 - WarRock - 8 Replies
hey leutz, ich wollt mal nachfragen ob mir einer erklären kann wie man einen bunny hop in warrock macht? :)



All times are GMT +2. The time now is 22:31.


Powered by vBulletin®
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2022 elitepvpers All Rights Reserved.