Welcome to hackvshack.net Forum!
Download Free HvH CS2/CS:GO Cheats, CFG, LUA/JS Scripts, and More!
Register

C++ Need Help with this External BHOP

Ch01

Newbie HvHer
User ID:
213212
Messages:
1
Reactions:
0
Badges:
0
REP:
−0/0+
Level:
14
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.

C:
Expand Collapse Copy
#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:
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.

C:
Expand Collapse Copy
#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.
do it properly and use an engine prediction?
 

Who has read this thread (Total: 0) in last 1 hours View details