]> git.deb.at Git - rhonda/impostor.git/commit
Let hosts handle exiles
authorminiduikboot <mini@duikbo.at>
Wed, 3 Jul 2024 21:01:51 +0000 (23:01 +0200)
committerminiduikboot <mini@duikbo.at>
Mon, 29 Jul 2024 17:58:33 +0000 (19:58 +0200)
commitc6bad153466142617b886a9a5a5c22650e9fecaf
tree531fb4473671341530cd56745819d654817e80c2
parentb26f451a07b002fba484a5435472c16345db7065
Let hosts handle exiles

Previously Impostor liked to kill exiled players server side to raise an
event. This is quite early, as the host will SetRole them to a ghost
role later.

However as PlayerInfo is server-owned by default in 2024.6.18, it starts
killing players client side. This caused meetings to immediately
conclude if the final impostor was voted out, ruining the cutscene.

So this commit makes Impostor wait for hosts to actually kill the player
using SetRole. Do set the LastDeathReason property though for players
using the API.
src/Impostor.Server/Net/Inner/Objects/InnerMeetingHud.cs