Remove skin color?

Discuss programming topics for any language, any source base. If it is programming related but doesn't fit in one of the below categories, it goes here.
Post Reply
Rikku2000
Posts: 49
Joined: Wed Oct 20, 2010 6:33 pm
Location: Germany
Contact:

Remove skin color?

Post by Rikku2000 »

How can i remove the skin color from player model cuz i just need the color on scoreboard player models have skin textures but ingame the color is drawn to model how to deleat it?
I am sorry for my English...
r00k
Posts: 1111
Joined: Sat Nov 13, 2004 10:39 pm

Re: Remove skin color?

Post by r00k »

gl_nocolors 1

or edit the .mdl file and change the texture to not use the palette colors designated for the teamcolors.
Rikku2000
Posts: 49
Joined: Wed Oct 20, 2010 6:33 pm
Location: Germany
Contact:

Re: Remove skin color?

Post by Rikku2000 »

Thanks but i curently got it it was in "R_TranslatePlayerSkin"

i just comment out this code:

Code: Select all

	/* top = cl.scores[playernum].colors & 0xf0;
	bottom = (cl.scores[playernum].colors &15)<<4;

	for (i=0 ; i<16 ; i++) {
		if (top < 128)	// the artists made some backwards ranges.  sigh.
			translate[TOP_RANGE+i] = top+i;
		else
			translate[TOP_RANGE+i] = top+15-i;
				
		if (bottom < 128)
			translate[BOTTOM_RANGE+i] = bottom+i;
		else
			translate[BOTTOM_RANGE+i] = bottom+15-i;
	} */
any way thanks. :)
I am sorry for my English...
r00k
Posts: 1111
Joined: Sat Nov 13, 2004 10:39 pm

Re: Remove skin color?

Post by r00k »

WURD ;)
Post Reply