[Feature]: In the connection dialog (f11) add ability to vote-eject dead players and observers
- Dominant language
- Lua
- Stars
- 264
- Forks
- 260
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 21
Description
### Describe the Feature
Inspired by the feedback post here: [Disconnect non-live simlaggers](https://feedback.userreport.com/354e2fbd-fdb7-4282-ae57-df75bf625431/#idea/451746)
> Some people tend to alt-tab when they are defeated, then going on to do other stuff. As a result, their computer goes down in simspeed and it lags the game for everyone.
Solution; automatically eject dead players or observers if they are the slowest link.
And the game team reply:
> I think it should in general be easier to eject players that are defeated. If they lag there's little reason to keep them in.
> Would the same apply to observers?
Automatically ejecting would be bad because it is a non-reversible action and someone shouldn't be ejected if they're required to observe (like a tournament caster) or if they're helping their team enough that the team doesn't want them ejected. So I think a unanimous vote across live players would be the best here.
### Expected Behavior
1. The f11 screen would have a "vote to eject" button for connected dead players/observers instead of the "eject" button that appears for disconnected peers.
2. When the button is pressed, there would be text "voted for ejection by: " instead of the "Ejected by: " text that appears for disconnected players.
3. After a unanimous vote from alive players, the dead player/observer is ejected by everyone or otherwise disconnects somehow.
4. When being ejected, the voting status text turns into the eject status text, and the eject button turns into "Ejecting..." text, being greyed out and unclickable.
### Screenshots
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.