winstxnhdw / lc-hax

A powerful, feature-rich and highly performant internal cheat for the co-op indie horror video game, Lethal Company.
78 stars 25 forks source link

[Bug]: Enemy ESP broken #273

Closed xAstroBoy closed 5 months ago

xAstroBoy commented 5 months ago

What happened?

Idk something with the newest changes

Current Commit Hash

adas

Injector

If you selected "Others" above, please specify the injector you are using.

No response

Log output

No response

Acknowledgement

winstxnhdw commented 5 months ago

What's broken about it? I just tested and it seems fine to me.

xAstroBoy commented 5 months ago

What's broken about it? I just tested and it seems fine to me.

i couldn't get it to show, could be that i broke something while patching it and adapting a quick mod, would you make a quick and easy module to disable the menu intro music?

xAstroBoy commented 5 months ago

What's broken about it? I just tested and it seems fine to me.

just redownloaded the repo, enemy esp no longer shows up.

winstxnhdw commented 5 months ago

Closing this.

image

xAstroBoy commented 5 months ago

@winstxnhdw found out why

https://github.com/AgentRev/LC-ShootableMouthDogs/blob/main/ShootableMouthDogs/Plugin.cs

winstxnhdw commented 5 months ago

Doesn't look like the problem though.

xAstroBoy commented 5 months ago

Doesn't look like the problem though.

yeah it happened again, with that mod off as well, im sure the helper that gets the enemies is failing sometimes.

xAstroBoy commented 5 months ago

@winstxnhdw can confirm

image
winstxnhdw commented 5 months ago

The helper is just a reference pointing to the game's spawned enemies list. So if it's empty, so is the game's.

xAstroBoy commented 5 months ago

The helper is just a reference pointing to the game's spawned enemies list. So if it's empty, so is the game's.

No, the enemies were there around the ship, the helper returns a empty list sometimes.

xAstroBoy commented 5 months ago

@winstxnhdw there is a solution and a better reliable one than depending on roundmanager, you could use harmony and make your list based off that, is way better and it syncs even if is client side or server side.

winstxnhdw commented 5 months ago

Sure, but what's the difference if they reference each other?

xAstroBoy commented 5 months ago

Sure, but what's the difference if they reference each other?

the difference that it will rely more on a component instantiate, than a server RPC , which makes more sense and is more faster, regardless of server or latency, a prefix patch to listen for the component events would be waay more reliable, plus it would be update proofed because if the dev removes these lists it would be basically no longer reliable..

xAstroBoy commented 5 months ago

@winstxnhdw also it catches them before they fully spawn, with their animations already, and i see the code automatically detecting new enemies before they came out of the ground.

If something is more client synced, such as enemies, rely more on the component itself than the developer lists , as they can remove them at any update. Also seems the new listener works better because i also seem to have gotten rid of the inventory block bug with this patch. Ill keep investigating that one.