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

[Bug]: Kill cmd can lead to more deaths than players #19

Closed MichaelDavidGK closed 8 months ago

MichaelDavidGK commented 9 months ago

What happened?

Right now it will kill the person even if they are already dead and this can cause issue at the end of in game day as it will show more dead ppl and less bodies retrieved. In addition if deaths ≥ ppl in lobby => it will delete all items in ship, same as if no one survived.

You should add check to see if player is alive for /kill and give error if they are already dead. Currently every /kill adds +1 to game deaths, stacking infinitely with every use.

You could eventually add troll command to stack up deaths ;)

Current Commit Hash

6f9cf9a

Injector

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

No response

Log output

No response

Acknowledgement

winstxnhdw commented 9 months ago

This is really interesting. I'll look into it.

winstxnhdw commented 9 months ago

Alright, /kill will now check if the player is alive/controlled. Stacking up deaths will be an enhancement I'll do at a later date.

winstxnhdw commented 9 months ago

I can't replicate your findings. I tried killing myself several times in a 2 player lobby.

MichaelDavidGK commented 9 months ago

Strange, v45? Modded or not?

I had this happen to me multiple times.

I could play with you or record it if you want to. (I live in UK, so GMT 0 time if you want to play together, I have day off today as well).

winstxnhdw commented 9 months ago

v45, not modded. I am not sure I have time today since I am 8 hours ahead of you.

MichaelDavidGK commented 9 months ago

v45, not modded. I am not sure I have time today since I am 8 hours ahead of you.

I see, any time tmrw or next week? I have taken holidays for xmas and new year

MichaelDavidGK commented 9 months ago

Eventually I can do it right now ;)

winstxnhdw commented 9 months ago

Tomorrow should be fine.

MichaelDavidGK commented 9 months ago

btw @winstxnhdw wanna try it soon? I just need to get some food and eat it, I would say 30min and we can try if you have time

winstxnhdw commented 9 months ago

Hey, I don't have time today, let's arrange another time. How do I contact you?

MichaelDavidGK commented 9 months ago

Hey, I don't have time today, let's arrange another time. How do I contact you?

hmmm, discord or telegram? discord - kmikey telegran - @MichaelDavidGK

If you want discord then add me now as I usually have it set to friends only so ppl don't add me 😅, gonna revert it in few min ig

winstxnhdw commented 9 months ago

Alright, I've sent you a Discord request.

jezbud commented 9 months ago

Pretty sure this is replicated if you kill a player with godmode

winstxnhdw commented 8 months ago

Should be fixed with the new god mode.