Muzzle Flash Colors

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Muzzle Flash Colors

Post by Nedarb7 »

This topic isn't much of a problem its just some questions I have.
First of I have successfully changed the color of the
muzzle flash before and figured out the pattern of the
first three digits of FlashColor which are red, blue, and green (I think).
But there is a fourth digit that I have no idea of what its for
which leads to my first question:
What is it for?
My first guess was the colors hue (I still use the hue as the 4th digit)
but it doesn't make sense for it to be the hue because if it is what would
be the point of the red, green, and blue be for.
My second question is:
Is it possible to set up the FlashColor like this:
"0 0 255 255"
With white in the center of the flash?
I ask that question because I can't seem to get the darker
blue (THIS COLOR) with white in the center.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Muzzle Flash Colors

Post by kinetosimpetus »

The format is RGBA, Red Green Blue Alpha.
Alpha is transparency/opacity.

For that deep blue still with white in the middle, if 0 0 255 255 is blue with no white, try adding a little bit of red and green, maybe 40 40 255 255.
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: Muzzle Flash Colors

Post by Nedarb7 »

Oh I see, so its alpha not hue that makes much more sense.
I tried 40 40 255 255 it works great its only a liiittle bit off
but thanks anyways I could easily change it later.

One more question for you, what is FlashLightColor used for?
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Muzzle Flash Colors

Post by kinetosimpetus »

The muzzleflash lights up the environment when light settings are on high, and I think also on medium, and that code sets the color of the light that flashes.
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: Muzzle Flash Colors

Post by Nedarb7 »

Thanks for the info I will try that out (maybe make it blue or something).
Post Reply