Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IMaterial *mats[32];
- studiohdr_t* hdr = Interface.ModelInfo->GetStudiomodel(pInfo.pModel);
- Interface.ModelInfo->GetModelMaterials(pInfo.pModel, hdr->numtextures, mats);
- for (int m = 0; m < 2; m++)
- {
- bool ignore = m == 0;
- if (ignore && Options::Visuals::Chams::VisibleOnly)
- continue;
- for (int i = 0; i < hdr->numtextures; i++)
- {
- IMaterial* mat = mats[i];
- if (!mat)
- break;
- mat->SetMaterialVarFlag(MATERIAL_VAR_IGNOREZ, ignore);
- O::DrawModelExecute(thisptr, matctx, state, pInfo, pCustomBoneToWorld);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement