math, depending on health [+rep]
#1

Hello,

I've got this little progress bar textdraw, and what it does , it shoes vehicle health(letter size according to vehicle health). Now what I don't understand is, how do I add or subtract R,G or B when the vehicle health changes, i.e I want it to be orange when its on half and if it is higher than a half, it should be more green-ish. Kind of a crappy explanation, but I hope you understand what I mean. I got rgb functions and other things I need.

0-255-0 //green
255-50-55 //red
Reply


Messages In This Thread
math, depending on health - by EV007 - 30.07.2012, 14:41
Re: math, depending on health [+rep] - by EV007 - 31.07.2012, 06:33
Re: math, depending on health [+rep] - by Ballu Miaa - 31.07.2012, 06:46
Re: math, depending on health [+rep] - by EV007 - 31.07.2012, 06:53
Re: math, depending on health [+rep] - by Ballu Miaa - 31.07.2012, 07:04
Re: math, depending on health [+rep] - by EV007 - 31.07.2012, 07:06
Re: math, depending on health [+rep] - by [MM]RoXoR[FS] - 31.07.2012, 07:08
Re: math, depending on health [+rep] - by EV007 - 31.07.2012, 07:11
Re: math, depending on health [+rep] - by Babul - 31.07.2012, 09:20
Re: math, depending on health [+rep] - by EV007 - 31.07.2012, 10:00

Forum Jump:


Users browsing this thread: 1 Guest(s)