Left 4 Dead 2

Left 4 Dead 2

VScript Survivor Manager
Shadowysn  [developer] 18 Jul, 2023 @ 3:56am
Technical Stuff (settings.cfg, etc)
!survbot has two extra parameters added that aren't put in the description because of complexity:
!survbot <number, leave empty for 1> <forced character, use first letter like z for zoey> <number of forced characters, optional and defaults to number of added bots> - Manually add survivor bots.
Example: !survbot 4 z will spawn 4 Zoey bots.

A settings.cfg file will be generated into Left 4 Dead 2/left4dead2/ems/vssm
Settings available are:
Setting
Default
Description
survCount
4
Survivor count the mod aims for when auto-checking when a new player joins or map changes, etc.
The max amount that is mostly safe is 8, going beyond it can block special infected from spawning.
The game has a max limit of 18 survivors, trying to spawn more survivors will fail
removeExcessSurvivors
true
Remove survivor bots over the limit.
survStartWeapons
["base",
"pistol",
"first_aid_kit",]
List of weapons to give to newly-spawned survivors. Due to issues, melees cannot be given and primary weapons will have no reserve ammo.
survCharOrderL4D2
["Nick",
"Rochelle",
"Coach",
"Ellis",
"Bill",
"Zoey",
"Francis",
"Louis",]
Survivor order to pick from. This order will loop back around if the entire order is already picked.
survCharOrderL4D1 for maps that use playable L4D1 survivor set.
survCharOrderL4D2 for maps that use playable L4D2 survivor set.
survCharOrderL4D1
["Bill",
"Zoey",
"Louis",
"Francis",
"Nick",
"Rochelle",
"Ellis",
"Coach",]
See survCharOrderL4D2's description
fixUpgradePacks
true
Fixes upgrade packs for 5+ survivors. Side-effects:
Upgrade packs will glow even if you already used them.
Survivor bots will gain 1 upgrade ammo by using it again due to bypassing VScript hooks.
autoControlExtraBots
true
Auto-assigns any spectators to a survivor bot on join.
Main use is for lobby. Untested as of 7/18/2023
fixChargerHits
true
Fixes chargers unable to hit and toss same-character survivors like 3 Coaches acting as brick walls. Side-effects:
This is a fake effect, it is impossible to use the real effect with VScript as of 7/18/2023.
Animation does not work properly for clone survivors, they will spaz out and always loop first animation frames.
Likely server-intensive, runs on a situational think hook.
fixDefibrillator
true
Fixes defibrillators reviving the wrong survivors. Side-effects:
Uses text chat to tell players who defibbed who.
Plugins won't respond properly to this hacky fix defib by VScript.
L4D2 survivors don't defib at all on L4D1 survivor set if corresponding proper L4D1 survivor is not in game.
{Example: If you don't have Louis, you can't defib Coach. If you don't have Bill, you can't defib Nick.}
Likely server-intensive, DefibCheck function pops up in console being 2 miliseconds long.
fixFriendlyFireLines
true
Fixes friendly fire lines not playing on the extra survivors.
However, the Don't shoot teammates! instruction will not appear.
allowSurvSwapCmdForUsers
false
Allow swap control over bot survivors for everyone instead of just admins.
Does not use sb_takecontrol, uses a very hacky method to do so, can cause bugs with other scripts and plugins.
restoreExtraSurvsItemsOnTransition
true
Let the mod store and restore the inventories of the 5th survivor and more.
By default, these extra survivors' inventories get wiped.

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; 21 Feb, 2024 @ 2:53am
< >
Showing 1-7 of 7 comments
Shadowysn  [developer] 14 Oct, 2023 @ 2:22am 
Originally posted by StonekBiII:
:health::steamthumbsup:
Thanks for the emojis but please don't include my entire discussion comment in your own reply, it bloats the comment section.
Francis 14 Oct, 2023 @ 6:53am 
Originally posted by Shadowysn:
Originally posted by StonekBiII:
:health::steamthumbsup:
Thanks for the emojis but please don't include my entire discussion comment in your own reply, it bloats the comment section.
:health::steamthumbsup::steamhappy:
GoldenRabbit7293 17 Oct, 2023 @ 7:01pm 
Can I make Versus 10 player? 5v5
Last edited by GoldenRabbit7293; 17 Oct, 2023 @ 7:02pm
Shadowysn  [developer] 18 Oct, 2023 @ 10:03pm 
Originally posted by johnnyable9914:
Can I make Versus 10 player? 5v5
The game doesn't allow VScript to adjust the number of human players so the best this mod can do by itself is 4 survivor players + 1 survivor bot VS 4 infected players.
You still need Sourcemod plugins to have proper 5v5 all-humans match. The SuperVersus plugin[forums.alliedmods.net] + L4DToolz[github.com] or Left 4 Dead Slots[forums.alliedmods.net] comes to mind for me.
Francis 19 Oct, 2023 @ 3:23am 
Originally posted by Shadowysn:
Originally posted by johnnyable9914:
Can I make Versus 10 player? 5v5
The game doesn't allow VScript to adjust the number of human players so the best this mod can do by itself is 4 survivor players + 1 survivor bot VS 4 infected players.
You still need Sourcemod plugins to have proper 5v5 all-humans match. The SuperVersus plugin[forums.alliedmods.net] + L4DToolz[github.com] or Left 4 Dead Slots[forums.alliedmods.net] comes to mind for me.
:health:
EM7HydraFox 12 Oct, 2024 @ 7:19am 
Playing this on multiplayer (be it COOP or VERSUS) seems to cause duplication issue where the game will not register players as using a character and thus will spawn a bot according to that character (ex:friend was playing coach but after loading the map the game ha 2 coaches), sometimes something bugs out with the duplication causing even more copies of that character to spawn. Had game with 5 coaches with one of them being my friend and the rest were bots, because of this the rest of the survivor casts were removed by the game in favor of those clones resulting in a nigh unplayable experience. Mod works well on singleplayer modes though is absolutely stellar on singerplayer 'versus' mutations so long as nothing decides to haywire.
< >
Showing 1-7 of 7 comments
Per page: 1530 50