More color fixes for railgun
Show other players' railgun color and their firetime state. Show snapshot client's color on world item models of railgun. Fix the impact mark using color2 (spiral) rather than color1 (beam). Credits go to Ensiform and Harekiet for the refire portion.
This commit is contained in:
1 parent
c52bfbd5a8
commit
53d89b6c10
5 files changed
+37
-14
No files matched your search
@@ -900,9 +900,19 @@ void CG_NewClientInfo( int clientNum ) {
|
||||
v = Info_ValueForKey( configstring, "c1" );
|
||||
CG_ColorFromString( v, newInfo.color1 );
|
||||
|
||||
newInfo.c1RGBA[0] = 255 * newInfo.color1[0];
|
||||
newInfo.c1RGBA[1] = 255 * newInfo.color1[1];
|
||||
newInfo.c1RGBA[2] = 255 * newInfo.color1[2];
|
||||
newInfo.c1RGBA[3] = 255;
|
||||
|
||||
v = Info_ValueForKey( configstring, "c2" );
|
||||
CG_ColorFromString( v, newInfo.color2 );
|
||||
|
||||
newInfo.c2RGBA[0] = 255 * newInfo.color2[0];
|
||||
newInfo.c2RGBA[1] = 255 * newInfo.color2[1];
|
||||
newInfo.c2RGBA[2] = 255 * newInfo.color2[2];
|
||||
newInfo.c2RGBA[3] = 255;
|
||||
|
||||
// bot skill
|
||||
v = Info_ValueForKey( configstring, "skill" );
|
||||
newInfo.botSkill = atoi( v );
|
||||
|
||||
Reference in new issue
Block a user