refresh team id

This commit is contained in:
Mylloon 2023-03-31 18:56:02 +02:00
parent 61567e304c
commit ec5b7f347d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
5 changed files with 5 additions and 20 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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