//6. No Smoke Hack
if(cvar.smoke)
{
GLfloat smokecol[4];
(*orig_glGetFloatv)(GL_CURRENT_COLOR, smokecol);
if((smokecol[0]==smokecol[1]) && (smokecol[0]==smokecol[2]) && (smokecol[0]!=0.0) && (smokecol[0]!=1.0))
bSmoke=true;
else
bSmoke=false;
}
//7. No Flash Hack
if(cvar.flash)
{
GLfloat flash_curcolor[4];
glGetFloatv(GL_CURRENT_COLOR, flash_curcolor);
if(flash_curcolor[0]==1.0 && flash_curcolor[1]==1.0 && flash_curcolor[2]==1.0) { bFlash=true; }
else { bFlash=false;}
}
if(cvar.shield)
{
cl_entity_s *myEnt = gEngfuncs.GetViewModel();
if(myEnt && myEnt->model)
{
char* mdl = myEnt->model->name;
if(strstr(mdl,"shield"))
{
myEnt->curstate.rendermode = kRenderTransAdd;
myEnt->curstate.renderamt = 130;
}
else
{
myEnt->curstate.rendermode = kRenderNormal;
myEnt->curstate.renderamt = 0;
}
}
}