View Single Post
API
Veteran Member
Join Date: May 2006
Old 10-12-2016 , 17:47   Re: Passing arguments to consolecmd, warning with enum and problem with decal
Reply With Quote #6

Dumb question, but have you tried PrecacheModel() instead of PrecacheDecal()? AFAIK, it used to be how I always pre-cached texture files. Also, make sure you include .vmt in the call to PrecacheModel()

eg:
GOOD
Code:
g_iSprite = PrecacheModel("materials/test.vmt", true);
BAD
Code:
g_iSprite = PrecacheModel("materials/test", true);
If that doesn't work, maybe try this?
Code:
g_iSprite = PrecacheDecal("materials/test.vmt", true);
__________________

Last edited by API; 10-12-2016 at 17:49.
API is offline
Send a message via AIM to API