Quoted from hl2world forum, ofcrz credit to this smiddy guy for makin this...
Creating an Animated Spray *UPDATED*
you will need adobe photoshop cs/imageready cs for this tutorial.
you will also need the animated texture converter which you can find here:
hxxp://empolix.kzoceana.com/ANiMATED.TE ... SMiDDY.rarreplace the XX with a TT in the link above to make it work
1. choose an animated picture you want to convert.
2a. convert your gif or animated file into a square with sides divisible by 16 - eg. 128x128, 64x64, 92x92... you can use 256x256, but you will only be able to fit in 2-3 frames, so i don't reccomend it.
2b. convert the gif to individual frames. the way i did this with a .gif is to get Adobe ImageReady (comes with photoshop cs) and open the .gif in there, then do file > export > animation frames as files...
i saved them to jpgs, then went to photoshop, and converted them one by one to 32 bit .tgas
3. put all your .tgas in the hl2/materialsrc/animated folder and rename them to spray001.tga spray002.tga spray003.tga etc
4. edit the spray.txt file in notepad and replace the endframe value to the amount of frames you have
5. run convert.bat - your .vtf will appear at hl2/materials/animated/
5a. if your .vtf file is over 120kb, you will have to go back and edit the amount of frames you have of the size of your frames until they are under 120kb, otherwise you will not be able to use the spray.
6. put your .vtf file into counter-strike source\cstrike\materials\VGUI\logos
7. in notepad make a new file and put in this text
Quote:
"LightmappedGeneric"
{
"$basetexture" "vgui\logos\gabedance"
"$decal" "1"
"$decalscale" "1"
}
then save it as spray.vmt in the same dir as you saved the .vtf
8. you're done Very Happy
to get your spray ingame just go to the options menu and scroll down the spray list to 'spray' ... it will display your first frame in the picture box.
you can see the results here
http://empolix.kzoceana.com/gabey.rarby smiddy
awesome...