Jump to content

Voting Maps


Navyveteran

Recommended Posts

I see the info there, do I need to make a map config and put it in the sever.cfg and exec. or just that cvar setting? I know players have the ability to vote on maps as it stands as default and I set it to "1". When I go to intermission there's no new options to vote on maps.

Edited by Navyveteran
Link to comment
Share on other sites

  • Subscriber

On my server, we have this in our server.cfg:

 

 

set g_gametype "6"

(plus all other map settings from the link above)

 

then:

exec MapVoteCycle.cfg
            // Start the map voting cycle - this is an external file (see below)
set com_watchdog "10"
            // Set amount of time before watchdog triggers after sensing that a map is not loaded
set com_watchdog_cmd "exec MapVoteCycle.cfg"

Then MapVoteCyle.cfg has this:

    set d1 "set g_gametype 6 ; map oasis ; set nextmap vstr d2"
    set d2 "set g_gametype 6 ; map battery ; set nextmap vstr d3"
    set d3 "set g_gametype 6 ; map goldrush ; set nextmap vstr d4"
    set d4 "set g_gametype 6 ; map radar ; set nextmap vstr d5"
    set d5 "set g_gametype 6 ; map railgun ; set nextmap vstr d6"
    set d6 "set g_gametype 6 ; map fueldump ; set nextmap vstr d1"
    vstr d1

What that does is when there are no players, it cycles through the stock 6 maps.    If there are players, they should be presented with a list of maps.  The maps must reside in your etmain folder.

 

Hope that helps.

 

 

EDIT: the other settings we have in server.cfg related to map voting are:

        set g_mapVoteFlags "21"
            // Ways to change how map voting works
            // Only valid when g_gametype is 6 (see Map Voting)
            
        set g_maxMapsVotedFor "12"
            // How many maps are presented to users for voting upon during intermission
            // Only valid when g_gametype is 6 (see Map Voting)
            
        set g_minMapAge "10"
            // How long a map is ineligible for voting, after it is played
            // Only valid when g_gametype is 6 (see Map Voting)
            
        set g_resetXPMapCount "0"
            // How many maps occur before XP is reset. If g_XPSave flag 4 is set, g_resetXPMapCount
            // is ignored. Similarly, if g_resetXPMapCount is set to 0, it is the same as setting
            // g_XPSave flag 4 
            // Only valid when g_gametype is 6 (see Map Voting)
            
        set g_excludedMaps ""
            // Used to exclude map that would otherwise be listed in the map voting list. The format
            // is ":map1:map2:map3:", where mapX is the .bsp name. Note that each mapname must be
            // fully surrounded by ":" otherwise the map will not be excluded.
            // Only valid when g_gametype is 6 (see Map Voting)
Edited by BECK
Link to comment
Share on other sites

  • 7 months later...
  • Subscriber

I'm using the super secret setting 16 that allows me to be the only vote that matters.   j/k  That is not a real setting :P

Honestly, I don't know man LOL.   There might have been a flag removed?  Either way, its a bitmask and it works regardless.  However, if value 16 is ever added again, I suppose I better make sure I like that setting :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...