Quote:
Originally Posted by urban_ninja
Heres a common problem that been eating me with map votes. Some people tend to vote for a map and leave the server after their vote wins. This screws up a fair vote considering people that stay get their map they wanted overthrown in a close vote thanks to a guy or 2 voting something else who's no longer playing. I propose the idea to add a feature where admins can revoking a players voting rights who shits on a fair vote.
|
Quote:
Originally Posted by urban_ninja
It seems everyone has ignored this idea.
|
You need to realize that code executes in pieces. Once the voting function is complete and the next map is chosen, who voted for which map is irrelevant. To log who voted for which map and then add check cycles for whether people disconnect or not and which maps they voted for would add tons of overhead.
Not to mention that once a vote is completed many players accept the chosen map as the new map and make the choice to stay or not. Your method would mean that the next map would not actually be set until the map itself changes because as people leave the new map would change. I don't see that as fair on the people who see the results of the vote and decide to stay because that is the map they want to play.
The people that choose to leave after the vote obviously don't want to play the map that was voted for and in my opinion the fact that they leave shouldn't effect what map the players who choose to stay have to play.
The only way I see what you are asking for working is if a check was added to do a recount of the results only if someone leaves who voted for the winning map. Even that adds lots of overhead because who voted for what map would have to be saved after the voting function had completed and then rechecked when a player disconnects. On top of that, if a player disconnecting changes the results of the vote then the plugin would have to redisplay a message to remaining players explaining what happened and what the new map would be. If a second player disconnects changing the vote again, then even more messages would need to be displayed confusing players.
^^ This is all speculation on how the plugin code functions based on how I would write it without actually reading the code itself. It seems like that requested function would require a huge rewrite and more resources. I also think it would add uncertainty as to what the next map would actually be and whether or not players should stick around after a vote.
The idea has merit, but as I see it, the implementation would be more problematic than the problem it would solve.