This commit is contained in:
Mylloon 2023-03-30 14:22:25 +02:00
parent 155833bf28
commit 52d3dda44a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -54,7 +54,7 @@ class Hack():
else:
raise MemoryError
def find_int(self, base, offset: int) -> int:
def find_uint(self, base, offset: int) -> int:
"""Find integer in memory for sure"""
local_element = None
while not local_element:
@ -86,7 +86,7 @@ class Cheat(Hack):
client = self.find_module("client")
# Get player
local_player = self.find_int(client, offset["dwLocalPlayer"])
local_player = self.find_uint(client, offset["dwLocalPlayer"])
# Hack loop
while True:
@ -116,10 +116,10 @@ class Cheat(Hack):
client = self.find_module("client")
# Get local player
local_player = self.find_int(client, offset["dwLocalPlayer"])
local_player = self.find_uint(client, offset["dwLocalPlayer"])
# Get local team
local_team = self.find_int(local_player, offset["m_iTeamNum"])
local_team = self.find_uint(local_player, offset["m_iTeamNum"])
# Hack loop
while True: