Resource icon

[Open Assets] Vote 1.2

a hotfix to fix a bug introduced by 1.1, where it was possible to vote for commands that weren't listed in vote_commands but still matched a subset of it. for example, adding nextmap also allowed map to be voted, even though it wasn't listed as a valid vote option.
  • added a few utility command for common stuff you'd want for a voting system.
  • forward slash (/) is now allowed on votes, making it possible to make a no-op vote by adding // to vote_commands.
  • the default value of vote_commands is now exitlevel map restart nextlevel.
  • fixed vote cooldowns resetting between map changes.
  • fixed bots counting to the final tally, despite not being able to vote.
so, i originally posted the wrong version of this by accident, and i've been holding on the final version for this addon for a while now. the only thing that the unfinished version was missing was the vote_change code was not implemented yet as well as a few minor tweaks that don't affect how the scripts works.

i apologize for the mistake, it's my bad!
  • Cool!
Reactions: Jsmoothie
Back
Top