Source Code Simple Bunny Hop Using Source Engine Functions [CS:Source]

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Simon-Benyo

Jr.Coder
Full Member
Nobleman
Aug 9, 2013
64
1,498
3
Hi Guys ,,, i was so bored today so i said why not to write a simple internal bunny hop by using source engine functions however this what i came up with , its tested with Counter-Strike:Source and functions pretty good

VAC STATUS : Unknown (Probably Detected) ,,, i posted it for educational purpose and not for direct usage.


Here is the code :



C++:
BOOL bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask)
{
	for (; *szMask; ++szMask, ++pData, ++bMask)
	if (*szMask == 'x' && *pData != *bMask)   return 0;
	return (*szMask) == NULL;
}

DWORD FindPattern(DWORD dwdwAdd, DWORD dwLen, BYTE *bMask, char * szMask)
{
	for (DWORD i = 0; i<dwLen; i++)
	if (bCompare((BYTE*)(dwdwAdd + i), bMask, szMask))  return (DWORD)(dwdwAdd + i);
	return 0;
}

DWORD GetModuleSize(HMODULE hModule)
{
	
		MODULEENTRY32 me32;
	HANDLE hToolHelp = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, GetCurrentProcessId());
	me32.dwSize = sizeof(MODULEENTRY32);
	if ((hToolHelp == INVALID_HANDLE_VALUE) || !Module32First(hToolHelp, &me32))
	{
		CloseHandle(hToolHelp);
		return 0;
	}
	do
	{
		if (hModule == me32.hModule)
		{
			CloseHandle(hToolHelp);
			return me32.modBaseSize;
		}
	} while (Module32Next(hToolHelp, &me32));
	return 0;
}

void BHOP()
{
	DWORD pEngine = (DWORD)GetModuleHandleA("engine.dll");

	DWORD	dwFactory = FindPattern(pEngine, GetModuleSize((HMODULE)pEngine), (PBYTE)"\x55\x8B\xEC\xFF\x75\x08\x8B\x0D\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x8B\x55\x0C\x85\xD2\x74\x09\x33\xC9\x85\xC0\x0F\x94\xC1\x89\x0A\x5D\xC3", "xxxxxxxx????x????xxxxxxxxxxxxxxxxxx"); 

	CreateInterfaceFn AppSystemFactory = reinterpret_cast<CreateInterfaceFn>(dwFactory);

	IVEngineClient *gEngine = (IVEngineClient*)AppSystemFactory("VEngineClient014", NULL);

	do
	{
		if (gEngine->IsInGame() == true)
		{
		
		if ((GetKeyState(VK_CAPITAL) & 0x0001) != 0)
		{
			gEngine->ClientCmd_Unrestricted("+jump");
			Sleep(50);
			gEngine->ClientCmd_Unrestricted("-jump");
		}
	}
		Sleep(50);
	} while (true);
	





}

Credits : To all who had helped in making this code [ Fleep , GAFO666 , Forza , Shad0w_ ] and finally me ;)

I Hope it helps someone or at least learn something from it ,, and if you ever used it credit me or at least credit those who helped me to code this :)

Simon.
 
Last edited:

Simon-Benyo

Jr.Coder
Full Member
Nobleman
Aug 9, 2013
64
1,498
3
no offence why using Source SDK for Bunnyhop ? lol

You were probably really bored

But Good Stuff
Hi dude ,,, just for fun nothing more like we saw fleep's external so i said lets give it a try for the internal one :)
 

Alex

Sober linux neb
Dank Tier Donator
Nobleman
Nov 26, 2015
150
828
1
no offence why using Source SDK for Bunnyhop ? lol

You were probably really bored

But Good Stuff
Maybe the stupidest thing I have ever heard.
It's like asking: "Why use PC for game hacking?".
 

GAFO666

Hacker
Meme Tier VIP
Aug 19, 2012
520
3,188
23
yeh looks nice for your first sdk work :)
but i would suggest to do it intern and use the factories like

C++:
CreateInterfaceFn fnEngine = CaptureFactory("engine.dll");
GEngine = (IVEngineClient*)fnEngine("VEngineClient013", 0);
,greez
 

sparmofo

Newbie
Apr 26, 2015
1
62
0
im sorry but this is awful you should hook createmove if you want to make an internal bhop well this thread is old so you probably figured it out already D:
 
Last edited:

Nerd0

Newbie
Dank Tier Donator
May 1, 2015
28
118
1
Wierd way of doing autobhop, but nice work! TIP: If you want it perfect just make pointer for localplayer and get the flags to check if on ground. if flags & (1<<0) then jump.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods