Closed darkshade9 closed 1 year ago
That's funny, I often votemap
at the last second so it doesn't make other players think that I want to change maps immediately, and to prevent accidentally ending the map early if it's just me and bots.
This looks like a good feature, but I would tweak it a tiny bit:
mapvote_next 2
I'd just make the default mapvote_next_time 0
. If set to non-zero, then it restricts last-second votes by that amount. (Replace mapvote_next->value == 2
with mapvote_next_time->value
in the if
condition and revert the documentation of votemap_next to what it was before.)mapvote_next
it might be clearer to rename it. Maybe something like mapvote_lastsec
? Or if you prefer to keep it mapvote_next_time
that's fine with me.Sorry that I have not responded to the latest few issues yet. This weekend is the big push for us moving to a new house! I should have more time to deal with AQ2 stuff next week. :-)
mapvote_next_limit
0
mapvote_next
is 1
(removed the 2
condition)In your first use case, where you change the next map using this feature, would it make sense to create an additional var, like mapvote_force <mapname>
which you can call via rcon to override what the next map is, but is also overridden if there's a playervote? That way you maintain that functionality while also protecting from last second aq2soccer voters?
Sorry that I have not responded to the latest few issues yet. This weekend is the big push for us moving to a new house! I should have more time to deal with AQ2 stuff next week. :-)
No problem man, real life takes real time, no avoiding it, but hopefully the new pad is a great upgrade :) We'd love to chat with you more in Discord if you can make it, we're getting stats/achievements online soon, ladders are coming, tournaments around the corner, we're hoping for a strong Fall/Winter when everyone comes inside and has nothing else to do :)
Realized my file encoding is screwed up again (thanks VScode!) I will make this PR ready once I've resolved that