Garry's Mod

Garry's Mod

132 ratings
Automatic Votemap Cycle
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Tags: admin, misc
File Size
Posted
Updated
6.783 KB
15 Oct, 2013 @ 10:25am
8 Apr, 2015 @ 1:38am
6 Change Notes ( view )

Subscribe to download
Automatic Votemap Cycle

In 2 collections by AlexALX
Stargate Botov.NET.UA Garry's Mod Server Content
23 items
Train Botov.NET.UA Garry's Mod Server Content
31 items
Description
This is full automatic votemap system.
You can add maps to a pool which are used for votes.

Its very usefull, if you want a mapcycle where the players can choose the nextmap.

This version DOESNT require ULX or Ulib.

To add a map ingame use:
automap_addnextmap <map> <gamemode>

Or create an empty textfile named mapcycle.txt to your data folder.
And add maps to the mapcycle.txt this way:
gm_flatgrass sandbox
gm_construct darkrp
gm_mobenix_v3 prop_hunt
gm_botmap sandbox

If you want remove some map from cycle, just remove line with this map from mapcycle.txt file and restart server.

Admin ConVars (settings):
sv_automap_votetime 120 -- How many minutes to first Vote
sv_automap_extendtime 60 -- Extend Map for x Minutes
sv_automap_retry 3 -- Retrys if nobody voted
sv_automap_minvoteneed 0.65 -- In percent
sv_automap_maxextend 4 -- Maximum Extend do -1 to deactivate
sv_automap_minmaps 4 -- How many maps should be in the vote, can be from 1 to 9.
sv_automap_rocksneeded 0.6 -- in % how many rockvotes are needed to force a mapvote
sv_automap_changetime 60 -- In seconds
sv_automap_defaultgmode sandbox -- Change default gamemode
sv_automap_blocktime 180 -- how long should be blocked vote for nextmap just after previous vote (in seconds).
sv_automap_loadtime 300 -- how long should be blocked vote for nextmap just after map loaded (in seconds).
sv_automap_advertise 1 -- enable/disable advertise into game chat with addon commands (for players).

Note: all settings should be stored in garrysmod\cfg\server.cfg if you want to save it, server will read this config every map change.

Admin Commands:
automap_setextend - Change the Extends ingame.
automap_startmapvote 0/1 - Start next vote by manual with or without extend option.
automap_abort - Abort changing map via server/admin console.
automap_reload_cycle - Reload maps cycle without changing map.
automap_reload_settings - Reload addon settings without changing map.
!abort in chat - Abort changing map.

Player Commands:
Type !nominate to add your favorite map to the next mapvote!
Type !rtv to vote for the start of the next mapvote!
Type !hidevotehud to hide or unhide votemap hud!

Have fun.

Authors:
Automapvote by -)BDB(-DrTight
Porting to gmod13 and improvements by AlexALX
117 Comments
someoneyouknows 12 Feb, 2022 @ 12:59pm 
I might just be stupid or something but I can't seem to figure out how to change how long it takes for the map to change. It just might be me.
>KB> >KEKSQUAD 15 Oct, 2021 @ 11:52pm 
Hey, so the feature should only target humans for voting with player.GetHumans() instead of player.GetAll()
Eggroll 14 Jun, 2021 @ 5:15am 
I recommend you add a feature so that the map change logic sleeps (stops changing the map) when there are 0 players on the server! Also, after there are 0 players and one joins the timer starts. Because I have an issue with players joining and then 7 minutes later the map vote starts, causing there to be a weird pattern until the map changes. I love the add on tho! <3 I use this for my server! Eggroll’s Gun Game. It’s the only public USA gun game sever!
sokur196(никита) 2 Apr, 2021 @ 9:22am 
Как я могу изменить язык?
LaserX 1 Feb, 2021 @ 10:16pm 
how can I remove the name of the gamemode next to the map name when a vote starts?
Büyük Kürt [LOS] 13 Aug, 2020 @ 7:10pm 
Can i take this for my Server?
wizerd 21 Apr, 2020 @ 9:02am 
Is there a way to disable the box on the bottom of the screen by default for all my server players?
AlexALX  [author] 5 Jan, 2020 @ 8:17am 
@[LGRP] JohnV
If you removed addong it should dissapear (after change map/server restart). Also it is possible to disable that via sv_automap_advertise 0 command what you should put inside server.cfg
Chomma 5 Jan, 2020 @ 12:19am 
How do I remove this from the chat on startup:
How to remove this ad from chat?
Type !nominate to add your favorite map to the next mapvote!
Type !rtv to vote for the start of the next mapvote!
Type !hidevotehud to hide or unhide votemap hud!

I've also just tried plain out removing the addon but it still won't fix it, anyone have a clue on how to fix this?
devrimdgn62 6 Nov, 2019 @ 2:44pm 
How can I Change the language?