Left 4 Dead 2

Left 4 Dead 2

Staggering Melee Specials
 This topic has been pinned, so it's probably important
Interneted  [developer] 2 Nov, 2023 @ 11:07am
settings.cfg
If you have loaded a map at least once with this add-on installed, a settings.cfg file will be created into Left 4 Dead 2/left4dead2/ems/staggeringspecials

Here is the default code:
{ smoker_chance = 100 spitter_chance = 100 charger_chance = 100 hunter_chance = 100 jockey_chance = 100 boomer_chance = 100 }
You may change the chance values to the corresponding special infected.

NOTES
  • Make sure to put INTEGER values and do not put any other types, otherwise it will set the value automatically to 100 when invalid type is triggered.
  • FLOAT or decimal types will turn into an integer.
  • Putting values out of the boundary of 0 to 100 will clamp the value.
In case of other errors, you would have to load a map with the add-on again to gain the default code or just copy the code above.

Using it in PvP gamemodes
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 Interneted; 21 Mar, 2024 @ 2:40am
< >
Showing 1-2 of 2 comments
senzawa 26 Jan, 2024 @ 10:27pm 
Thanks, will be reading the source code to see how to use .cfg files since my method of editing the script is kind of clunky XDDD
Interneted  [developer] 28 Jan, 2024 @ 2:18am 
Originally posted by senzawa:
Thanks, will be reading the source code to see how to use .cfg files since my method of editing the script is kind of clunky XDDD

I recommend looking at my other cfg file related add-on or Shadowysn's, since this one is a little bit buggy on how it works, It's my first VScript add-on afterall lol.
Last edited by Interneted; 28 Jan, 2024 @ 2:28am
< >
Showing 1-2 of 2 comments
Per page: 1530 50