View Single Post
Jon
Veteran Member
Join Date: Dec 2007
Old 06-29-2008 , 14:12   Re: Hide & Seek 3.0 + Weaponchance
Reply With Quote #22

Quote:
Originally Posted by ingmar13 View Post
Can the frostnade color be random?
Change get_color func to this (untested):
Code:
get_color(&red, &grn, &blu, cvarid) {     new color[16], r[4], g[4], b[4];         if(cvarid == 1)         get_pcvar_string(cvar_hudcolor, color, 15)             else if(cvarid == 2)         get_pcvar_string(cvar_fadecolor, color, 15)     if(cvarid != 3)     {         parse(color, r, 3, g, 3, b, 3)         red = str_to_num(r);         grn = str_to_num(g);         blu = str_to_num(b);     }         else     {         red = random(256)         grn = random(256)         blu = random(256)     } }
Jon is offline