PDA

View Full Version : server map change help (config)


pretz_7
05-15-2002, 06:00 PM
My server now is completely opperational (connection speed and workingness-wise). But I'm having a bit of trouble with the map changes... Here is the section of my config that defines map rotation. And yes I have "g_autoMapCycle" seta to zero):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^
// Mapcycle
set d1 "map riverbloodmp ; set nextmap vstr d2"
set d2 "map ffa_deathstar ; set nextmap vstr d3"
set d3 "map ffa_bespin ; set nextmap vstr d4"
set d4 "map ffa_ns_hideout ; set nextmap vstr d5"
set d5 "map ffa_yavin ; set nextmap vstr d6"
set d6 "map ffa_raven ; set nextmap vstr d7"
set d7 "map ffa_ns_streets ; set nextmap vstr d8"
set d8 "map duel_temple ; set nextmap vstr d9"
set d9 "map duel_pit ; set nextmap vstr d10"
set d10 "map duel_jedi ; set nextmap vstr d11"
set d11 "map duel_bay ; set nextmap vstr d12"
set d12 "map ctf_bespin ; set nextmap vstr d1"

// Start map
vstr d1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^
The problem is that when the maps change they don't switch the gametype. For example when the map changes to duel_temple the game will be in ffa mode (my default). I want to know if theres someway I could make it change the gametype with the map. And how I could do this. Also, if this is possible could I make one map switch to devmap mode for a while :p hehehe. Thanx please help!!! :D

MatrixCPA
05-15-2002, 08:55 PM
Adjust your rotation like so:

// Mapcycle
set d1 "set g_gametype 0; set fraglimit 20; map riverbloodmp ; set nextmap vstr d2"
set d2 "set g_gametype 0; set fraglimit 20; map ffa_deathstar ; set nextmap vstr d3"
set d3 "set g_gametype 0; set fraglimit 20; map ffa_bespin ; set nextmap vstr d4"
set d4 "set g_gametype 0; set fraglimit 20; map ffa_ns_hideout ; set nextmap vstr d5"
set d5 "set g_gametype 0; set fraglimit 20; map ffa_yavin ; set nextmap vstr d6"
set d6 "set g_gametype 0; set fraglimit 20; map ffa_raven ; set nextmap vstr d7"
set d7 "set g_gametype 0; set fraglimit 20; map ffa_ns_streets ; set nextmap vstr d8"
set d8 "set g_gametype 3; set fraglimit 1; map duel_temple ; set nextmap vstr d9"
set d9 "set g_gametype 3; set fraglimit 1; map duel_pit ; set nextmap vstr d10"
set d10 "set g_gametype 3; set fraglimit 1; map duel_jedi ; set nextmap vstr d11"
set d11 "set g_gametype 3; set fraglimit 1; map duel_bay ; set nextmap vstr d12"
set d12 "set g_gametype 7; map ctf_bespin ; set nextmap vstr d1"

// Start map
vstr d1

Now, technically, you only need to include the gametype and fraglimit changes for the first map of each type. I prefer to do it for every line individually because it makes it less likely to be messed up if a map is removed, skipped or changed to manually. I've also used a fraglimit of 1 for the duel maps and 20 for the ffa maps. If you want no fraglimit for the ffa maps, set it to 0. If you want another number, just change them.

Remember to set duel_fraglimit to something (I use 8 or 10) and capturelimit to something (I use 6 to 10 depending on the map). You can set a timelimit globally also, or include it with the rest of the map to map changes. Of course, timelimit won't affect duel maps, so you can skip those.