chams, no arms, glow, no hats won't appear when cat_enable is 0

This commit is contained in:
nullifiedcat 2017-04-18 16:21:39 +03:00
parent 2936746e23
commit c5ee5ef29e
3 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,7 @@ void EffectChams::RenderChams(int idx) {
void EffectChams::Render(int x, int y, int w, int h) { void EffectChams::Render(int x, int y, int w, int h) {
if (!init) Init(); if (!init) Init();
if (g_IEngine->IsTakingScreenshot() && clean_screenshots) return; if (!cathook || (g_IEngine->IsTakingScreenshot() && clean_screenshots)) return;
if (!enable) return; if (!enable) return;
CMatRenderContextPtr ptr(g_IMaterialSystem->GetRenderContext()); CMatRenderContextPtr ptr(g_IMaterialSystem->GetRenderContext());
BeginRenderChams(); BeginRenderChams();

View File

@ -315,7 +315,7 @@ void EffectGlow::RenderChams(IClientEntity* entity) {
void EffectGlow::Render(int x, int y, int w, int h) { void EffectGlow::Render(int x, int y, int w, int h) {
if (!init) Init(); if (!init) Init();
if (g_IEngine->IsTakingScreenshot() && clean_screenshots) return; if (!cathook || (g_IEngine->IsTakingScreenshot() && clean_screenshots)) return;
if (!enable) return; if (!enable) return;
CMatRenderContextPtr ptr(g_IMaterialSystem->GetRenderContext()); CMatRenderContextPtr ptr(g_IMaterialSystem->GetRenderContext());
ITexture* orig = ptr->GetRenderTarget(); ITexture* orig = ptr->GetRenderTarget();

View File

@ -36,7 +36,7 @@ void DrawModelExecute_hook(IVModelRender* _this, const DrawModelState_t& state,
} }
} }
}*/ }*/
if (!(no_arms || no_hats || (clean_screenshots && g_IEngine->IsTakingScreenshot()))) { if (!cathook || !(no_arms || no_hats || (clean_screenshots && g_IEngine->IsTakingScreenshot()))) {
((DrawModelExecute_t)(hooks::hkIVModelRender->GetMethod(hooks::offDrawModelExecute)))(_this, state, info, matrix); ((DrawModelExecute_t)(hooks::hkIVModelRender->GetMethod(hooks::offDrawModelExecute)))(_this, state, info, matrix);
return; return;
} }