Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions ruby.py
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
import keyboard
import pymem
import pymem.process
import time
from win32gui import GetWindowText, GetForegroundWindow

dwForceJump = (0x51F4D88)
dwLocalPlayer = (0xD36B94)
m_fFlags = (0x104)

dwForceJump = 0x51F4D88
dwLocalPlayer = 0xD36B94
m_fFlags = 0x104

def main():
print("Ruby has launched.")
pm = pymem.Pymem("csgo.exe")
client = pymem.process.module_from_name(pm.process_handle, "client.dll").lpBaseOfDll

while True:
if not GetWindowText(GetForegroundWindow()) == "Counter-Strike: Global Offensive":
if GetWindowText(GetForegroundWindow()) != "Counter-Strike: Global Offensive":
continue

if keyboard.is_pressed("space"):
force_jump = client + dwForceJump
player = pm.read_int(client + dwLocalPlayer)
if player:
on_ground = pm.read_int(player + m_fFlags)
if on_ground and on_ground == 257:
if on_ground == 257:
pm.write_int(force_jump, 5)
time.sleep(0.08)
pm.write_int(force_jump, 4)

time.sleep(0.002)


if __name__ == '__main__':
main()