Garry's Mod

Garry's Mod

75 ratings
Partly Adequate Mapvote (Legacy)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
File Size
Posted
Updated
128.166 KB
19 Aug, 2019 @ 5:23pm
1 Jul, 2020 @ 12:55pm
20 Change Notes ( view )

Subscribe to download
Partly Adequate Mapvote (Legacy)

Description
Disclaimer
There is a new version which is more modular and more configurable, but doesn't work on it's own. (Which is why I'll keep v1.5.2 available here)

Description
This Garry's Mod addon adds a comfortable way to democratically vote on maps. This addon already works for a couple of gamemodes (full list below). There also is an easy to use api to make this work for even more gamemodes (see below). The code is available here [github.com]. I no longer intend to update this version however.

RTV
When enabled, players can use a the command "pam_rtv" to start a vote without needing admin permissions. Once enough players ran this commands a vote starts.

Gamemode Independence
Pam natively supports these gamemodes:
You can add support for other gamemodes by:
  • running PAM.Start() when a certain number of rounds is reached
  • running PAM.CheckForDelayedRTV() when a round ends. (or another point is reached where the map can be changed)
The implementations for natively supported gamemodes are in this file[github.com].

Default UI Features
  • Maps can be marked as favorites for easier access.
  • There is a search bar.
  • Maps can be sorted.
  • There is an option to only show maps that are being voted on currently

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

Extensions
Other addons can change the ui of pam entirely. Use the command pam_extension_manager to open a menu to enable/disable different extensions. There are a couple of differently sizes votescreens by default. This is useful for displays with higher resolution

Another example would be:
PAM - MapVote-Like Map Voting which allows clients to use the UI of MapVote - Fretta-like Map Voting

Commands
  • The command "pam_toggle_menu" toggles visibility of the votescreen.
  • The command "pam_rtv" makes the player vote for rtv.
  • The command "pam_extension_manager" opens the extension manager.

Easy to configure
PAM is configured via convars.
Name
Type
Description
Default value
Examples
pam_vote_length
number
Set the length of the voting time in seconds.
30
When set to 20 there will be 20 seconds to vote. When set to 0 there won't be any time to vote
pam_map_prefixes
string
When a map has at least one of the prefixes it is voteable.
""
"ttt_,de_" to only allow maps with "ttt_" or "de_" in their name. When left empty all maps are allowed
pam_map_blacklist
string
When a map is listed here it won't be voteable.
""
"example,celery" will not allow any maps named "example" or "celery"
pam_map_whitelist
string
When a map is listed here it will be votable even if the prefixes don't match.
""
"example,celery" will allow any maps named "example" or "celery" even when they don't have any fitting prefixes
pam_map_cooldown
number
Set the amount of rounds needed for a map to be votable again.
3
Set this to 4 to not allow maps that were played in the last 4 rounds. Set this to 0 to allow maps independent from previous appearances.
pam_max_maps
number
Set the maximum number of maps.
15
Set this to 20 to see a maximum of 20 maps. Set this to 0 to allow all maps
pam_rtv_enabled
0 or 1
Enables/disables rtv
0
Set this to 1 to enable rtv or to 0 to disable rtv.
pam_rtv_percentage
number between 0 and 1
The amount of players needed for rtv to start in relation to the total amount of players.
0.6
Set this to 0.5 to start rtv when 50% of players want to. Set this to 0 to start rtv when any player wants to.
pam_rtv_delayed
0 or 1
Delays the rtv vote to a more fitting moment. This is not supported by most gamemodes.
0
Leave this at 0 to start the vote instantly. Set this to 1 to delay the vote to a more fitting moment.

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

Shoutouts
156 Comments
Reispfannenfresser  [author] 28 Mar, 2023 @ 1:00pm 
@LarryBoy101
Thank you for the kind words :tabbycat:
Necro :3 31 Dec, 2022 @ 8:32pm 
Hey, ich hab ein Map Icon Pack mit meinen Screenshots (89 pics) aufm Workshop veröffentlicht. Will vorschlagen, ob du es unter Shoutouts auflisten möchtest
MutantBison, PhD 5 Jun, 2022 @ 4:41am 
I gotta say, this is a really nice and moddable system you've created here. As easy as fretta-like map voting is to use, it doesn't have nearly the kind of customisation or informative UI as yours does (at least for a layman like me).

Good work! I'm really happy with how this addon functions when my friends and I play TTT.
Reispfannenfresser  [author] 9 Jan, 2022 @ 1:27am 
The new version is now released. (Bugs are to be expected)
CoolChiz 24 Feb, 2021 @ 1:28pm 
Thanks figured it out. Just need to upload my own addon with my thumbnails then just add it to the server collection.
Reispfannenfresser  [author] 24 Feb, 2021 @ 12:19pm 
I don't know why that would be the case, but i will create a guide at some point since lots of people seem to have similar issues.

For now this is all I've got:
1. Make sure the files are in the "maps" or the "maps/thumb" folder (preferably "maps/thumb")
2. Make sure the name of the image is the exact same as the name of the map
3. The resolution shouldn't matter as long as it's a square (larger images take longer to load though which will negatively affect performance)
4. Have you tried turning it off and on again?
CoolChiz 23 Feb, 2021 @ 2:14pm 
Is there a reason why some thumbnails show up and others don't? I made them 200x200, png, and same map name
Reispfannenfresser  [author] 3 Feb, 2021 @ 8:41pm 
It momentarily is very difficult to configure pam properly on this branch, but i'm working on creating a proper configuration system. I will update the workshop version once it's finished.
Reispfannenfresser  [author] 3 Feb, 2021 @ 8:38pm 
here [github.com] no guarantee on it working though. (feel free to report bugs if you want :UltimateChameleon:)
blazphemur 3 Feb, 2021 @ 8:36pm 
aw damn ok, is the developmental branch available to the public?