void __fastcall Hooks::DrawModelExecute(void* ecx, void* edx, IMatRenderContext* context, const DrawModelState_t& state, const ModelRenderInfo_t& info, matrix3x4_t* matrix)
{
static auto oDrawModelExecute = g_Hooks.pModelHook->GetOriginal<DrawModelExecute_t>(vtable_indexes::dme);
const char* ModelName = g_pModelInfo->GetModelName((model_t*)info.pModel);
std::string ModelNames = g_pModelInfo->GetModelName(info.pModel);
C_BaseEntity* pPlayerEntity = g_pEntityList->GetClientEntity(info.index);
static const auto Es0 = find_mat("glowOverlay");
if (!Es0)
return;
static const auto glow = find_mat("dev/glow_armsrace");
if (!glow)
return;
static const auto fbi = find_mat("chamsAnimated");
if (!fbi)
return;
static const auto tags = find_mat("models/inventory_items/dogtags/dogtags_lightray");
if (!tags)
return;
static const auto Mat = find_mat("models/player/ct_fbi/ct_fbi_glass");
static const auto Mats = find_mat("models/inventory_items/music_kit/darude_01/mp3_detail");
if (!Mat)
return;