Left 4 Dead 2

Left 4 Dead 2

Team Switch/Morph Script
Shadowysn  [developer] 27 Oct, 2023 @ 4:35am
Technical Stuff (settings.cfg, etc)
Special Infected Bots are very crash-prone if they are put on a different team so they are disallowed from being team-changed. Class changing still works but their AI remains their old class.

Survivor Bots immediately delete themselves if they are put on a different team. They don't crash the game so they aren't disallowed, but there's no point changing them.

A settings.cfg file will be generated into Left 4 Dead 2/left4dead2/ems/teamswitcher
Settings available are:
Setting
Default
Description
allowBuggyTeamSwitchForUsers
false
Allow direct class-less team changes that are prone to bugs and funny moments to non-admins.
allowCharChangeForUsers
false
Allow directly morphing to a Special Infected or Survivor by typing their name as a command in chat to non-admins.
allowAbilityChangeForUsers
false
Allow setting Special Infected abilities in chat to non-admins.
precacheAllModels
true
Precache all survivor models and all infected models at the start.
respawnSwitchesToSurvivor
true
Respawn anyone who switches to survivors. Makes commands act like Character Select Manager or Survivor Character Select.
respawnSwitchesToInfected
true
Respawn anyone who switches infected classes. Makes commands do nothing except move you to infected team.
allowTeamSwitch
true
Allow team switching.
Disabling this will stop anyone from directly switching teams at all including changing characters, like changing from Nick to a Charger.

The addon has functionality on all gamemodes and maps, but for PvP gamemodes like Versus it is automatically disabled by Valve.
To make it work in Versus on your local server, right-click on Left 4 Dead 2 in your steam library, select Properties, click on the Installed Files tab, then click on the Browse... button.
Go to left4dead2/cfg/ and open addonconfig.cfg with a text editor or Notepad.
Finally, edit this line:
"versus" "1"
to
"versus" "0"
Last edited by Shadowysn; 27 Apr @ 12:28am