Resource icon

[Open Assets] Vote 1.4

this is actually an update that i've held onto for months, but forgot to release.

  • fixed a bug where the host on a dedicated server wasn't able to stop a vote.
  • fixed a tiny typo in the help text (leftover miss from using Xonotic's codebase as reference).
  • additional aliases for yes, no and stop commands has been added.
been a hot minute since i've done anything lua, let alone an update. either way, here's a few bug fixes and features.

  • fixed potential game crash if a player joins mid-vote.
  • fixed vote system breaking horribly the player calling a vote leaves before the vote ends.
  • vote commands now allow up to 3 arguments.
  • a new utility vote command has been added: roll.
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