C
cyb3rspy
Guest
I've noticed that a lot of people want to make Custom Sprays for CS:S but have no idea how to, So I'll try to explain how to make an animated spray in the easiest way for all, yes including the N00bs that you may hate can do it by following these steps.
I had the same problem then I did this:
Copy the hl2 folder and the tga2vtf.bat from the vtex folder to
Steam\SteamApps\username\sourcesdk\bin
place the targas (pictures you made (128x128 32bit compressed spray00#.tga)) in
Steam\SteamApps\username\sourcesdk\bin\hl2\materialsrc\sprays
run bat file and your vtfs will be in
Steam\SteamApps\username\half-life 2\hl2\materials\sprays
If you don't have the proggie go to my site and hit the Connact Me link and I'll email it to you, put "Making Animated Sprays for CSS Proggie" as subject .
Don't ask me why, but it works. Have fun makin 'n' sprayin :cheers:
Cyb3rspy
- Find a .gif animated picture (or better still make one(I'm not gonna tell you how, I think you can figure that out if not sell your computer))
- 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 go file > export > animation frames as files...
I saved them to jpgs, then went to photoshop, and converted them one by one to the following:- Re-Size to 128x128 (this is for a max of 5 frames)
- Save As .tga
- 32 Bit
- Compressed
- Put all your .tga files in the hl2/materialsrc/animated folder and rename them to spray001.tga spray002.tga spray003.tga etc
- Edit the spray.txt file in notepad and replace the endframe value to the amount of frames you have. (eg. "Startframe" "1" "endframe" "4")
- Run convert.bat - your .vtf will appear at hl2/materials/animated/
(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.) - put your .vtf & .vmt files into counter-strike source\cstrike\materials\VGUI\logos folder
(if it didn't make a .vmt file make one by opening in notepad make a new file and put in this text:
Code:"LightmappedGeneric" { "$basetexture" "vgui\logos\gabedance" "$decal" "1" "$decalscale" "1" }
Note: You can change the name of both files but must be the same for example: superman.vtf & superman.vmt - Load up CS:S and select your spray with in options or if you don't want it to mess up your crosshair settings open your config.cfg (& userconfig.cfg) and search for this line:
cl_logofile "materials/vgui/logos/
edit this line by putting the name of your sprasy here like so:
cl_logofile "materials/vgui/logos/superman.vtf - Save & close all files and folders
- Run Game and Spray (hit the "T" key in-game)
Code:
D:\STEAM\animatedsprays\SPRAY MAKER>vtex.exe -mkdir -shader LightmappedGeneric h
l2\materialsrc\animated\spray.txt
input file: hl2/materialsrc/animated/spray
Problem figuring out outputdir for hl2/materialsrc/animated/spray
Hit a key to continue
I had the same problem then I did this:
Copy the hl2 folder and the tga2vtf.bat from the vtex folder to
Steam\SteamApps\username\sourcesdk\bin
place the targas (pictures you made (128x128 32bit compressed spray00#.tga)) in
Steam\SteamApps\username\sourcesdk\bin\hl2\materialsrc\sprays
run bat file and your vtfs will be in
Steam\SteamApps\username\half-life 2\hl2\materials\sprays
If you don't have the proggie go to my site and hit the Connact Me link and I'll email it to you, put "Making Animated Sprays for CSS Proggie" as subject .
Don't ask me why, but it works. Have fun makin 'n' sprayin :cheers:
Cyb3rspy