Dealing with Cone of Fire

I couldnt find any help on here so I decided to just figure it out myself and share the results.

Demo

.fla attatched (It’s saved from CS4 but I think it runs fine in CS3 as well)