Garry's Mod

Garry's Mod

Ocen: 32
Honest MapVote (fretta-style mapvote extension)
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Content Type: Addon
Addon Type: Tool
Addon Tags: Water
Rozmiar pliku
Zamieszczono
Zaktualizowano
35.987 KB
26 marca 2024 o 22:50
9 sierpnia 2024 o 19:05
Listy zmian: 13 ( zobacz )

Zasubskrybuj, aby pobrać
Honest MapVote (fretta-style mapvote extension)

W 1 kolekcji stworzonej przez wget
ESB TTT addons
Przedmioty: 13
Opis
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:
Komentarzy: 20
glarmer ⛟ 28 marca o 4:37 
Would it be possible to add a rating system for maps like in Perfect Map Vote (https://steamproxy.net/sharedfiles/filedetails/?id=2428251124)

(Basically at the end of a round players can rate the map, and this rating appears during voting in the future)
Pee Warmer 3 stycznia o 9:16 
Nevermind, it still doesn't account the current map played.
Pee Warmer 3 stycznia o 9:06 
Looks like your addon really doesn't support the ♥♥♥♥♥♥♥♥♥♥♥ that is Murder's map name formatting - mapname.%bsp$

After changing it to just the mapname it works flawlessly.
Pee Warmer 3 stycznia o 8:24 
Original Fretta-like MapVote works just fine though.
Pee Warmer 3 stycznia o 8:23 
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 czerwca 2024 o 13:52 
Would it be possible to add map minimum/maximum playercounts similar to EX3MP's plugin?
https://github.com/EX3MP/gmod-mapvote
wget  [autor] 26 kwietnia 2024 o 17:17 
@Clifford yes
Clifford 24 kwietnia 2024 o 4:18 
I ended up using AllowedMaps. Thanks for adding it.
Reziem 6 kwietnia 2024 o 21:54 
Is it possible for me to edit / move the entire map vote UI down a bit from the top of the screen?
wget  [autor] 4 kwietnia 2024 o 19:26 
@Clifford oh since you mention you only need specific maps like cs_office, i added AllowedMaps which will bypass the prefix whitelist