LoganMeitz / votefinder

GNU General Public License v3.0
2 stars 2 forks source link

Ability to disable votes from a player #35

Open rjmagley opened 5 months ago

rjmagley commented 5 months ago

Cena's running a game with some interesting stuff going on - the idea of making a player's votes not count for a day and/or permanently came up. There are a few ways to do this, but it shouldn't be too difficult - basically, the game's mod just needs to be able to toggle the ability for a player to vote without the player being moved to dead/spectator/etc.

rjmagley commented 5 months ago

This might dovetail nicely with allowing VF to handle, or at least recognize, other actions other than vote/unvote - vigilante kills, for example.

This might be something that can be jammed into the PlayerState model - fields for things like can_vote, can_vig, etc.

It might also be better off living elsewhere, maybe another many-to-many between Player and Game, although that seems to be complicated.

rjmagley commented 5 months ago

Also, this is making me realize that PlayerState isn't using the through argument - I wonder if it's worth making it do so.