Garry's Mod

Garry's Mod

Not enough ratings
Honest MapVote (fretta-style mapvote extension)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Water
File Size
Posted
Updated
35.987 KB
Mar 26 @ 10:50pm
Aug 9 @ 7:05pm
13 Change Notes ( view )

Subscribe to download
Honest MapVote (fretta-style mapvote extension)

In 1 collection by wget
ESB TTT addons
12 items
Description
MapVote - Fretta-like Map Voting is required for this to work!
(Other slightly-modified versions like MapVote - Prop Hunt edition! also work)

REAL DEMOCRACY: this allows players to vote for maps honestly by using ranked-choice voting instead of first-past-the-post voting (which wins by plurality instead of majority and heavily encourages strategic voting because of wasted votes which prevents people from voting for what they actually want)

the modified voting ui also ensures that ALL maps from the workshop will have a thumbnail in the voting menu
(map icon packs will still work but they're no longer necessary)

new client chat commands:
revote - Re-opens the vote menu after it's closed

unrtv - Removes your vote to rtv

also, voting to rtv while having already voted will tell you the current rtv progress

new server config settings:
RandomMapOption - Allow people to vote for a random map to be selected, defaults to false

RTVCountSpectators - Whether spectators should count towards the number of players that need to rtv, defaults to false

RTVPercentNeeded - Fraction of players that need to vote to rtv to trigger the mapvote, defaults to 0.66

RTVWaitSeconds - Number of seconds after a map change before players are allowed to vote to rtv, defaults to 60

ThumbsFastDL - Calls the resource.AddSingleFile() function on all map thumbnails, only works for servers with FastDL, defaults to false because it will increase initial load times

AllowedMaps - List of maps that will bypass the MapPrefixes filter, set to [] to disable

DisabledMaps - List of maps that will be excluded from the voting options, set to [] to disable

OverplayedMapsPattern - Maps that match this pattern will have the random weight in OverplayedMapsWeight applied, multiple patterns are separated with the | character, set to "" to disable

OverplayedMapsWeight - Random weight multiplier for maps that match the pattern in OverplayedMapsPattern, defaults to 0.5

default value for MapLimit is changed to 12 (from 24), i don't recommend going above 12 because people will feel like they're too overwhelmed with options

default value for TimeLimit is changed to 30 (from 28)

also, the config file is now pretty-printed now so it's easier to edit,
delete data/mapvote/config.txt to reset the mapvote config so this can take effect

more info:
this should probably work with most modified versions of fretta-style mapvote
(no guarantee, but it's very likely)

tell me in the comments below if you encounter some issue or if you want to suggest some feature

anyone is free to edit and share edited versions of this addon's code
(just make it clear what you changed)

my addons:
my maps:
15 Comments
Elfbarf Jun 3 @ 1:52pm 
Would it be possible to add map minimum/maximum playercounts similar to EX3MP's plugin?
https://github.com/EX3MP/gmod-mapvote
wget  [author] Apr 26 @ 5:17pm 
@Clifford yes
Clifford Apr 24 @ 4:18am 
I ended up using AllowedMaps. Thanks for adding it.
Reziem Apr 6 @ 9:54pm 
Is it possible for me to edit / move the entire map vote UI down a bit from the top of the screen?
wget  [author] Apr 4 @ 7:26pm 
@Clifford oh since you mention you only need specific maps like cs_office, i added AllowedMaps which will bypass the prefix whitelist
wget  [author] Apr 4 @ 6:50pm 
@Clifford added as config option: DisabledMaps
Clifford Apr 4 @ 1:47pm 
Is it possible to blacklist maps? E.G I add the de_ & cs_ prefix to the config but don't want all the default css maps being on the map vote. Only ones I feel suit the player size aka cs_office or player made css maps such as the below:
https://steamcommunity.com/sharedfiles/filedetails/?id=557585977
Clifford Apr 1 @ 9:37pm 
Didn't even think about that lmao. It's now working, thanks!
wget  [author] Apr 1 @ 9:15pm 
@Clifford the player.Iterator function is relatively new, make sure the server is up to date
Clifford Apr 1 @ 7:56pm 
I haven't been able to replicate the issue on a fresh dedicated server, even introducing the same collection that is used on the problematic dedicated server.

I'll go with setting up a fresh server to replace current to see if there is changes I made along the way that contributed and see how I go with errors.
Maybe the error message is useful on its own to you.