@hzqst下面是我的代码, 不知道那里错了, 能否抽空看看呢?
也不知道 我会不会理解错你的意思了

// Global
cl_entity_t **r_currententity;
void HUD_DrawTransparentTriangles(void)
{
*r_currententity = gEngfuncs.GetViewModel();
g_real_R_DrawViewModel();
cl_entity_t *viewent = *r_currententity;
viewent->curstate .rendermode = kRenderTransTexture;
viewent->curstate .renderfx = kRenderFxNone;
viewent->curstate .rendercolor .r = 200;
viewent->curstate .rendercolor .g = 200;
viewent->curstate .rendercolor .b = 200;
viewent->curstate. renderamt = 130;
return gExportfuncs.HUD_DrawTransparentTriangles ();
}
int HUD_GetStudioModelInterface(int iVersion, struct r_studio_interface_s **ppStudioInterface, struct engine_studio_api_s *pEngineStudio)
{
r_currententity = *(cl_entity_t ***)((DWORD)pEngineStudio->GetCurrentEntity + 0x1);
return gExportfuncs.HUD_GetStudioModelInterface(iVersion, ppStudioInterface, pEngineStudio);
}