New smoke colors?

Post your skinning / modelling questions or answers here

Moderator: Moderators

Post Reply
Teck
Sergeant
Posts: 63
Joined: Tue Dec 10, 2002 6:54 pm
Location: Cincinnati, Ohio
Contact:

New smoke colors?

Post by Teck »

How would you go about making different colors of smoke in spearhead? I downloaded a mod that changes them to black, blue, and keeps the red; but I'm not too sure on how he did it. :)
Teck
Sergeant
Posts: 63
Joined: Tue Dec 10, 2002 6:54 pm
Location: Cincinnati, Ohio
Contact:

Post by Teck »

hrm I think I know how now :)
Last edited by Teck on Thu Dec 19, 2002 9:26 pm, edited 1 time in total.
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

How do you do it?
User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

Post by General Death »

not 100% sure but does it involve .tik editing?
Image
Teck
Sergeant
Posts: 63
Joined: Tue Dec 10, 2002 6:54 pm
Location: Cincinnati, Ohio
Contact:

Post by Teck »

Well inside the pk3 file there's tga image files and dds files, but I'm not sure what the dds files are for? :(
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

.dds files are mip maps. As I understand it, that means that they contain the multiple images, generally of the same thing, at different resolutions. The graphics engine uses these for display when the object is father away or you have lowered the detail to be displayed.

There is a plug-in for Photoshop that will let you import them. I can't remember where I found it. When I do, I will post an update.
CHeesER
Corporal
Posts: 25
Joined: Wed Feb 19, 2003 2:55 am
Location: Canada

Post by CHeesER »

You can change the color of the smoke by editing the base.txt files found in Pak1.pk3, weapons/projectiles.It looks like this,

client
{
originemitter smoke
(
spawnrate 30
model smokegrenade_allied.spr
color 1 1 1
spritegridlighting
alpha .85
bouncefactor 0.8
life 2.25 3.5
scalerate .8
velocity 24
randvelaxis crandom 4 crandom 4 4
spin 0.133
angles 0 0 random 360
avelocity 0 0 crandom 20
scalemin 0.1
scalemax 0.25
fadedelay 2
fadein 0.25
)
}
}

The three numbers are 1)red 2)blue 3)green
They can be from 0 to 1 (eg:0.2 1 0.55)
If 1 all color from this channel is let threw
If 0 all color is blocked

And yes the color is first controled by threw the TGA files,but can be modified a bit from the original color in the above manner.
That is how he made the smoke black by making the numbers 0 0 0 ,blocking all color.
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Thanks for the great info. Surgee, why not make a .tga site? lol
Live to map, not map to live.
-mohaa_rox, .map
moderator
Post Reply