CS2 Bhop
Using MemH v0.35
Source Code
"""
Simple CS2 Bhop using MemH
by im-razvan | W/O Memory Writing
pip install https://raw.githubusercontent.com/im-razvan/memh/main/memh-0.35.zip
"""
import memh as mh
from time import sleep
from keyboard import is_pressed, press_and_release
from win32gui import GetWindowText, GetForegroundWindow
class Offsets: # 21.01.2024
dwLocalPlayerPawn = 0x16C8F48
m_fFlags = 0x3c8
"""
1816b3bb8 void* data_1816b3bb8 = data_181163f40 {"m_fFlags"}
1816b3bc0 int32_t data_1816b3bc0 = 0x3c8
1816b3bc4 int16_t data_1816b3bc4 = 0x1
"""
def main():
mh.attach(b"cs2.exe")
client = mh.get_module_base(b"client.dll")
print("Started CS2 Bhop.")
while True:
if not GetWindowText(GetForegroundWindow()) == "Counter-Strike 2": continue
if is_pressed("space"):
player = mh.read_uint64(client + Offsets.dwLocalPlayerPawn)
if player == 0: continue
flag = mh.read_uint(player + Offsets.m_fFlags)
if flag == 0x10081: # If on ground
press_and_release("space")
sleep(.01)
if __name__ == "__main__":
main()
About MemH
You can see more about MemH in this page: MemH