Page 1 of 1

How to change the color of the sun effect ingame [solved]

Posted: Sat Feb 23, 2013 10:17 am
by Loopy53
I want to know how to change the color values of the sun effect ingame. Here is the code that does this:

Code: Select all

SunFlare()
{
	Angle(115.000000, -20.000000);
	Color(255, 255, 255);
	Size(5.0);
	FlareOutSize(20.0);
	NumFlareOuts(40);
	InitialFlareOutAlpha(70);
	HaloInnerRing(0.0, 255, 255, 255, 255);
	HaloMiddleRing(10.0, 255, 200, 0, 255);
	HaloOutterRing(30.0, 255, 127, 0, 0);
	SpikeColor(230,230,0,128);
	SpikeSize(20.0);
}
However, the halo lines if they are color values are more then rgba. There are 5 values. Also, I fiddled with the color line itself but saw no effect ingame. What I want is a dark blue sun, to match my maps environment and lighting. Something that looks like ash has blocked it out and turned it dark blue. thanks!

EDIT: Solved via misc documentation:

https://sites.google.com/site/swbf2modt ... umentation

here is my new effect:

Code: Select all

SunFlare()
{
	Angle(115.000000, -20.000000);
	Color(000, 000, 255);
	Size(2.5);
	FlareOutSize(20.0);
	NumFlareOuts(40);
	InitialFlareOutAlpha(10);
	HaloInnerRing(0.0, 255, 255, 255, 255);
	HaloMiddleRing(5.0, 000, 000, 255, 255);
	HaloOutterRing(15.0, 000, 000, 255, 0);
	SpikeColor(000,000, 255;
	SpikeSize(20.0);
}
the halo's are size, rgba. The color parameter does change the color of the sun it just wasnt super noticeable at first. The size is obviously size. I hope someone will find this useful.