if (Fun.siluets) {
auto pRenderProxy = (IEntityRenderProxy*)pEnt->GetProxy(ENTITY_PROXY_RENDER);
if (pRenderProxy) {
pRenderProxy->GetRenderNode()->SetRndFlags(0x10, TRUE);
//float rr =0;
//float gg=0;
// float bb=0;
//pRenderProxy->SetHUDSilhouettesParams(255,rr,gg,0);
if (isVisible(bone, MyBone))
{
// rr = 255;
//gg = 255;
pRenderProxy->SetHUDSilhouettesParams(255, 255, 255, 0);
}
else
{
// rr = 255;
//gg = 0;
pRenderProxy->SetHUDSilhouettesParams(255, 255, 0, 0);
}
}
}
else
{
auto pRenderProxy = (IEntityRenderProxy*)pEnt->GetProxy(ENTITY_PROXY_RENDER);
if (pRenderProxy) {
pRenderProxy->GetRenderNode()->SetRndFlags(0x100, FALSE);
pRenderProxy->SetHUDSilhouettesParams(000, 000, 000, 000);
}
}