Animated Spray Tutorial

A forum for computer hardware and software issues
Post Reply
Gen.Ben
Villun
Villun
User avatar
Posts: 1443
Joined: Wed Mar 14, 2007 5:34 pm

Ville Awards

General Ben’s avatar
Loading…

Animated Spray Tutorial

Post by Gen.Ben » Sun Apr 01, 2007 7:54 pm

Okay guys, I know a handful of people who requested on how I made my animated spray. This spray works on CS:S and DOD:S
Well here is how..

I use photoshop CS2, but similar freeware programs such as the GIMP can be used as well.

1) Make, Or get the images of choice you want to be in your spray. As you can see I took pictures of my disk tray opening... A simple yet funny spray!
You must make sure your images are 128x128 in size, or any acceptable dimensions with an area less than or equal to 128x128.

Image

2) This is extremely important. Save your images as 32 bit .TGA's named spray001.tga , spray002.tga..etc. MAKE SURE THEY ARE IN CORRECT ORDER. For this tutorial i have 3 images, so they are subsequently saved as spray001.tga, spray002.tga and spray003.tga.
Image

3) You will need this program: Animated Texture Converter, Download it here http://www.freewebs.com/bensfilebucket/ ... 5Fvtex.zip (if link doesn't work, copy and paste it into new internet window) . Unzip the contents of the download. Now, copy and paste your spray TGA's into the: new_working_vtex\hl2\materialsrc\animated folder. You will see a .TXT document in that folder also. You need to open this and change the last line "End Frame" number to the number of frames of animation you have. For this tutorial i have 3 images, so my number will be "3".

Image
Image

Now save the text file

4) Now go back a few folders to your new_working_vtex folder and click on convert.bat. You should see something similar to the following:
Image

5) Now go to your "new_working_vtex\hl2\materials\animated\" folder. You should see 2 files: spray.vmt and spray.vtf. THE FILE SIZE OF YOUR .VTF FILE MUST BE UNDER 120kb or your spray WILL NOT work. If you kept your dimensions to 128x128 or equivelent as stated in step 1, you should be fine.

Image

Now, you must open the spray.vmt file. This can be opened in NOTEPAD. here is how..

Image

Image

Image

Then Click OK.

When it is opened you will see the following:

Code: Select all

 "LightmappedGeneric"
{
_"$baseTexture" "animated/spray"
}
Now erase all of that and copy and paste this in its place

Code: Select all

 "LightmappedGeneric"
{
"$basetexture" "vgui/logos/gabedance"
"$decal" "1"
"$decalscale" "1"

}

Image
Image

6) Now save it. At this point you should have 2 files. The spray.vtf file and your code modified spray.vmt file.

It is now safe to rename these files to distinguish among other custom sprays. They MUST have the same name though. So I will rename mine: DiskTray.vmt and DiskTray.vtf

7) Copy and Paste these files into the root of your hard drive for simple acess, in my case its Drive (D:/) On your computer it is probally Drive (C:/)

Image

8 ) Load up Day of Defeat: Source or Counter Strike: Source

On the main menu click Options and then click the Import Spray button

You will get this

Image

In the drop down menu, Click the Drive letter you pasted the files into (in my case Drive D:/)

Click the YOURFILE.vtf then click ok

Image

Restart your computer!

Load up The game you have the spray on, Join a room..... And test it out!

Here is the final product:

Image



If anything here is not clear, Please ask me and I will point you in the right direction.

Thanks everybody and enjoy!
[img]http://i190.photobucket.com/albums/z80/Gen-Ben/l3eeron/SMS_genben_sig.png[/img]

Dog
Server Ops
Server Ops
User avatar
Posts: 14317
Joined: Sun Oct 15, 2006 12:12 am
Location: In the bath, having a good think....

Games Played

Ville Awards

Dog - RIP Stevo’s avatar
Loading…

Post by Dog » Sun Apr 01, 2007 8:20 pm

Nice tutorial

:clap:
Image

Mad-Hammer
Retired Admin
Retired Admin
User avatar
Posts: 2064
Joined: Sun Oct 22, 2006 5:26 pm
Location: Point Pleasant, WV

Games Played

Ville Awards

=SG=Mad-Hammer’s avatar
Loading…

Re: Animated Spray Tutorial

Post by Mad-Hammer » Sun Apr 01, 2007 9:19 pm

Thanks Ben, wondered how you did that. Nice tutorial too.
Image[/center]

l3eeron
Retired Admin
Retired Admin
Posts: 9995
Joined: Mon Oct 23, 2006 10:51 am
Location: The surface of last scattering

Games Played

Ville Awards

<eVa>l3eeron’s avatar
Loading…

Post by l3eeron » Sun Apr 01, 2007 9:29 pm

cool!


good job on the tut

Ill give it a shot when I have time, thanks


post your tut at www.dayofdefeat.net

I know you're already registered there...

help give theville some exposure =)

Gen.Ben
Villun
Villun
User avatar
Posts: 1443
Joined: Wed Mar 14, 2007 5:34 pm

Ville Awards

General Ben’s avatar
Loading…

Post by Gen.Ben » Sun Apr 01, 2007 9:59 pm

[quote="l3eeron";p="19274"]

post your tut at www.dayofdefeat.net

I know you're already registered there...

help give theville some exposure =)
[/quote]

Just Did :)
[img]http://i190.photobucket.com/albums/z80/Gen-Ben/l3eeron/SMS_genben_sig.png[/img]

l3eeron
Retired Admin
Retired Admin
Posts: 9995
Joined: Mon Oct 23, 2006 10:51 am
Location: The surface of last scattering

Games Played

Ville Awards

<eVa>l3eeron’s avatar
Loading…

Post by l3eeron » Sun Apr 01, 2007 11:08 pm

yo Ben, you gotta actually post it there, the link wont work unless you have a name and PW to theville.org

People would have to register to see the post you did at the ville (unless you want it that way)

If I was you, click to edit the tut post. Copy/paste everything to your new one at dod.net


...also, I wouldnt put our adress in the title. The moderators dont like it. Just make sure you have it in your sig =)

Nice job, keep up the good work!

Gen.Ben
Villun
Villun
User avatar
Posts: 1443
Joined: Wed Mar 14, 2007 5:34 pm

Ville Awards

General Ben’s avatar
Loading…

Post by Gen.Ben » Mon Apr 02, 2007 8:11 am

[quote="l3eeron";p="19303"]
yo Ben, you gotta actually post it there, the link wont work unless you have a name and PW to theville.org

People would have to register to see the post you did at the ville (unless you want it that way)

If I was you, click to edit the tut post. Copy/paste everything to your new one at dod.net


...also, I wouldnt put our adress in the title. The moderators dont like it. Just make sure you have it in your sig =)

Nice job, keep up the good work!
[/quote]


Allright, i edited it. Does dod.net use image tags?
[img]http://i190.photobucket.com/albums/z80/Gen-Ben/l3eeron/SMS_genben_sig.png[/img]

l3eeron
Retired Admin
Retired Admin
Posts: 9995
Joined: Mon Oct 23, 2006 10:51 am
Location: The surface of last scattering

Games Played

Ville Awards

<eVa>l3eeron’s avatar
Loading…

Post by l3eeron » Mon Apr 02, 2007 8:32 am

[quote="Gen.Ben";p="19336"]Allright, i edited it. Does dod.net use image tags?
[/quote]


Im assuming you're talking about an image for your sig?

Yes - you can have images in your sig. But they arent as generous as we are here so you need to keep it small (in dimensions and size) I use the TV1 status bar - works perfect

Gen.Ben
Villun
Villun
User avatar
Posts: 1443
Joined: Wed Mar 14, 2007 5:34 pm

Ville Awards

General Ben’s avatar
Loading…

Post by Gen.Ben » Mon Apr 02, 2007 8:40 am

[quote="l3eeron";p="19344"]
[quote="Gen.Ben";p="19336"]Allright, i edited it. Does dod.net use image tags?
[/quote]


Im assuming you're talking about an image for your sig?

Yes - you can have images in your sig. But they arent as generous as we are here so you need to keep it small (in dimensions and size) I use the TV1 status bar - works perfect
[/quote]

Naw, I meant can you use images, in your posts? Because just shows up as a link in my post.
[img]http://i190.photobucket.com/albums/z80/Gen-Ben/l3eeron/SMS_genben_sig.png[/img]

l3eeron
Retired Admin
Retired Admin
Posts: 9995
Joined: Mon Oct 23, 2006 10:51 am
Location: The surface of last scattering

Games Played

Ville Awards

<eVa>l3eeron’s avatar
Loading…

Post by l3eeron » Mon Apr 02, 2007 9:08 am

OOHHHH

Ummm, some of the boards do not allow you to post images, some do....

I dont understand why/why not. Youre gonna have to drop the [IMG] tags and add your pics as links I guess.

DeafOfficeWorker
Retired Admin
Retired Admin
User avatar
Posts: 7903
Joined: Mon Jan 29, 2007 3:39 pm

Ville Awards

Pootleshooter’s avatar
Loading…

Re: Animated Spray Tutorial

Post by DeafOfficeWorker » Fri Apr 27, 2007 1:03 pm

I think you can post pictures, they just don't have the [img] thing enabled.
[img]http://i149.photobucket.com/albums/s68/pootleshooter/kpsdow.gif[/img]

=TeZ=
Villun
Villun
User avatar
Posts: 247
Joined: Sat Apr 14, 2007 6:25 pm
Contact:

Post by =TeZ= » Sat Apr 28, 2007 11:09 am

Excellent.

Will this work on any source game with sprays enabled?
{0,o}
|)__)
-^-^- - - -TeZ-

DeafOfficeWorker
Retired Admin
Retired Admin
User avatar
Posts: 7903
Joined: Mon Jan 29, 2007 3:39 pm

Ville Awards

Pootleshooter’s avatar
Loading…

Post by DeafOfficeWorker » Sat Apr 28, 2007 1:19 pm

[quote="=TeZ=";p="24316"]
Will this work on any source game with sprays enabled?[/quote]

It should.
[img]http://i149.photobucket.com/albums/s68/pootleshooter/kpsdow.gif[/img]

Gen.Ben
Villun
Villun
User avatar
Posts: 1443
Joined: Wed Mar 14, 2007 5:34 pm

Ville Awards

General Ben’s avatar
Loading…

Post by Gen.Ben » Sat Apr 28, 2007 5:51 pm

[quote="=TeZ=";p="24316"]
Excellent.

Will this work on any source game with sprays enabled?
[/quote]

Yes, It will :)
[img]http://i190.photobucket.com/albums/z80/Gen-Ben/l3eeron/SMS_genben_sig.png[/img]

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests