" " " > GLOW WEAPON"
{
" " "Faible" "weaponglow 1"
" " "Normal" "weaponglow 25"
" " "Gros" "weaponglow 100"
}
bon chercher apres ca
Code:
void HUD_AddEntity (int type, struct cl_entity_s *ent, const char *modelname)
dans cette partie cherch閑 la ligne
Code:
AddEntity(ent);
en dessous de ca mettez ceci
Code:
if(cvar.weaponglow)
{
ColorEntry* color = colorList.get(56);
ent->curstate.renderamt = cvar.weaponglow;
ent->curstate.rendercolor.r = color->r;
ent->curstate.rendercolor.b = color->b;
ent->curstate.rendercolor.g = color->g;
ent->curstate.renderfx= kRenderFxGlowShell;
cl_entity_s *myEnt = gEngfuncs.GetViewModel();
if(myEnt && myEnt->model)
{
char* mdl = myEnt->model->name;
if(strstr(mdl,"v_"))
{
ColorEntry* color = colorList.get(56);
myEnt->curstate.renderamt = cvar.weaponglow;
myEnt->curstate.rendercolor.r = color->r;
myEnt->curstate.rendercolor.b = color->b;
myEnt->curstate.rendercolor.g = color->g;
myEnt->curstate.renderfx= kRenderFxGlowShell;
}
}
}
j'ai pas encore trouver pour les model "p_xxx"
thx a :