materialsub.cfg

From Valve Developer Community
Revision as of 08:47, 29 March 2025 by SirYodaJedi (talk | contribs) (Occurs before %compile flags are parsed)
Jump to navigation Jump to search

Stub

This article or section is a stub. You can help by expanding it.

cfg/materialsub.cfg is a KeyValues file which, when the -replacematerials parameter is used by VBSP, causes the materials defined in the VMF to be swapped out in the compiled BSP.

Cpp.pngCode:Keyvalue handling occurs in materialsub.cpp.

Syntax

"MaterialReplacements"
{
	"AllMaps"
	{
		"material_in_vmf"	"material_in_bsp"
	}
	"mapname"
	{
		"material_in_vmf"	"material_in_bsp"
	}
}
Confirm:Verify this is accurate; it was determined by reading VBSP source code.