mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-06-07 19:32:09 +03:00
Replicate %alphatexture from Gmod
This commit is contained in:
parent
40b8d398fb
commit
9055a01141
@ -528,9 +528,17 @@ public:
|
||||
if ( pVMT->LoadFromBuffer( pMaterialName, buf ) )
|
||||
{
|
||||
bFound = true;
|
||||
if ( pVMT->FindKey("$translucent") || pVMT->FindKey("$alphatest") )
|
||||
if ( pVMT->FindKey("$alphatest") || pVMT->FindKey("$translucent") || pVMT->FindKey("%alphatexture") )
|
||||
{
|
||||
KeyValues *pBaseTexture = pVMT->FindKey("$basetexture");
|
||||
KeyValues *pBaseTexture = NULL;
|
||||
if ( pVMT->FindKey("%alphatexture") )
|
||||
{
|
||||
pBaseTexture = pVMT->FindKey("%alphatexture");
|
||||
}
|
||||
else
|
||||
{
|
||||
pBaseTexture = pVMT->FindKey("$basetexture");
|
||||
}
|
||||
if ( pBaseTexture )
|
||||
{
|
||||
const char *pBaseTextureName = pBaseTexture->GetString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user