CompilePassBullets: Difference between revisions
Jump to navigation
Jump to search
Bug:
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 ?]
SirYodaJedi (talk | contribs) No edit summary |
SirYodaJedi (talk | contribs) 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| | ||
{{ | * 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
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.


For models, use $contents grate.