CompileTrigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (SirYodaJedi moved page %CompileTrigger to CompileTrigger: move to prevent external links from being eaten)
No edit summary
 
Line 1: Line 1:
{{subpage|[[Material map compile flags]]}}
{{subpage|[[Material map compile flags]]}}{{DISPLAYTITLE:%CompileTrigger}}
Compiles the texture to be used for a [[Trigger]]. Effectively identical to [[%CompileNoLight]], except when VBSP is compiled with {{code|-nodrawtriggers}}.
Compiles the texture to be used for a [[Trigger]]. Effectively identical to [[%CompileNoLight]], except when VBSP is compiled with {{code|-nodrawtriggers}}.


Line 5: Line 5:
{{note|Different textures will have no functional effect, unless paired with other [[Shader Parameters]].}}
{{note|Different textures will have no functional effect, unless paired with other [[Shader Parameters]].}}
==Example==
==Example==
Example uses {{shader Name|LightmappedGeneric}}, however {{shader Name|UnlitGeneric}} also works as well; %CompileTrigger implies [[%CompileNoLight]].
Example uses {{shader Name|LightmappedGeneric}}, however {{shader Name|UnlitGeneric}} also works as well; %CompileTrigger implies [[%CompileNoLight]], so lightmaps won't be generated regardless.
{{pre|LightmappedGeneric
{{pre|LightmappedGeneric
  {
  {

Latest revision as of 17:31, 24 March 2025

Compiles the texture to be used for a Trigger. Effectively identical to %CompileNoLight, except when VBSP is compiled with -nodrawtriggers.

Generally "Tools/toolstrigger" could be used for any trigger, but if a mod/map has multiple types of brush entities that use Tools/toolstrigger, one could make multiple tool textures to differentiate the types of entities easier, such as trigger_hurt, trigger_once, trigger_multiple, parallax_obb, etc.

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

Example

Example uses Shader-ball.png LightmappedGeneric, however Shader-ball.png UnlitGeneric also works as well; %CompileTrigger implies %CompileNoLight, so lightmaps won't be generated regardless.

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