View Single Post
Author Message
scorpius2k1
Senior Member
Join Date: Feb 2016
Old 05-29-2020 , 14:22   Can SourceMod detect texture surface props?
Reply With Quote #1

Opening any Source VMT file for a game texture, the properties will usually have what type of surface prop to use so it reacts properly in the world when bullets or something else interacts with it (metal, grass, glass, snow, etc) via '$surfaceprop'.

Is there any way possible for SourceMod to detect this?

Some examples, find out what the player is standing on... or if a traceray was pointed at a "grass" texture ...or a bullet hit it...etc.

Example VMT
Code:
"lightmappedGeneric"
{
	"$basetexture"	"sometexturename"
        "$surfaceprop" 	"metal"
}
Thanks for any insight!
__________________
{__ PIRATES COVE __} ● HIGH-KILL Community | Stats ●
Half-Life 2: Deathmatch
66.151.244.149:27016 => CONNECT

Last edited by scorpius2k1; 05-29-2020 at 14:32.
scorpius2k1 is offline