CopyToBodyQue has a bug where your custom rgb is used even when in team game. to fix:
Code:
body->s.customRGBA[0] = ent->client->ps.customRGBA[0];
body->s.customRGBA[1] = ent->client->ps.customRGBA[1];
body->s.customRGBA[2] = ent->client->ps.customRGBA[2];
body->s.customRGBA[3] = ent->client->ps.customRGBA[3];
should be:
Code:
if (g_gametype.integer >= GT_TEAM) {
switch(ent->client->sess.sessionTeam)
{
case TEAM_RED:
body->s.customRGBA[0] = 255;
body->s.customRGBA[1] = 50;
body->s.customRGBA[2] = 50;
break;
case TEAM_BLUE:
body->s.customRGBA[0] = 75;
body->s.customRGBA[1] = 75;
body->s.customRGBA[2] = 255;
break;
default:
body->s.customRGBA[0] = ent->client->ps.customRGBA[0];
body->s.customRGBA[1] = ent->client->ps.customRGBA[1];
body->s.customRGBA[2] = ent->client->ps.customRGBA[2];
body->s.customRGBA[3] = ent->client->ps.customRGBA[3];
break;
}
} else {
body->s.customRGBA[0] = ent->client->ps.customRGBA[0];
body->s.customRGBA[1] = ent->client->ps.customRGBA[1];
body->s.customRGBA[2] = ent->client->ps.customRGBA[2];
body->s.customRGBA[3] = ent->client->ps.customRGBA[3];
}