%compiletrigger

From Valve Developer Community
Revision as of 07:07, 28 October 2020 by MrFunreal (talk | contribs) (added categories)
Jump to navigation Jump to search

Compiles the texture to be used for a Trigger

Generally "Tools/toolstrigger" could be used for any trigger. But if a mod/map has multiple types of triggers, one could make multiple tool textures to differentiate the types of triggers easier. Such as trigger_hurt, trigger_once, trigger_multiple...

Note.pngNote:Different textures will have no functional effect, unless paired with other Shader Parameters.

Example

LightmappedGeneric
{
	$translucent 1
	$basetexture "Tools/toolstrigger"
	"srgb?$basetexture" "Tools/toolstrigger-dx10"
	"%compiletrigger" 1
	"%keywords" "airexchange,borealis,c17downtown,c17industrial,c17sewers,c17skyscraper,c17trainstation,combine,kraken,wasteland"
}