Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <Windows.h>
- #include <TlHelp32.h>
- #include "ModuleProcess.h"
- #include "Colors.h"
- using namespace std;
- ULONG Client;
- ULONG GameOverlayRenderer;
- ULONG VGUIMatSurface;
- HANDLE hl2handle;
- ULONG hl2Process;
- int ONLADDER();
- int INWATER();
- int ONGROUND();
- int INCHAT();
- void JUMP();
- int main()
- {
- hl2handle = GetProcessHandle("hl2.exe", hl2Process);
- Client = GetModuleAddress("client.dll", hl2Process);
- GameOverlayRenderer = GetModuleAddress("gameoverlayrenderer.dll", hl2Process);
- VGUIMatSurface = GetModuleAddress("vguimatsurface.dll", hl2Process);
- if(hl2handle)
- {
- cout << green << "\n\n\n\n\n\n\n\n\n\n\t\t\t External bunnyhop enabled\n\t\t\t Put <unbind space> in console\n\t\t\t Hold SPACE to bunnyhop";
- long int FL_ONGROUND = 0, FL_INWATER = 0, FL_ONLADDER = 0, FL_INCHAT = 0;
- while(1)
- {
- FL_INCHAT = INCHAT(); FL_ONGROUND = ONGROUND(); FL_INWATER = INWATER(); FL_ONLADDER = ONLADDER();
- if(GetKeyState(VK_SPACE) & (1 << 15) && !FL_INCHAT)
- {
- if(FL_ONGROUND != -1 || FL_INWATER != 0 && FL_INWATER != 1 || FL_ONLADDER == 9)
- JUMP();
- else
- Sleep(1);
- }
- else Sleep(1);
- }
- }
- cin.get();
- return 0;
- }
- int ONLADDER()
- {
- int OnLadder = 0;
- ReadProcessMemory(hl2handle, LPCVOID(Client+0x76202C), &OnLadder, sizeof(OnLadder), NULL);
- ReadProcessMemory(hl2handle, LPCVOID(OnLadder+0x13c), &OnLadder, sizeof(OnLadder), NULL);
- return OnLadder;
- }
- int INWATER()
- {
- int InWater = 0;
- ReadProcessMemory(hl2handle, LPCVOID(Client+0x77FE3C), &InWater, sizeof(InWater), NULL);
- return InWater;
- }
- int ONGROUND()
- {
- int OnGround = 0;
- ReadProcessMemory(hl2handle, LPCVOID(Client+0x782158), &OnGround, sizeof(OnGround), NULL);
- return OnGround;
- }
- int INCHAT()
- {
- int InChat = 0, InChat2 = 0;
- ReadProcessMemory(hl2handle, LPCVOID(GameOverlayRenderer + 0x7BE70), &InChat, sizeof(InChat), NULL);
- ReadProcessMemory(hl2handle, LPCVOID(VGUIMatSurface+0x114064), &InChat2, sizeof(InChat2), NULL);
- if (InChat || !InChat2)
- return 1;
- else
- return 0;
- }
- void JUMP()
- {
- int JUMP = 5; WriteProcessMemory(hl2handle, LPVOID(Client+0x7711E8), &JUMP, sizeof(JUMP), NULL);
- Sleep(5);
- JUMP = 4; WriteProcessMemory(hl2handle, LPVOID(Client+0x7711E8), &JUMP, sizeof(JUMP), NULL);
- }
Advertisement
Add Comment
Please, Sign In to add comment