eternalcodes / EternalJK

Effort to maintain and improve OpenJK
GNU General Public License v2.0
60 stars 23 forks source link

/sabercolor client console command #37

Closed videoP closed 6 years ago

videoP commented 6 years ago

command like /amcolor but for RGB sabers I think ja+ has this

/sabercolor 1 255 0 255 , for example

reverse of this code

full = atoi( yo );
r = full & 255;
g = (full >> 8) & 255;
b = full >> 16;

trap_Cvar_Set( "color1", va( "%i", SABER_RGB ) );
trap_Cvar_Set( "cp_sbRGB1", yo );

edit; close this i added it