This is a great plugin and a saw a couple questions about animated decals on this thread that I don’t think received sufficient answers. Thought I’d chime in with my two cents about how I got my animated decal working. Some of the directions are the same.
First you need a 256x256 animated gif (or 128x128 etc). It must be square and the size a factor of 2. I’m sure other sizes work but I only worked with 256x256. Follow this
http://steamcommunity.com/sharedfile.../?id=121269706 article to create your .vtf file from an animated .gif file.
To summarize…Extract each individual .tga in Photoshop combine and save to .vtf in VTFEdit. Next create your .vmt in VTFEdit like the article says then, here’s the important part, edit your .vmt (it’s a text file) according to this article
http://facepunch.com/showthread.php?t=547582. The $basetexture variable is important and needs to equal the relative path to the .vtf file including filename without extension. If you mess this up you’ll get a black box instead of a decal. For an animated decal you need a .vmt that looks something like this:
Code:
"UnlitGeneric"
{
"$basetexture" "foldername/filename"
"$translucent" 1
"$decal" 1
"$decalscale" 0.250000
"$surfaceprop" "Default"
"Proxies"
{
"AnimatedTexture"
{
"animatedtexturevar" "$basetexture"
"animatedtextureframenumvar" "$frame"
"animatedtextureframerate" "5"
}
}
}