winstxnhdw / lc-hax

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

feat/fix: `/hitclick` added, stunclick fix, wait for ship fix, invis fix #217

Closed armorfid closed 8 months ago

armorfid commented 8 months ago

feel free to refactor StunMod if you wanna separate hitclick

winstxnhdw commented 8 months ago

@armorfid out of curiosity, why did you remove isDefensiveWeapon? Does it not work?

armorfid commented 8 months ago

didn't remove, but rather fixed it! seems like currentlyHeldObject is always null and that the correct variable is currentlyHeldObjectServer, for which isDefensiveWeapon is sufficient for shotgun and shovel

image

winstxnhdw commented 8 months ago

Oops, you're right. The green highlight appears red in my room's lighting. My bad 😂