Code:
case 1: // Doesnt mess up the gun when used like xqz style does
if (!(mode==GL_TRIANGLE_STRIP||mode==GL_TRIANGLE_FAN||mode==GL_QUADS))
{
ColorEntry* c = colorList.get(51);
p_fnglColor3f( c->onebased_r, c->onebased_g, c->onebased_b);
float curcolor[4];
p_fnglGetFloatv(GL_CURRENT_COLOR, curcolor);
p_fnglDisable(GL_DEPTH_TEST);
p_fnglEnable (GL_BLEND);
oglBlendFunc(GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA_SATURATE);
oglColor4f(curcolor[0], curcolor[1], curcolor[2], .2 );
cvar.nosky=1;
cvar.trans=0;
cvar.tran_team=0;
}
else if(mode==GL_TRIANGLES || mode==GL_TRIANGLE_STRIP || mode==GL_TRIANGLE_FAN)
{
p_fnglEnable(GL_DEPTH_TEST);
p_fnglDisable(GL_BLEND);
}
}
now just change Code:
ColorEntry* c = colorList.get(51);
to any number (you don't have to use 51) and then when u put a different number go to color.cpp and add this Code:
add("wallhack" ,255,0,0 ); // index:51
and then in game go into console and type color wallhack blah blah blah and blah blah blah is standing for the color numbers u want..hope u enjoy!