I feel like im getting slower im not actually gaining speed. is this a tick issue?
i just hold jump + w or jump + (A or D) and look in that direction.
the code is in C.
i just hold jump + w or jump + (A or D) and look in that direction.
C:
#include "defs.h"
uint32_t prev_flags = 0;
void bhop(void) {
if (!check_window()) goto reset_flags;
if (!(GetAsyncKeyState(VK_SPACE) & 0x8000)) goto reset_flags;
uintptr_t pawn = 0;
rpm((uintptr_t)proc->hClientDll + dwLocalPlayerPawn, &pawn, sizeof(uintptr_t));
uint32_t flags = 0;
rpm(pawn + m_fFlags, &flags, sizeof(uint32_t));
if (!(flags & 1) || (prev_flags & 1)) goto update_flags;
client_dll_force(dwForceJump, 2);
// Sleep(1);
reset_flags:
prev_flags = 0;
return;
update_flags:
prev_flags = flags;
return;
}
/*
* client_dll_force helper
* the FORCE_ON FORCE_OFF values are correct i got them by watching the values while i do movement.
*/
void client_dll_force(DWORD offset, DWORD duration) {
DWORD on = FORCE_ON, off = FORCE_OFF;
wpm((uintptr_t)proc->hClientDll + offset, &on, sizeof(uint32_t));
Sleep(duration);
wpm((uintptr_t)proc->hClientDll + offset, &off, sizeof(uint32_t));
}
the code is in C.
Last edited by a moderator: