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]: /block enemy (Become untargetable) ignored #241

Closed Linkis20 closed 5 months ago

Linkis20 commented 5 months ago

What happened?

In UntargetablePatch.cs some enemies do not use PlayerIsTargetable I checked all enemies that use PlayerIsTargetable:

Some use Line of Sight EnemyAI::CheckLineOfSightForClosestPlayer PlayerControllerB::CheckLineOfSightForPlayer NutcrackerEnemyAI::CheckLineOfSightForLocalPlayer

Current Commit Hash

332800fc594a1454b38be8a98d2c8185139cfb8c

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

Thanks for the investigation @Linkis20. I wonder if they all use targetPlayer and if that’s the case, maybe I should just patch that variable in the update loop.