"vscript_replacer"
{
// This matches "c1m1_" to "c99m99_" for example, all Valve maps in L4D2.
"c[0-9]m[0-9]_.+"
{
// This matches all the Valve maps' scripts.
"c[0-9]m[0-9]_.+"
{
// Matches the script name and strings with RegEx.
"regex" "3"
// Increase Witch limit.
"WitchLimit = ([0-9]+)" "WitchLimit = -1"
// Increase Tank limit.
"TankLimit = ([0-9]+)" "TankLimit = -1"
}
}
}
I tried changing to values other than -1.
If anyone knows how to make this work or another method please let me know, thanks a lot in advance
"vscript_replacer"
{
// This matches "c1m1_" to "c99m99_" for example, all Valve maps in L4D2.
"c[0-9]m[0-9]_.+"
{
// This matches all the Valve maps' scripts.
"c[0-9]m[0-9]_.+"
{
// Matches the script name and strings with RegEx.
"regex" "3"
// Increase Witch limit.
"WitchLimit = ([0-9]+)" "WitchLimit = -1"
// Increase Tank limit.
"TankLimit = ([0-9]+)" "TankLimit = -1"
}
}
}
I tried changing to values other than -1.
If anyone knows how to make this work or another method please let me know, thanks a lot in advance
In my case to achieve this I individually modify each of the finales.
No Mercy Example: (i modify them all one by one)
Note: I extracted these scripts a long time ago, so you would have to extract the scripts from the most current version of left 4 dead 2 and work from there.
This has probably been asked before, but I couldn't find it: Does this plugin allow you to run VScripts on any map, rather than being restricted to a single map?
This has probably been asked before, but I couldn't find it: Does this plugin allow you to run VScripts on any map, rather than being restricted to a single map?
Its main function is to replace an existing vscript with a custom one.
Now, within that customization, you could make another vscript run within the vscript.
// This setup causes 1 more tank to spawn in each tank-round up to the maximum tank limit specified in this code.
// In this case, the limit will be 16 tanks.
Other example: left4dead2\scripts\vscripts\vscripts_custom\c 1m1_hotel_coop_custom.nut
I think you can also use this method as another alternative.
From what I know, you would have to use the GCFScape program to extract the contents of the .vpk file (which is normally found in left4dead2/addons/workshop), customize the files to your liking, recompress them into a .vpk , then you should place the new .vpk in your left4dead2/addons folder and the changes should take effect.