View Single Post
Old 11-20-2004, 06:37 AM   #12
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
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];
	}


iojamp project lead / coder
ensiform is offline   you may: quote & reply,