CompilePassBullets

From Valve Developer Community
Revision as of 09:28, 26 August 2024 by SirYodaJedi (talk | contribs)
Jump to navigation Jump to search

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.