opengl.cpp
find this: Code:
void APIENTRY pglBegin
somewhere in body add following:
Code:
if(cvar.weaponsmoke && me.alive)
{
cl_entity_t *curent;
curent = pstudio->GetCurrentEntity();
curent->curstate.rendercolor.r = cvar.wsmoker;
curent->curstate.rendercolor.g = cvar.wsmokeg;
curent->curstate.rendercolor.b = cvar.wsmokeb;
glBlendFunc(GL_FRONT_AND_BACK, GL_FILL);
}
cvar.cpp Code:
REGISTER_CVAR_INT( wsmoker, 0)
REGISTER_CVAR_INT( wsmokeg, 0)
REGISTER_CVAR_INT( wsmokeb, 255)
REGISTER_CVAR_INT( weaponsmoke, 0)
cvar.h Code:
int wsmoker;
int wsmokeg;
int wsmokeb;
int weaponsmoke;