Garry's Mod

Garry's Mod

Not enough ratings
MapVote - Prop Hunt edition!
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
21.370 KB
25 Jan, 2020 @ 7:32am
1 Change Note ( view )

Subscribe to download
MapVote - Prop Hunt edition!

In 1 collection by Brumble
Hybrid Networks | Addon Storage
139 items
Description
After many months of seeing people ask for it here it is, My version of Map Vote specifically designed for Prop Hunt Server.

Features
+ Config file that automatically generates at garrysmod/data/mapvote/config.txt
+ Map CoolDown System
+ Build in Rock The Vote
+ MapVotes from RTV delayed to the end of the current round, so as to not effect gameplay
+ Integration with ULX admin mod to allow a force mapvote and a mapvote cancel with !mapvote and !unmapvote.
+ Working with Prop Hunt and Deathrun.
+ Enable/Disable on RTV delay to round end
+ Config to give extra voting power to Admins/Donators
+ Any good suggestions I get



Installation
======================

Most config options are self-explanatory and you should be able to take a safe bet at editing them. MapPrefixes is a table, and you should look at the example on the page linked above before editing it.

Simple subscribe to use my current config, or extract the addon with gmad.exe and edit the lua's to your liking.

Important
======================

Once you run the addon in your server it will create a file called config.txt in your garrysmod/data/ folder.

I highly reccomend you edit the config.txt file and use my configuration below:

"{"RTVPlayerCount":1,"MapLimit":100,"TimeLimit":30,"AllowCurrentMap":true,"MapPrefixes":["ph_"],"MapsBeforeRevote":0,"EnableCooldown":false}"
21 Comments
concrete shoes 13 Apr, 2024 @ 8:29pm 
I get this error:

[MapVote - Prop Hunt edition!] lua/mapvote/cl_mapvote.lua:47: attempt to call method 'SetMaps' (a nil value)
1. func - lua/mapvote/cl_mapvote.lua:47
2. unknown - lua/includes/extensions/net.lua:38
Brumble  [author] 12 May, 2023 @ 12:36pm 
I hope everyone is enjoying this plugin.

I intend to update soon for all current versions.
麻辣香锅 1 Nov, 2020 @ 3:55am 
ok thanks:)
Brumble  [author] 1 Nov, 2020 @ 3:28am 
You'll have to change the config file and re-edit all the code in the lua files to work with the game mode :) but yes, it's possible.
麻辣香锅 31 Oct, 2020 @ 9:15pm 
Can MapVote be used in Homicide:)
Brumble  [author] 9 Sep, 2020 @ 7:01am 
Add me on steam, it'll be easier if you just send me the files so i can go through them for you :)
Bill 8 Sep, 2020 @ 11:56am 
When i type !mapvote into the console it says that i've initiated a map vote and the screen comes up like it's gonna let me, but it says the countdown is zero and no maps show up. The weirdest thing is that after maybe thirty seconds it does switch to another prop hunt map. it just doesn't give me the option to choose which map. Also my config.txt looks like how you recommended to set it up in the description, although i can double check to make sure i didn't mess anything up.
Brumble  [author] 7 Sep, 2020 @ 11:23pm 
Okay.

It's not actually the SetMaps thats causing the issue as that's literally just a function that's asking the addon to display a list of the maps.

"
MapVote.Panel = vgui.Create("VoteScreen")
MapVote.Panel:SetMaps(MapVote.CurrentMaps)
end)
"

Does the mapvote screen come up when you end round or activate it?
Did you change any of the lua files?
What does your config.txt look like?

Bill 7 Sep, 2020 @ 6:55pm 
Sure thing:

[MapVote - Prop Hunt edition!] lua/mapvote/cl_mapvote.lua:47: attempt to call method 'SetMaps' (a nil value)
1. func - lua/mapvote/cl_mapvote.lua:47
2. unknown - lua/includes/extensions/net.lua:32

Brumble  [author] 7 Sep, 2020 @ 6:27am 
Could you paste the entire error here please?