Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <iostream>
- #include "HackProcess.h"
- CHackProcess fProcess;
- using namespace std;
- const DWORD Player_Base = 0x5998AC;
- const DWORD dw_jump = 0x58A68C;
- const DWORD Dw_JumpOffset = 0x34C;
- #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_JumpOffset), &m_fFlags, sizeof(int), 0;
- }
- }MyPlayer;
- void BunnyHop()
- {
- if GetAsyncKeyState(SPACE_BAR))
- {
- BunnyHopStatus = !BunnyHopStatus;
- Sleep (250);
- if (true)
- {
- (!BunnyHopStatus) { return 0 ;
- }
- if(MyPlayer.m_fFlags == FL_ONGROUND)
- {
- WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_jump), &b_true, sizeof(bool), NULL);
- }
- else if(MyPlayer.m_fFlags != FL_ONGROUND)
- {
- WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_jump), &b_false, sizeof(bool), NULL);
- }
- }
- int main()
- {
- fProcess.RunProcess();
- cout << "Found The Game! Loading Bunny Hop.." << endl;
- while(!GetAsyncKeyState(F6_Key))
- {
- MyPlayer.ReadInformation();
- Bunnyhop();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement