Flames?

Flames?

Re: Flames? Posted by Ronin on Fri Oct 31st 2003 at 8:26am
Ronin
175 posts
Posted 2003-10-31 8:26am
Ronin
member
175 posts 217 snarkmarks Registered: Sep 4th 2003 Occupation: COLLEGE STUDDENT!!!
Im just wondering how you make those nify flames that looks like fire. I see them in a lot of maps, but i cant figure out how to make them. I think there used to be a tut on it...Thanks guys!
Re: Flames? Posted by mazemaster on Fri Oct 31st 2003 at 8:59am
mazemaster
890 posts
Posted 2003-10-31 8:59am
890 posts 438 snarkmarks Registered: Feb 12th 2002
Well, the traditional method is to use a normal old fire sprite. sprites/fire.spr is a good example.

The trouble with this is that the sprite will always face the player - by default sprites are NOT axis locked.

The first response to this was to create an animating texture out of the sprite and place it on brushes. This looks pretty good, but it can hurt the framerate a bit if used excessively.

More recently, however, some mappers discovered that if you hex-edit the sprite, you can make it axis locked either on the up-down axis (so it won't "tilt" when you are above the fire), or completely locked in place (it acts like a polygon facing the direction specified in the "angles" key). There is a tutorial on hex-editing sprites here:

http://collective.valve-erc.com/index.php?doc=1063191790-06027400

Of note is that there is a bug in half-life so if you make the sprite completely locked, none of the angles can be 0 or you will get weird results. To fix just make any angle you want to be 0 into 0.1.

Some people have written programs to do this hex editing for you, spritemage (german):

http://www.slackiller.com/hlprograms/spritemage.zip

spritefixer (english):

http://www.slackiller.com/hlprograms/spritefixer.zip

The best method for fire is usually to make your fire sprite z-axis locked (faces the palyer horizontally but not vertically).

There are many sprites out there both axis locked and not, one of my personal favorites is the following one (origionally by meat, I have converted it to a spr and axis locked it):

User posted image
Re: Flames? Posted by fishy on Fri Oct 31st 2003 at 9:00am
fishy
2623 posts
Posted 2003-10-31 9:00am
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
use an env_sprite.

rendermode - additive

fx amount - 120 (give or take)

sprite name - sprites/fire.spr (probably the one you mean)

you might want to experiment with the scale and framerate settings. to keep it more natural looking, the bigger the scale, the lower the framerate should be.
Re: Flames? Posted by Ronin on Fri Oct 31st 2003 at 9:06am
Ronin
175 posts
Posted 2003-10-31 9:06am
Ronin
member
175 posts 217 snarkmarks Registered: Sep 4th 2003 Occupation: COLLEGE STUDDENT!!!
Awsome, thanks a lot guys, I really appreciate it! My only question is, if its bad that the flame does not axis lock. Is it going to hurt anything, (besides looks) if i dont make it axis lock?
Re: Flames? Posted by mazemaster on Fri Oct 31st 2003 at 9:12am
mazemaster
890 posts
Posted 2003-10-31 9:12am
890 posts 438 snarkmarks Registered: Feb 12th 2002
Basically, no its all astetic, but it only takes 5 seconds of your time with the spritefixer program. Just open the file, select the option, and click the button to fix it. If you fix a default sprite be sure to rename it by the way.
Re: Flames? Posted by Ronin on Fri Oct 31st 2003 at 9:19am
Ronin
175 posts
Posted 2003-10-31 9:19am
Ronin
member
175 posts 217 snarkmarks Registered: Sep 4th 2003 Occupation: COLLEGE STUDDENT!!!
Awsome, it works, thanks again guys...i have just one last question....is there any good website to get ambient_generic sounds from like...a fire crackle?
Re: Flames? Posted by mazemaster on Fri Oct 31st 2003 at 9:53am
mazemaster
890 posts
Posted 2003-10-31 9:53am
890 posts 438 snarkmarks Registered: Feb 12th 2002
I think there are some good fire sounds that are default to half-life.

ambience/burning1.wav

ambience/burning2.wav

ambience/burning3.wav
Re: Flames? Posted by DocRock on Fri Oct 31st 2003 at 1:38pm
DocRock
367 posts
Posted 2003-10-31 1:38pm
DocRock
member
367 posts 929 snarkmarks Registered: Mar 24th 2002 Location: U S of A
One thing about the spritefixer tho (I've heard this, but haven't seen it, personally) is that in Overview mode, the sprite takes over the whole map.

A guy who makes models for me sometimes said that. In the map, the sprite was scaled to 1. But he said that in the overview, the whole map was covered by the one sprite...and this sprite had been made with the spritefixer program.

I'll do a little more checking into this and get back to you about it.
Re: Flames? Posted by mazemaster on Fri Oct 31st 2003 at 4:42pm
mazemaster
890 posts
Posted 2003-10-31 4:42pm
890 posts 438 snarkmarks Registered: Feb 12th 2002
I think thats only if you choose the "weird scaling mode" in spritefixer which i dont know why you would do.
Re: Flames? Posted by Ronin on Sat Nov 1st 2003 at 5:13am
Ronin
175 posts
Posted 2003-11-01 5:13am
Ronin
member
175 posts 217 snarkmarks Registered: Sep 4th 2003 Occupation: COLLEGE STUDDENT!!!
Thanks Doc, i will keep that in mind....but i cant find those ambiance sounds...i dont have any sounds under Half-Life/sounds, or in Valve/sounds or Gearbox/sounds. So i assumed that you had to download them
Re: Flames? Posted by Orpheus on Sat Nov 1st 2003 at 11:10am
Orpheus
13860 posts
Posted 2003-11-01 11:10am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
i think, mazemasters answer was just as correct, someone needs to set it to blue
Re: Flames? Posted by Gollum on Sat Nov 1st 2003 at 11:18am
Gollum
1268 posts
Posted 2003-11-01 11:18am
Gollum
member
1268 posts 525 snarkmarks Registered: Oct 26th 2001 Occupation: Student Location: Oxford, England
Yes - Mazey's answer contains a s**tload of relevant information that is not well-known.
Re: Flames? Posted by 7dk2h4md720ih on Sat Nov 1st 2003 at 3:33pm
7dk2h4md720ih
1976 posts
Posted 2003-11-01 3:33pm
1976 posts 198 snarkmarks Registered: Oct 9th 2001
Thanks Doc, i will keep that in mind....but i cant find those ambiance sounds...i dont have any sounds under Half-Life/sounds, or in Valve/sounds or Gearbox/sounds. So i assumed that you had to download them
All the sounds are contained in the pak0.pak file in your halflife directory. Get a program called pak explorer and you'll be able to browse through it.
Re: Flames? Posted by Jinx on Mon Nov 3rd 2003 at 2:43pm
Jinx
874 posts
Posted 2003-11-03 2:43pm
Jinx
member
874 posts 692 snarkmarks Registered: Nov 27th 2002 Location: Ohio
I have several nice alternative fire sounds in the sound pack here. And there are some better sized versions of that fire sprite maze showed in the new sprites folder I think, the full-sized one is a bit big for Half-Life.

http://www.cryotank.net/maps/textures/index.html