Left 4 Dead 2

Left 4 Dead 2

41 ratings
How to change the Game Mode.
By Maur0
In this guide I will teach you how to change the game mode for the way you are from campaign to versus or survival to scavenge and even mutations, without requiring any sourcemod plugin. Well, let's start!

Edit: Due to the update of The Last Stand, it is no longer possible to use the command "scripted_user_func cvar, mp_gamemode" due to the fact that Valve applied that the cvars commands will be restarted and precisely avoiding changing the game mode when we change the map.

In order to use this method, you will need to install Sourcemod and Metamod.
   
Award
Favorite
Favorited
Unfavorite
Mods required.
Before starting you will have to have installed two mods that will serve to modify the game with cvars commands and other things:

Sourcemod[www.sourcemod.net]
Metamod[www.sourcemm.net]

Admin System:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?l=spanish&id=214630948
Admin Menu:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1229957234

With these mods they use them in the local server and write the commands in the chatbox or the development console.

Here is a guide about all the commands and other things about the admin system:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=213591107
Change the campaign mode for versus.
Well now that you have the admin system and I imagine that you already have access to the commands on the local server now we are going to convert the campaign mode into the versus mode.

For that what we are going to do is create ourselves in the lobby in the campaign mode and put the type of server: local server; and privacy: public or friend. Then they give start in any campaign.


Now in the game we will put the command to change the game mode, it can be through the chatbox or development console.
Chat box: !cvar mp_gamemode versus Console: sm_cvar mp_gamemode versus

Now it is in versus mode but the problem is that it is not completely complete, that is, when all the survivors die the game does not end. Then what you need to do is reset the map. There are two ways:
  1. You can vote "restart campaign" or "change campaign."
  2. Or you can also give the command changelevel and the specified map:
Console: changelevel c5m1_waterfront
Note: The vote "restart campaign" requires at least 2 players or more to accept the vote, only you can not. In that case, try voting "change campaign" or "changelevel".

Then it would look like this:
Congratulations, you have already converted the campaign mode into the versus mode.
Change campaign mode to survival mode.
To convert the survival mode they will do the same as they did with the vs mode, but with a condition, since the survival mode has specified maps, that is, you can only play the maps that I am going to show them. -----> See in the section "List of Maps".

The rest of the maps are not supported to play them and there may be several failures.
Note: There are some hidden maps that if they serve for survival mode, if they do find them.

Now that you know which maps are for survival, let's turn it into campaign mode for survival. Same step they did for the versus mode but we put this code:
Chat box: !cvar mp_gamemode survival Console: sm_cvar mp_gamemode survival
Then we reset the map with voting or the changelevel command:
Console: changelevel c1m4_atrium
And you'll be playing survival mode in campaign mode.
Change campaign or versus mode to scavenge mode.
The scavenge mode requires restarting the map by selecting "Change campaign", since it does not have a restart chapter and I do not recommend using the changelevel method because it brings the error of disappearing gasoline cans and they can not do anything, more than survive.

In addition this mode is the same to the survival mode, that is, you only have your specified maps and these are. -----> See in the section "List of Maps".

And that's why some maps will not work if you choose the one that does not go on the list.

And the code to change it is this:
Chat box: !cvar mp_gamemode scavenge Console: sm_cvar mp_gamemode scavenge
And for this you give to vote "change campaign", because as I said before it is not advisable to put the command changelevel, because it gives the error of not having gascan.
Change campaign mode for mutations.
This part is fun, you can not only change the campaign mode, versus, survival and scavenge, you can also change to the selected mutation mode. Each mutation represents a changed game mode for the specified mode either campaign or versus, etc. It would be like this:

If I want to play the "hard eight" mutation, I put it like this:
Chat box: !cvar mp_gamemode mutation4 Console: sm_cvar mp_gamemode mutation4
Or if I want to play the tank mutation, it would be like this:
Chat box: !cvar mp_gamemode mutation19 Console: sm_cvar mp_gamemode mutation19
And yes or yes, you have to reset the map as always in a vote or changelevel command. Unless there is the survival or scavenge mutation, remember to put it on the map that goes.
Change the Mutation EMS game mode.
This is something a bit complicated but you understand it well. There are 3 ems mutations that means "extended mutations system" that were them between Valve and the community to create new mutations. In those are:
  • Holdout
  • Dash
  • ShootZones
Note: There is a mutation other than "gunbrain" but it is not something that works for you, if you know what the mutation is about.

Those 3 mutations have their specified maps and it will not work giving the vote to "change campaign" and "restart campaign" so that they can go there, I give you this list of maps that go:
Holdout
Training: Death Toll Chapter: 3 / 5 Challenge: Swamp Fever & Hard Rain Chapter: 1
Dash
The Parish Chapter: 2 / 4
Shootzones
Dark Carnival Chapter: 2

And to access those mutations, here's the code:
Chatbox: !cvar mp_gamemode holdout !cvar mp_gamemode dash !cvar mp_gamemode shootzones Console: sm_cvar mp_gamemode holdout sm_cvar mp_gamemode dash sm_cvar mp_gamemode shootzones

And then, because these mutations are also similar to survival or scavenge mode, they should put the map that leaves them on the list.

Now that they are in the mutation mode that they chose, there is a problematic issue, when they are in the mutation after giving the changelevel they will not start correctly and it is a bit bug / glitch, then there they will vote "restart campaign" or just kill with the command !kill all
And it is already in the mutation in good condition.

Note: Be careful not to put the !cleanup command or you will lose everything and have to kill or restart.
List of all game modes.
Here is the whole list of the game mode and remember that to change it you have to put the command !cvar mp_gamemode and the game mode you want to select.
mp_gamemode coop "Campaing" mp_gamemode realism "Realism" mp_gamemode versus "Versus" mp_gamemode survival "Survival" mp_gamemode scavenge "Scavenge" mp_gamemode mutation1 "Last Man On Earth" (Single Player) mp_gamemode mutation2 "Headshot!" (Campaign) mp_gamemode mutation3 "Bleed Out" (Campaign) mp_gamemode mutation4 "Hard Eight" (Campaign) mp_gamemode mutation5 "Four Swordsmen" (Campaign) mp_gamemode mutation7 "Chainsaw Massacre" (Campaign) mp_gamemode mutation8 "Ironman" (Realism) mp_gamemode mutation9 "Last Gnome On Earth" (Campaign) mp_gamemode mutation10 "Room For One" (It only works on the finale map.) mp_gamemode mutation11 "Healthpackalypse!" (Versus) mp_gamemode mutation12 "Realism Versus" (Versus) mp_gamemode mutation13 "Follow the Liter" (Scavenge) mp_gamemode mutation14 "Gib Fest" (Campaign) mp_gamemode mutation15 "Versus Survival" (Versus, with survival mode maps.) mp_gamemode mutation16 "Hunting Party" (Campaign) mp_gamemode mutation17 "Lone Gunman" (Single Player) mp_gamemode mutation18 "Bleed Out Versus" (Versus) mp_gamemode mutation19 "Taaannnkk!" (Versus) mp_gamemode mutation20 "Healing Gnome" (Campaign) mp_gamemode community1 "Special Delivery" (Campaign) mp_gamemode community2 "Flu Season" (Campaign) mp_gamemode community3 "Riding My Survivor" (Versus) mp_gamemode community4 "Nightmare" (Survival) mp_gamemode community5 "Death's Door" (Campaign) mp_gamemode community6 "Confogl" (Versus) mp_gamemode gunbrain mp_gamemode l4d1coop mp_gamemode l4d1vs mp_gamemode holdout mp_gamemode dash mp_gamemode shootzones mp_gamemode tankrun mp_gamemode rocketdude
List of maps.
Here is the list of all the maps of the 14 official campaigns to be selected using the command changelevel. Remember not to use this command for the scavenge mode.
Dead Center
map c1m1_hotel map c1m2_streets (survival) map c1m3_mall map c1m4_atrium (survival) (scavenge)
Dark Carnival
map c2m1_highway (survival) (scavenge) map c2m2_fairgrounds (shootzones) map c2m3_coaster map c2m4_barns (survival) map c2m5_concert (survival)
Swamp Fever
map c3m1_plankcountry (survival) (scavenge) (holdout) map c3m2_swamp map c3m3_shantytown (survival) map c3m4_plantation (survival)
Hard Rain
map c4m1_milltown_a (survival) (scavenge) (holdout) map c4m2_sugarmill_a (survival) (scavenge) map c4m3_sugarmill_b (survival) (scavenge) map c4m4_milltown_b map c4m5_milltown_escape
The Parish
map c5m1_waterfront (survival) map c5m2_park (survival) (scavenge) (dash) map c5m3_cemetery (survival) map c5m4_quarter (survival) (dash) map c5m5_bridge (survival)
The Passing
map c6m1_riverbank (survival) (scavenge) map c6m2_bedlam (survival) (scavenge) map c6m3_port (survival) (scavenge)
The Sacrifice
map c7m1_docks (survival) (scavenge) map c7m2_barge (survival) (scavenge) map c7m3_port (survival)
No Mercy
map c8m1_apartment (scavenge) map c8m2_subway (survival) map c8m3_sewers (survival) map c8m4_interior (survival) map c8m5_rooftop (survival) (scavenge)
Crash Course
map c9m1_alleys (survival) (scavenge) map c9m2_lots (survival)
Death Toll
map c10m1_caves map c10m2_drainage (survival) map c10m3_ranchhouse (survival) (scavenge) (holdout) map c10m4_mainstreet (survival) map c10m5_houseboat (survival) (holdout)
Dead Air
map c11m1_greenhouse map c11m2_offices (survival) map c11m3_garage (survival) map c11m4_terminal (survival) (scavenge) map c11m5_runway (survival)
Blood Harvest
map c12m1_hilltop map c12m2_traintunnel (survival) map c12m3_bridge (survival) map c12m4_barn map c12m5_cornfield (survival) (scavenge)
Cold Stream
map c13m1_alpinecreek map c13m2_southpinestream map c13m3_memorialbridge (survival) map c13m4_cutthroatcreek (survival)
The Last Stand
map c14m1_junkyard (survival) (scavenge) map c14m2_lighthouse (survival) (scavenge)

You can do it in both ways, by chatbox or console:
Chat box: !console changelevel Console: scripted_user_func console,changelevel,
Recommended commands for versus mode.
In case you want to play the mode versus what you went through the campaign mode, put these commands to make it possible to play only with the bots.
!cvar sb_all_bot_game 1 // It allows to continue in game for more than there is not a human player in survivors bots. !cvar allow_all_bot_survivor_team 1 // The bots will be able to advance alone without living humans. !cvar z_smoker_limit 1 // Avoid the double Smoker. !cvar z_hunter_limit 1 // Avoid the double Hunter. !cvar hunter_leap_away_give_up_range 0 // Prevent the Hunter from retreating and start spinning around doing nothing. !cvar vs_max_team_switches 100 // It allows you to change equipment unlimited times for the value. !cvar sv_alltalk 1 // To be able to speak in chat voice for both teams. !cvar sb_unstick 0 // In case the bots teleport when they are stuck, sometimes they can reach the survivor unfairly. 1 activates it, 0 deactivates it.

You can also create a cvars.txt file to put the commands quickly and every time you start or restart the map will save the commands you put in the file.
● Using a cvars.txt File You can create a file called "cvars.txt" and place it in the following directory: C:\Program Files (x86)\Steam\SteamApps\common\left 4 dead 2\left4dead2\ems\admin system This file will automatically execute all Cvars upon loading each map. Keep in mind each Cvar will need to be on its own line within the file. Here's an example of how you can enter the Cvars: god "1" "sv_infinite_ammo" "1" sv_gravity 200 scripted_user_func give,all,rifle_m60 scripted_user_func max_health,all,300
To consider.
Since we can already change the game mode we are in, we have to know certain things:
  • When we start in the lobby in campaign mode, we will have 4 slot players and if we change it to mode versus only 4 players can join instead of 8. The same happens when we use the versus mode lobby, we have 8 slot values and if we put the change in campaign mode, it will be like entering the 8 players and 4 are put as survivors and the other 4 in infected mode and the problem is that they can not spawn.
  • If we give to vote "return to the lobby" and we were playing the mode versus, survival, scavenge, etc, it will return to campaign mode in the lobby. The same goes for the lobby of the versus, survival, scavenge, etc.
  • If you changed the campaign mode for the gib fest mutation and you change another campaign by voting or changelevel command, the mutation you are playing will continue.
  • It is important that you reinitiate the map each time you change the game mode or there could be some errors.
  • Remember well that the survival mode must be on the map that corresponds to it. The scavenge mode also but do not use the changelevel command or the gascan will be erased. And the mutations ems you must use the changelevel in the map that goes and being there you should restart the map or killing them all to play correctly.
  • If you put it in public, players can enter the mode you selected and also the mode you changed, so they will not realize that you changed the game mode. Sometimes yes.
That is all.
I hope you have found it well and any questions are answered in the comments. This took me a little touch to see how to tell the guide and explain them as detailed as possible so they can understand it, I feel that I dizzy with several things, but the more they learn it better.

Good and without more to say I hope you enjoy it and luck in what they are going to want to do with this. Bye.

Something that I forget to tell you, surely out there they know how to use the sourcemod and metamod, well it's exactly almost the same. With put the command mp_gamemode and vote on changing or restarting the map, and also there a plugin that allows them to vote the game mode. So that's all, goodbye.
25 Comments
Dewait. 20 Aug, 2023 @ 8:36am 
To launch versus survival game mode - "map <map_name> mutation15"
D.A.R.K. 18 Apr, 2023 @ 7:37pm 
Hey, I have a huge question here... I want to add realism rules to the Hard Eight mutation, is that possible?

Some mutations come with realism rules and some don't, Hard Eight is a mutation without realism, so I want to turn Hard Right into a mutation with realism, AKA add realism rules into Hard Eight without removing Hard Eight rules.

Is this possible to do without sourcemod and metamod? If it is, how do I do it? If it isn't, it is possible to do it with sourcemod and metamod? If it is, how do I do it?
Chappaquiddick 17 Feb, 2023 @ 10:08am 
how to launch versus survival??
Ultimate Nerd 2 25 Jul, 2022 @ 11:56am 
thank you!
Maur0  [author] 25 Jul, 2022 @ 9:49am 
@Ed The Hyena #RememberFreeman - Yes, everything is possible!
Ultimate Nerd 2 25 Jul, 2022 @ 7:58am 
is it possible to get achievements with this?
Ultimate Nerd 2 4 Apr, 2022 @ 12:29pm 
best guide
HiϞ 3 Dec, 2020 @ 2:28am 
Thanks lad
biubiu 17 Feb, 2020 @ 7:17am 
Got it.
Thank you.
Maur0  [author] 17 Feb, 2020 @ 6:09am 
@珍爱生命 远离MOBA - I have not used the server.cfg file and more using sourcemod. But over there using the file "cvars.txt" in the folder "Left 4 Dead 2 / left4dead2 / ems / admin system". You can execute commands from the admin system every time you start the server and when it restarts they return to the values that are in the file.

For example:
mp_gamemode versus
sb_all_bot_game 1
allow_all_bot_survivor_team 1
vs_max_team_switches 100