Quote:
Originally Posted by abdobiskra
Thanks but how to make them among the only two colors?
|
Create an array for r, g, and b, where each one, contain the color tone. Them use this to access its color:
Code:
new g_current_color_tone_index = 1
new g_red_color_tone[] = { 255, 120 }
new g_green_color_tone[] = { 255, 120 }
new g_blue_color_tone[]= { 255, 120 }
...
some_function()
{
...
g_current_color_tone_index = ( g_current_color_tone_index + 1 ) % 2
set_hudmessage( g_red_color_tone[g_current_color_tone_index ], g_green_color_tone[g_current_color_tone_index ],
g_blue_color_tone[g_current_color_tone_index ], 0.15, 0.15, 0, 0.0, 1.0, 0.1, 0.1, 1 )
...
}
__________________