From ec5b7f347de22b9b02eb5dc7ed90a75a9cf92109 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 31 Mar 2023 18:56:02 +0200 Subject: [PATCH] refresh team id --- cheats/aimbot.py | 5 +---- cheats/chams.py | 5 +---- cheats/glow.py | 5 +---- cheats/radarhack.py | 5 +---- cheats/trigger.py | 5 +---- 5 files changed, 5 insertions(+), 20 deletions(-) diff --git a/cheats/aimbot.py b/cheats/aimbot.py index d4d5524..d211918 100644 --- a/cheats/aimbot.py +++ b/cheats/aimbot.py @@ -20,9 +20,6 @@ class Aimbot(Hack): # Get local player local_player = self.find_uint(client, offset["dwLocalPlayer"]) - # Get local team - local_team = self.find_uint(local_player, offset["m_iTeamNum"]) - # Get client state client_state = self.find_uint(engine, offset["dwClientState"]) @@ -78,7 +75,7 @@ class Aimbot(Hack): continue # Ignore allies - if mem.read_int(entity + offset["m_iTeamNum"]) == local_team: + if mem.read_int(entity + offset["m_iTeamNum"]) == mem.read_int(local_player + offset["m_iTeamNum"]): continue # Ignore dormant diff --git a/cheats/chams.py b/cheats/chams.py index 261a09c..8d5552f 100644 --- a/cheats/chams.py +++ b/cheats/chams.py @@ -16,9 +16,6 @@ class Chams(Hack): # Get local player local_player = self.find_uint(client, offset["dwLocalPlayer"]) - # Get local team - local_team = self.find_uint(local_player, offset["m_iTeamNum"]) - def cheat(): # Loop all entities for i in range(1, 32): # 0 is world @@ -30,7 +27,7 @@ class Chams(Hack): continue # Ignore allies - if mem.read_uint(entity + offset["m_iTeamNum"]) == local_team: + if mem.read_int(entity + offset["m_iTeamNum"]) == mem.read_int(local_player + offset["m_iTeamNum"]): continue # Ignore dormant diff --git a/cheats/glow.py b/cheats/glow.py index 6c6eabf..fb1aaaf 100644 --- a/cheats/glow.py +++ b/cheats/glow.py @@ -16,9 +16,6 @@ class Glow(Hack): # Get local player local_player = self.find_uint(client, offset["dwLocalPlayer"]) - # Get local team - local_team = self.find_uint(local_player, offset["m_iTeamNum"]) - # Get glow object manager glow_obj_manager = self.find_uint( client, offset["dwGlowObjectManager"]) @@ -34,7 +31,7 @@ class Glow(Hack): continue # Ignore allies - if mem.read_uint(entity + offset["m_iTeamNum"]) == local_team: + if mem.read_int(entity + offset["m_iTeamNum"]) == mem.read_int(local_player + offset["m_iTeamNum"]): continue # Ignore dormant diff --git a/cheats/radarhack.py b/cheats/radarhack.py index 4e7d560..8225c86 100644 --- a/cheats/radarhack.py +++ b/cheats/radarhack.py @@ -16,9 +16,6 @@ class Radarhack(Hack): # Get local player local_player = self.find_uint(client, offset["dwLocalPlayer"]) - # Get local team - local_team = self.find_uint(local_player, offset["m_iTeamNum"]) - def cheat(): # Loop all entities for i in range(1, 32): # 0 is world @@ -30,7 +27,7 @@ class Radarhack(Hack): continue # Ignore allies - if mem.read_uint(entity + offset["m_iTeamNum"]) == local_team: + if mem.read_int(entity + offset["m_iTeamNum"]) == mem.read_int(local_player + offset["m_iTeamNum"]): continue # Ignore dormant diff --git a/cheats/trigger.py b/cheats/trigger.py index ce335f1..bfc6360 100644 --- a/cheats/trigger.py +++ b/cheats/trigger.py @@ -18,9 +18,6 @@ class Trigger(Hack): # Get local player local_player = self.find_uint(client, offset["dwLocalPlayer"]) - # Get local team - local_team = self.find_uint(local_player, offset["m_iTeamNum"]) - def cheat(): # Pressing trigger key if not GetAsyncKeyState(self.vmap["+"]): @@ -47,7 +44,7 @@ class Trigger(Hack): return # Ignore allies - if mem.read_int(ennemy + offset["m_iTeamNum"]) == local_team: + if mem.read_int(ennemy + offset["m_iTeamNum"]) == mem.read_int(local_player + offset["m_iTeamNum"]): return # Shoot