Forum

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.

Moderator: InsideQC Admins

Remove skin color?

Postby Rikku2000 » Sat Jun 23, 2012 2:38 pm

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...
User avatar
Rikku2000
 
Posts: 49
Joined: Wed Oct 20, 2010 6:33 pm
Location: Germany

Re: Remove skin color?

Postby r00k » Sat Jun 23, 2012 2:57 pm

gl_nocolors 1

or edit the .mdl file and change the texture to not use the palette colors designated for the teamcolors.
r00k
 
Posts: 1108
Joined: Sat Nov 13, 2004 10:39 pm

Re: Remove skin color?

Postby Rikku2000 » Sat Jun 23, 2012 3:58 pm

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...
User avatar
Rikku2000
 
Posts: 49
Joined: Wed Oct 20, 2010 6:33 pm
Location: Germany

Re: Remove skin color?

Postby r00k » Mon Jun 25, 2012 8:01 pm

WURD ;)
r00k
 
Posts: 1108
Joined: Sat Nov 13, 2004 10:39 pm


Return to General Programming

Who is online

Users browsing this forum: No registered users and 1 guest