View Single Post
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 07-11-2023 , 13:02   Re: [L4D2/CS:GO/TF2/NMRiH] VScript File Replacer (1.15) [20-Dec-2022]
Reply With Quote #88

Quote:
Originally Posted by Kerouha View Post
What you posted, is telling to edit vscripts_override, and my question was, how to skip this exact step.

It would be weird if there is no option to automatically replace vanilla files with ones from custom folder (if their names completely match).
You can create file director_base_addon.nut and put in left4dead2\scripts\vscripts\director_base_add on.nut with this code inside:

Spoiler


Then in this path you can create your own vscript files, for example:

left4dead2\scripts\vscripts\vscripts_custom\r ocketbuild1_coop_custom.nut with this code inside:

Lets Build a Rocket map

Spoiler


The line of code:
PHP Code:
IncludeScript("vscripts_custom/" Director.GetMapName() + "_"Director.GetGameMode() + "_custom"); 
Represents the path from where you will load the custom file.

Spoiler
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.

Last edited by Tonblader; 07-11-2023 at 15:14.
Tonblader is offline