CompilePassBullets: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
Adding this [[VMT]] parameter to a material to make [[VBSP]] flag the brush contents as {{code|[[BSP flags (Source)|CONTENTS_GRATE]]}}, causing the brush to be non-solid to hitscan traces, such as bullets. Useful for foliage or metal grates.
Adding this [[VMT]] parameter to a material to make [[VBSP]] flag the brush contents as {{code|[[BSP flags (Source)|CONTENTS_GRATE]]}}, causing the brush to be non-solid to hitscan traces, such as bullets. Useful for foliage or metal grates.


{{bug|Only allows explosions through in {{tf2}}.}}
{{bug|
{{bug|Does not work in {{csgo}} and {{css}}.}}
* Does not work in {{csgo}} and {{css}}.
* Only allows explosions through in {{tf2}}
{{modernConfirm|A custom VBSP which applies CONTENTS_PLAYERCLIP and CONTENTS_MONSTERCLIP instead of CONTENTS_GRATE (without applying SURF_NODRAW and SURF_NOLIGHT, unlike [[%CompileClip]]) would probably function as intended in these games.}}
}}


For models, use {{cmd|$contents|grate}}.
For models, use {{cmd|$contents|grate}}.


[[Category:Shader parameters]]
[[Category:Shader parameters]]

Revision as of 09:28, 26 August 2024

Stub

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

Adding this VMT parameter to a material to make VBSP flag the brush contents as CONTENTS_GRATE, causing the brush to be non-solid to hitscan traces, such as bullets. Useful for foliage or metal grates.

Icon-Bug.pngBug:
  • Does not work in Counter-Strike: Global Offensive and Counter-Strike: Source.
  • Only allows explosions through in Team Fortress 2
Confirm:A custom VBSP which applies CONTENTS_PLAYERCLIP and CONTENTS_MONSTERCLIP instead of CONTENTS_GRATE (without applying SURF_NODRAW and SURF_NOLIGHT, unlike %CompileClip) would probably function as intended in these games.
  [todo tested in ?]

For models, use $contents grate.