refresh team id
This commit is contained in:
parent
61567e304c
commit
ec5b7f347d
5 changed files with 5 additions and 20 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue