use life state
This commit is contained in:
parent
cc0a45ec95
commit
5bd02e8afa
1 changed files with 4 additions and 4 deletions
8
cheat.py
8
cheat.py
|
@ -79,7 +79,7 @@ class Cheat(Hack):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Check if ennemy is alive
|
# Check if ennemy is alive
|
||||||
if not mem.read_uint(entity + offset["m_iHealth"]):
|
if mem.read_int(entity + offset["m_lifeState"]):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
mem.write_bool(entity + offset["m_bSpotted"], True)
|
mem.write_bool(entity + offset["m_bSpotted"], True)
|
||||||
|
@ -123,7 +123,7 @@ class Cheat(Hack):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Check if ennemy is alive
|
# Check if ennemy is alive
|
||||||
if not mem.read_uint(entity + offset["m_iHealth"]):
|
if mem.read_int(entity + offset["m_lifeState"]):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Space between values
|
# Space between values
|
||||||
|
@ -181,7 +181,7 @@ class Cheat(Hack):
|
||||||
client + offset["dwEntityList"] + (crosshair_id - 1) * offset["entity_size"])
|
client + offset["dwEntityList"] + (crosshair_id - 1) * offset["entity_size"])
|
||||||
|
|
||||||
# Check if ennemy is alive
|
# Check if ennemy is alive
|
||||||
if not mem.read_int(ennemy + offset["m_iHealth"]):
|
if mem.read_int(entity + offset["m_lifeState"]):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Ignore allies
|
# Ignore allies
|
||||||
|
@ -305,7 +305,7 @@ class Cheat(Hack):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Check if ennemy is alive
|
# Check if ennemy is alive
|
||||||
if not mem.read_uint(entity + offset["m_iHealth"]):
|
if mem.read_int(entity + offset["m_lifeState"]):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Space between values
|
# Space between values
|
||||||
|
|
Reference in a new issue