
Simply choose the defaults when you get the options window for this, and select Create. You will also want to do Tools > Create VMT. I've highlighted these settings below.Īll you need to do now is File > Save As. Make sure No Mipmap and No Level Of Detail are checked, this will ensure the spray appears high quality in the game no matter who is viewing it. The last thing we need to do in VTFEdit is check two options under Flags on the left. If you would like to preview it you can do so by clicking on the Play Button located on the left hand side. I've attached a screenshot of what I used below. Below are the settings which I used, I changed my clamp to 128 by 128 as that is the size of the images, but everything else is set to the defaults. The screen should look similar to this right before you click Open.Īfter you open your TGA files you will be greeted with a VTF Options menu. For those wondering, VTF stands for Valve Texture File.Ĭhoose File > Import and Shift click every TGA file you just created.
#TEAM FORTRESS 2 ANIMATED SPRAYS FOR FREE#
If you don't have VTFEdit yet, you can download for free here. We're getting closer and all that is left to do now is convert the TGA images in VTFEdit to a single VTF. In order for it to fit the size requirements we will need to shorten the loop, which is what we will be doing in the next section. We now have a 128 by 128 pixel image loaded in Photoshop with every frame we need to create a loop. This is what mine looks like at this point. This will keep the image constrained perfectly so it's impossible to make it look squished or deformed.

Grab one of the corners and hold down Shift on your keyboard. With every layer selected on our new 128 by 128 pixel image, select the Move tool and make sure you have Show Transform Controls turned on located on the top bar. Select every layer on the original image so they are all highlighted in blue, and then drag and drop the layers on to the smaller canvas. Open up the original image and the new smaller canvas side by side. Seeing as all of the interest in the image is on the penguin I am going to create a new canvas by going to File > New and setting the height and width to 128 by 128 pixels. In order for it to work in TF2 we will need to change that to one of the sizes listed above. The resolution of the GIF right now is 499 by 281 pixels. You will notice that when Photoshop opens the file it will pull up each frame of the GIF on its own separate layer, which is really handy for editing it down. Open up Photoshop and navigate to File > Open and select your GIF.
#TEAM FORTRESS 2 ANIMATED SPRAYS FULL#
The full GIF cannot exceed 512 KB so this means a GIF such as the one we are using will be far too large.

In order to make your spray animate it has to fit within the size restrictions.
