Step 1: find your animated gif OR sequence of images Step 1a: if you have an animated gif, you can separate it into individual frames with irfanview Step 1b: once you have the series of frames, change them all into tga or bmp format and preferably resize it to a power of 2 (256x256 or 128x128 or whatever) which can also be done with irfanview or the gimp
Step 2: load up vtfedit Step 2a: ctrll+ i for import, and then select all the frames in your animation. Keep in mind that filesize must be below 120k so either you're going to have a long and crappy looking animation or a short but crisp animation. Step 2b: make sure it says "animated texture". You may have to play with the other options (resize etc). Step 2c: press play to see what your animation will look like. It will run MUCH faster than it will in game. Expect 100ms per frame in game.
Step 3: select save (Ctrl+S) or Save as (ctrl+Shift+S) and give it a name to save the vtf file Step 4: if you didn't have it set to automatically create the vmt file, then you'll need to click on the tools menu and select "create vmt file"
Step 5: copy both of these files to the appropriate directory for the game you want to use your spray in, or use the "import spray" function in game to import it.
The main rules are: size must be in a power of 2, like 64x128 or 128x128, or 256x256. 256 is the highest either side can be. Filesize must be below 120K, and each frame will add to the filesize substantially.
Make sure to test your spray because vtfedit may save the file with no complaints and then you'll discover that your spray doesn't work for whatever reason, OR if you used different sizes for height and width you may find that your picture looks distorted. In general, it's better to work with a 256x256 spray with an alpha channel for the parts you don't want than to try to make a funky 32x256 spray or something.
If none of this made sense to you, try Google :P It probably won't make any sense to you there either but at least you won't be complaining to me about it. :P
For a 256x156, expect aroudn 3-6 frames fo animation. For 128x128, expect around 12-24. For 64x64, you'll get 30+. This is using .tga, I don't use .bmp so I can't advise there.
If you give the source file (and wait till I get home tonight) I can better advise you on it. You can also look through FPSBanana, they have tutorials and examples for most of the steam games (it's the same process from game to game, though counter-strike has more examples and more detailed guides).
Thanks guys! I found a YouTube video on this, using two programs: VTFEdit and Ulead GIF Animator 5, which costs money so I'm doing the 15-day free trial.
I tried to make one out of that dancing otter gif,but it first had too big a file size, and then I made one way too small (had it at 32x44, it was only 6 kb, lol), but I tried using it anyway to see if it would work, and I tried uploading it, but it never got on. I uploaded it, joined a server, nothing. I tried uploading it in-game, nothing. Disconnect, reconnect, nothing. I think maybe because the size was 32x44, or it was too small.
Any more help is greatly appreciated. The orginal size of the GIF is 256 KB, and is either 8 or 9 frames.
I only ever get a maximum of 7 frames at 128x128 (112kb). Also, download the GIMP instead of using some random gif program. If you're serious about making sprays, you'll want a full-featured image editor.
I'd like to shake the hand of whoever marked this topic for "other: beating a dead horse" ~ Cheradenine
Also, I got the image down to 86.something KB, 128x128, and by going Option>Multiplayer, doing the upload, nothing happens. I don't get an error message or anything. I think my uploader may be buggy because I'm using a beta of Win7. Everything else works fine though.
That's why I put it in 128x128, but nothing comes up when I upload. No error screens or anything. Anyone else ever experience this, when the uploader is unresponsive? The window to pick the file comes up, I select the file and click upload, but then nothing happens, even after I join a server.