Metamod: Nsmapvote

[WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
<div class="IPBDescription">The mother of all NS map voting systems.</div> Hey guys, this is my project that's taken me the last 3 days to make and polish.

It's a map voting system that I feel is the best that could possibly be devised, short of just reading your mind. Here's what it actually does.

It waits until the map time has expired, then when the round is over it does the following:
1. Lock all players in the readyroom. All attempts to join a team will take them back to the rr.
2. Bring up some text on the right side of your screen that tells you how to vote.
3. Updates the text in #2 with your vote, the winning map, and the time remaining until the time is up.
4. When the time is up, the map is changed to the winning map. If no votes were cast, mapcycle.txt is used.


There are 2 methods of voting (controlled by a cvar). Method 1 is a halfd clone where users simply say "vote <mapname>" to cast a vote. Method 2 is to pick 5 random maps and present a menu to the users.

What makes that menu different from the other voting systems is that this menu doesn't appear on the left side where all the chat text can overwrite it. It appears on the right, looking all sexy.


Both voting styles let you know what the winning map currently is, how many votes it got, and how much time is left until the change takes place.


The system has 2 methods for finding valid maps to vote on. If the admin specifies a map file, then only maps showing up in that file are valid. But if no mapfile is specified, then every map in the maps directory is up for grabs.



Here's a screenie of the numbered voting system in action:
<img src='http://them.clanwho.com/webimages/nsmapvote.jpg' border='0' alt='user posted image' />



Notes: I've been using the help of the WarmFuzzyLand guys to beta test this plugin and it seems to be working. But bugs could still be present as it's hard to fully test a plugin that requires a server to be full to test well.



Please visit <a href='http://www.modns.org/forums/index.php?showtopic=455' target='_blank'>this thread on ModNS.org</a> for updates as well as the download link.

Comments

Sign In or Register to comment.