Source SDK

Source SDK

Invisible Func_button.
What material do i use to make a func_button invisible?
< >
16/6 megjegyzés mutatása
Doesn't really matter - from what I remember, buttons ignore tool textures anyway, so nodraw or trigger will still be visible in-game. Just set the entity's render mode to "Don't render".
Infinite_Data eredeti hozzászólása:
Doesn't really matter - from what I remember, buttons ignore tool textures anyway, so nodraw or trigger will still be visible in-game. Just set the entity's render mode to "Don't render".
Toolinvisible texture is OK, I used it many times. ;)
B.n.B AlcyToronto eredeti hozzászólása:
Toolinvisible texture is OK, I used it many times. ;)
I don't feel like testing it right now - if the texture doesn't block bullets, can you still have shootable buttons with it? Also, doesn't it use the default concrete hit effects?

Edit: I've double checked and Valve uses nodraw; thinking back, I believe I used to do that as well, but switched to a metal texture + "don't render" mode specifically for the hit effects. But I guess nodraw and toolsinvisible should work, though I vividly remember that trigger doesn't.
Legutóbb szerkesztette: Infinite_Data; 2024. nov. 20., 10:33
Infinite_Data eredeti hozzászólása:
B.n.B AlcyToronto eredeti hozzászólása:
Toolinvisible texture is OK, I used it many times. ;)
I don't feel like testing it right now - if the texture doesn't block bullets, can you still have shootable buttons with it? Also, doesn't it use the default concrete hit effects?

Edit: I've double checked and Valve uses nodraw; thinking back, I believe I used to do that as well, but switched to a metal texture + "don't render" mode specifically for the hit effects. But I guess nodraw and toolsinvisible should work, though I vividly remember that trigger doesn't.
Invisible blocks bullets (at least in hl2dm), blockbullets textures doesnt. (It's just an invisible texture blocking bullets).
https://developer.valvesoftware.com/wiki/Tool_textures_(Source)
Legutóbb szerkesztette: [B.n.B] AlcyToronto; 2024. nov. 20., 11:45
B.n.B AlcyToronto eredeti hozzászólása:
Invisible blocks bullets (at least in hl2dm), blockbullets textures doesnt. (It's just an invisible texture blocking bullets).
https://developer.valvesoftware.com/wiki/Tool_textures_(Source)
Wait, I'm confused. Are you talking about what happens when they're applied to a button? Because blockbullets absolutely does block bullets (and all other types of projectiles) in TF2, which is where I used it a lot (not with buttons, though). I've never really seen invisible used on any maps I've looked at, so I'm not sure what it does, though the page you sent (which is also where I was looking into it) says it's not solid to bullets, so that's why I asked if it would still work with buttons activated by damage.

On a side note, it looks like Valve didn't even like buttons much in general, because some of the HL2 buttons I looked at were actually doors instead.
Sorry, I'm the one who's confused, I wrote the exact opposite of what it is. Getting old brings problems... :steamlaughcry:
< >
16/6 megjegyzés mutatása
Laponként: 1530 50