PDA

View Full Version : Change Gametype, Map Rotation Question


Gorewell
12-07-2007, 03:59 PM
Hi, I didn't see my desired solution in another thread, but I may not know exactly what to look for. Thanks for your patience and help; I'm new at this.

I have a Search & Destroy server. It runs S&D all the time. However, I would like to be able to change the gametype through rcon, to Team Deathmatch for example, when there are fewer players on the server.

I tried changing g_gametype sd to g_gametype war through rcon, then restarted the map, but that process did not work. I must have done something wrong. If I was supposed to restart the server in order to make the g_gametype command take effect, then that is not the process I am looking for. I would like to change the gametype on the fly, in-game.

Here is my map rotation info from the config: As you can see, all gametype rotations that are not S&D are commented out. I tried removing the comments from each gametype, but the server did not default to S&D any longer.

//------------------------------------------------------------------------------------
//MAP ROTATION SETTINGS -
//------------------------------------------------------------------------------------
//set sv_mapRotation "gametype dm map mp_backlot ..."
//set sv_mapRotation "gametype dom map mp_backlot ..."
//set sv_mapRotation "gametype koth map mp_backlot ..."
//set sv_mapRotation "gametype sab map mp_backlot ..."
set sv_mapRotation "gametype sd map mp_backlot..."
//set sv_mapRotation "gametype war map mp_backlot ..."
//------------------------------------------------------------------------------------



Recap: So, what I want is an S&D server 24/7. But I want to be able to change the gametype on the fly to TDM or Headquarters, etc. Having switched to Headquarters, e.g., I want the server to play through the headquarters map rotation as configured until the gametype is changed back or the server is restarted, at which point I would like the server to default back to S&D.

Thanks for your help!

RaDioAcTivE
12-08-2007, 10:31 AM
/rcon set g_gametype "war"

/rcon map restart


I think that'll do it. I haven't had the need to try this yet and I know that COD4 acts differently at times but it should work.