286
Modification Help / Re: Color shifting and LoadCheck States
« on: May 06, 2016, 01:01:32 PM »How do you determine Color Shift for both Item/Weapon Color and projectile/trail color, as in, how do you define the digits to get colors like red, blue, etc. What is the purpose for color shift if you already have textures to define the gun colors?
Colorshift works the same for all of those. It's just a RGBA color in float format (0.0 is minimum, 1.0 is maximum).


It's as simple as it says on the tin - the three component colors are added together to produce a color. This isn't anything specific to colorshifting, this is just the RGB color space. Some people come up with colors just by writing the numbers (you quickly learn how to combine colors to get what you want when working with it), but there's plenty of color picker utilities on the internet if you can't do it yourself.
For example: http://www.colorpicker.com

The three values I've selected are the red, green and blue components in decimal. To convert them to the float representation used by TGE, divide each by 255.
I am using Space Guy's old ammo script, and the current weapon I am working on calls Load Checks when the weapon is drawn, while it's ready, and after it fires.
Would it be wise to keep this system in place, or are the extra LoadChecks unneccessary? I can post the full state system if anyone doesn't have enough info.
If it works, keep it, unless you find a better way. I don't know enough about the kind of weapon you're making or what the scripts behind your states do to say much about it. Perhaps you could just mentally go through the progression of states and determine yourself when something really isn't necessary at a certain point.

