feat: implement various player hacks and refactor main loop for modularity
Some checks failed
Python Type Check and Lint / ci (push) Failing after 1s
Some checks failed
Python Type Check and Lint / ci (push) Failing after 1s
This commit is contained in:
parent
1b3bc8a73e
commit
1730b73d1f
9 changed files with 141 additions and 85 deletions
|
|
@ -97,3 +97,18 @@ class Entity:
|
|||
segments=0,
|
||||
color=self.color,
|
||||
)
|
||||
|
||||
def process_entities(proc, ent_buffer, v_matrix, enable_esp):
|
||||
valid_entities = []
|
||||
for addr in ent_buffer:
|
||||
if addr == 0: continue
|
||||
try:
|
||||
ent = Entity(proc, addr)
|
||||
valid_entities.append(ent)
|
||||
if enable_esp and ent.wts(v_matrix):
|
||||
ent.draw_box()
|
||||
ent.draw_name()
|
||||
ent.draw_health()
|
||||
except:
|
||||
continue
|
||||
return valid_entities
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue