Garry's Mod

Garry's Mod

26 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
26 Mar, 2024 @ 10:50pm
9 Aug, 2024 @ 7:05pm
13 Change Notes ( view )

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

In 1 collection by wget
ESB TTT addons
13 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:
19 Comments
Pee Warmer 3 Jan @ 9:16am 
Nevermind, it still doesn't account the current map played.
Pee Warmer 3 Jan @ 9:06am 
Looks like your addon really doesn't support the clusterfuck that is Murder's map name formatting - mapname.%bsp$

After changing it to just the mapname it works flawlessly.
Pee Warmer 3 Jan @ 8:24am 
Original Fretta-like MapVote works just fine though.
Pee Warmer 3 Jan @ 8:23am 
uh, looks like Murder really doesn't like this addon - passing prefixes via
MapVote.Start(nil, nil, nil, prefix)
which prefix is a pointer containing all the map names - yields aboslutely nothing in the map pool.
Elfbarf 3 Jun, 2024 @ 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] 26 Apr, 2024 @ 5:17pm 
@Clifford yes
Clifford 24 Apr, 2024 @ 4:18am 
I ended up using AllowedMaps. Thanks for adding it.
Reziem 6 Apr, 2024 @ 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] 4 Apr, 2024 @ 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] 4 Apr, 2024 @ 6:50pm 
@Clifford added as config option: DisabledMaps