]> git.deb.at Git - rhonda/impostor.git/commit
Send DisconnectReason.Hacking to other players when disconnecting for cheating
authorjs6pak <me@6pak.dev>
Fri, 23 Aug 2024 18:28:56 +0000 (20:28 +0200)
committerjs6pak <me@6pak.dev>
Sat, 24 Aug 2024 14:51:51 +0000 (16:51 +0200)
commita0f0a65cbfe563804a4508336a25622d124c65ca
tree9682ee0071a4ccc540c2ec770d817c67ab7cfbc8
parent6c91280125ce3d93a34fe43c7f40b476e55a5ed3
Send DisconnectReason.Hacking to other players when disconnecting for cheating

Base game doesn't have a specific message for it so it results in a generic "left the game due to error" but it's still better than the default "left the game".
This also allows client side mods to fix the message.
src/Impostor.Server/Net/Client.cs