Based on the equivalent SourceMod plugin (common in Team Fortress 2 community servers), this script gives players the ability to rock the vote, or RTV for short, allowing players to determine by majority whether or not to exit the current stage. Using it is quite straightforward: send a message with "RTV" (case-insensitive) right at the beginning. It'll announce your RTV to the server, count the current number of votes, and display how many are needed for the RTV to succeed. Of course, the script also has some failsafes in place to prevent griefing as well:
Please get in contact with me either through Discord or a private message if you find any issues. I'll try to get them fixed as soon as possible.
Supporters / Co-Authors:
- Spectators are not counted in the overall player count, and by extension, their RTVs do not count as well.
- RTV is disabled once a player has completed a lap.
- Each player can only RTV once. This resets when a new map is loaded.
- RTV cannot be triggered at intermissions. The script clears RTVs on level load anyway, but this prevents janky, meaningless prints in the chat.
- [1.0.4+] Splitscreen players are not counted in the overall player count, otherwise they could inflate it and make it impossible for RTV to succeed.
- Splitscreen players can inflate the overall player count in versions 1.0.3 and prior, causing RTV to always fail in games with a high enough splitscreen player count. Due to Lua's poor support for splitscreen at the moment, this bug is unfixable without a new patch. The next patch for Kart will include a means of detecting these splitscreen players, which this script has already been tested against. As the script is already written to account for this, no updates will be necessary at that time, and splitscreen players will be fully supported.
v1:
- Initial release.
Supporters / Co-Authors:
Attachments
Last edited by a moderator: