ignore ennemies behind wall
This commit is contained in:
parent
c03f4929df
commit
5d24888689
1 changed files with 8 additions and 1 deletions
9
cheat.py
9
cheat.py
|
@ -332,7 +332,14 @@ class Cheat(Hack):
|
||||||
if mem.read_int(entity + offset["m_lifeState"]):
|
if mem.read_int(entity + offset["m_lifeState"]):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# TODO: Ignore ennemies behind wall
|
# Don't aim at ennemy behind a wall
|
||||||
|
if not (
|
||||||
|
mem.read_int(entity + offset["m_bSpottedByMask"])
|
||||||
|
&
|
||||||
|
(1 << mem.read_int(
|
||||||
|
client_state + offset["dwClientState_GetLocalPlayer"]))
|
||||||
|
):
|
||||||
|
continue
|
||||||
|
|
||||||
# Find head
|
# Find head
|
||||||
boneMatrix = mem.read_uint(entity + offset["m_dwBoneMatrix"])
|
boneMatrix = mem.read_uint(entity + offset["m_dwBoneMatrix"])
|
||||||
|
|
Reference in a new issue