AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [TF2] Interact with texture of brushes? (https://forums.alliedmods.net/showthread.php?t=326788)

LordM 08-16-2020 23:31

[TF2] Interact with texture of brushes?
 
Is it possible to get the texture path of one face of a brush? Or to get the face of a brush that has a specific texture on it?

I want to make brushes that use the tools/toolsinvisibleladder texture to signify which side of a brush should be climbed by players. I haven't seen any interaction with brush textures yet from a plugin, so I don't know if this is possible or not.

MAGNAT2645 08-17-2020 11:08

Re: [TF2] Interact with texture of brushes?
 
I don't know if it's possible to get surface material/texture but you should check out sdktools_trace API (especially functions containing "Surface" in their name).

EvilGuy 08-17-2020 12:54

Re: [TF2] Interact with texture of brushes?
 
TR_GetSurfaceName, i saw this in my old plugin. Probably works fine.

LordM 08-25-2020 21:13

Re: [TF2] Interact with texture of brushes?
 
Quote:

Originally Posted by EvilGuy (Post 2714549)
TR_GetSurfaceName, i saw this in my old plugin. Probably works fine.

Ok, thanks


All times are GMT -4. The time now is 23:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.