Talk:%CompilePassBullets

From Valve Developer Community
Jump to: navigation, search

It's not strictly true that it doesn't work in css/csgo. In css at least, it still makes the material solid and bullets unable to hit it yet don't go through, so it still has some functionality it seems. --Sirhephaestus (talk) 12:19, 13 September 2023 (PDT)

Seems to block light on translucent materials?

I made a grate material and tried to get it to allow bullets to pass through, but that seems to have made it block light? If I comment out the %CompilePassBullets 1 line, it lets light through. That seems like a pretty important detail to not be noted on this page. --Tiny Desk Engineer (Talk Page) 08:24, 26 June 2024 (PDT)

Doesn't block light on alphatested materials, IME; haven't had a use case for translucent grates, so haven't thought to test.
SirYodaJedi (talk) 08:58, 27 June 2024 (PDT)
I actually had the opposite experience. On Counter-Strike: Source when making a new/better tool ladder texture removing %compilepassbullets makes light unable to pass through. $translucent had no effect. I feel like the fact lighting will be affected by this param should be made clear on this page. --Sirhephaestus (talk) 16:57, 16 September 2024 (PDT)