yoshi6 • PM |
Sep 10, 2011 8:18 PM
|
![]() Posts: 1 |
I've got a couple of servers now but how do I set them to only play specific gamemodes for example have 1server for campaign, 1server for versus and 1server for survival?
|
scipizoa • PM |
Apr 09, 2012 12:44 PM
|
![]() Posts: 8 |
Starting your server in a specific game mode (versus/scavenge/realism)
Like a lot of you I have wanted my servers to start up in versus/scavenge/realism mode automatically and not have the client need to set one up via a lobby... The answer: - Create a new file called versus.cfg (or whatever you want) and make sure it is in the CFG's folder - In the new cfg file enter the following: map c1m1_hotel versus NOTE: you MUST specify a starting map before the +exec in your startup line. EXAMPLE: ./srcds_run -ip xxx.xxx.xxx.xxx -port xxxxx -console -game left4dead2 -secure -sv_unlag 1 -maxclients 12 -sv_pure 1 +map c1m1_hotel +exec versus.cfg - In your servers startup line add this variable: +exec versus.cfg REMEMBER: server.cfg will run on EVERY map change automatically and on server startup so there is no point specifying it in the server startup line, only specify the custom cfg with the game mode you want REMEMBER: DO NOT put this map command in the server.cfg or your server will just constantly restart as it exec's the server.cfg file and changes the map again and again and again Notes: Starting modes are: - coop - Campaign Mode - versus - Versus Mode - survival - Survival Mode - realism - Campaign Mode (Realism Enabled) - teamscavenge - Scavenge Mode Scavenge maps are: - c1m4_atrium - c2m1_highway - c3m1_plankcountry - c4m1_milltown_a - c4m2_sugarmill_a - c5m2_park If you dont want your server to be able to run any other mode be sure to specify the sv_gametypes command in your server.cfg ![]() ![]() |
loopylootwo • PM |
Apr 23, 2012 2:29 AM
|
![]() Posts: 12 |
Or you could just put this in server.cfg
mp_gamemode "versus" change to whatever gamemode you want |