Garry's Mod

Garry's Mod

28 ratings
Partly Adequate Mapvote
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
File Size
Posted
Updated
25.553 KB
3 Jan, 2022 @ 4:47am
5 Feb, 2023 @ 12:08pm
9 Change Notes ( view )

Subscribe to download
Partly Adequate Mapvote

Description
Disclaimer
PAM doesn't come with any gui. Make sure to also subscribe to an addon that provides ui. (e.g.: Dark Votescreen or Mapvote-Like Map Voting)

Description
This Garry's Mod addon adds a comfortable way to democratically vote on maps. An older version is still available here.
This addon already works for terrortown. The PAM Compatibility Pack provides support for some more gamemodes. There is an easy to use api[github.com] to make this work for even more gamemodes as well.

The code is available here [github.com].
In case you encounter any problems, feel free to open a new issue here [github.com].

For more information please visit the wiki [github.com].

Easy to configure
PAM is configured via Pacoman.
Proper instructions and a list with examples can be found here[github.com].

Different Vote Types
  • Lottery Voting (All votes are equally important)
  • Plurality Voting (The option with the highest number of votes wins)

Extensions
Extensions are addons which can extend PAM's functionality.
E.g.:

Powerful Map filtering
It's possible to specify prefixes which maps must have at least one of. There is a whitelist and a blacklist to allow/remove specific maps.

Playcounts
PAM saves how often each map was played on a server.

Commands
  • The command "pam_toggle_menu" toggles visibility of the votescreen.

QOL
  • Adds ULX commands for starting/canceling a vote.
  • Supports the TTT2 bind system for all its console commands.

Shoutouts
57 Comments
Xopez 17 Aug @ 12:19am 
ah thanks for the fast answer :steamhappy:
Reispfannenfresser  [author] 17 Aug @ 12:03am 
@Xopez
You got plurality voting right.

Lottery voting picks a random vote and selects the option it picked.

e.g.:
One person votes for gm_construct.
Two people vote for gm_flatgrass.

gm_flatgrass now has a 2/3 chance of being picked.
gm_construct has a 1/3 chance.


There is a hidden feature as well: You can create addons that alter the voting power of players.
These differences are also taken into account.

One person with a voting power of 2 is considered as strong as two people with a voting power of 1
Xopez 16 Aug @ 8:31am 
Hey,

i don't quit understand the voting differences,

if I am right
Lottery: One of the voted maps is picked randomly
Plurality Voting: Highest Voted Map gets picked

Am I right with my thought?
plzendmylife 7 Mar @ 1:56pm 
Thanks for the quick reply. I'll look into it!
Reispfannenfresser  [author] 7 Mar @ 11:54am 
The skip_option is only intended to be used in combination with PAM's own round counter.
If you want to use the skip option, you should disable any limits your gamemode provide.

You can use rtv to restart the game loop when you're stuck.
plzendmylife 7 Mar @ 11:39am 
Hello, the "keep_playing" option breaks the gameloop. Instead of starting a new round on the same map, you get stuck with 00:00 on the timer. Dead people stay dead and no new round is started.
Tab shows "Map changes in 1 round or in 01:12:10" with the time still running down
⦓⡷⠂NEONSY⠐⢾⦔ 7 Mar @ 5:29am 
Yeah, I had both disabled due to an error in understanding. Thanks for the clarification.
Reispfannenfresser  [author] 6 Mar @ 11:32pm 
The symptoms you are describing lead me to believe it didn't know how to count the votes properly. If it doesn't know how to count the votes, it selects a random map from the available options.

Is it possible that you disabled both lottery_voting and plurality_voting? (These are the two server sided extensions that allow counting the votes)
If you want PAM to work you'll need to have one of these enabled and the other disabled.

Please let me know if this fixes it for you.
I intend to make configuration a bit more user friendly in a future update.
⦓⡷⠂NEONSY⠐⢾⦔ 6 Mar @ 12:53pm 
I had pacoman and ui, and while I don't mind using the map prefix setting, for some reason it chose a random map, regardless of the votes, including maps no one has voted.
Reispfannenfresser  [author] 6 Mar @ 8:53am 
This addon works with TTT2.

You will have to configure it to only allow ttt maps.
For that you will need pacoman and probably pacoman ui.

If you just want an addon that works out of the box, I can recommend the legacy version .