SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Kart Releases & Mods > Miscellaneous

Reply
 
Thread Tools
Rock the Vote Details »»
Rock the Vote
Version: 1, by Wolfy (wolfs) Wolfy is offline
Developer Last Online: Apr 2020

Category: Version: SRB2 Kart Rating: (2 votes - 3.40 average)
Released: 03-08-2019 Last Update: Never Installs: 1
Scripts Re-Useable Content

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:
  • 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.
This script was designed for Kart, but should in theory function in vanilla SRB2 as well. If you intend to use it there, do so at your own risk. Please do not report issues regarding vanilla compatibility.

Spoiler: Known Issues:
  • 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.

Spoiler: Changelog:

v1:
  • Initial release.

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.

Download Now

File Type: lua kl_rtv_v1.lua (3.0 KB, 258 views)

Screenshots

Click image for larger version

Name:	kart0091.png
Views:	278
Size:	209.0 KB
ID:	17387   Click image for larger version

Name:	kart0092.png
Views:	276
Size:	140.9 KB
ID:	17388   Click image for larger version

Name:	kart0050.gif
Views:	331
Size:	1.80 MB
ID:	17389  

Supporters / CoAuthors

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 03-08-2019   #2
D00D64
Worst Ranked 'Kart Player
Moderator
 
D00D64's Avatar
Default

With the intentions of the code being for Kart, I decided to place it in Kart Misc. instead of SRB2 Misc. I also can't recall test to see if this works in multiplayer, but at least creating a Lan server by myself let it work, so I feel confident it'll work.
__________________
The least skilled player on the Kart Krew dev team, but I try my best. Maybe someday...

My awful Twitter account

My also awful YouTube channel
D00D64 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:14 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.