CompilePassBullets: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{subpage|[[Material map compile flags]]}}
{{subpage|[[Material map compile flags]]}}
{{stub}}
{{stub}}
Add this [[VMT]] parameter to a material to make [[VBSP]] flag the brush as non-solid to 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|Only allows explosions through in {{tf2}}.}}

Revision as of 07:21, 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:Only allows explosions through in Team Fortress 2.  [todo tested in ?]
Icon-Bug.pngBug:Does not work in Counter-Strike: Global Offensive and Counter-Strike: Source.  [todo tested in ?]

For models, use $contents grate.