From c5ee5ef29e55ee1af711581858c92842773f06a6 Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Tue, 18 Apr 2017 16:21:39 +0300 Subject: [PATCH] chams, no arms, glow, no hats won't appear when cat_enable is 0 --- src/EffectChams.cpp | 2 +- src/EffectGlow.cpp | 2 +- src/hooks/others.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EffectChams.cpp b/src/EffectChams.cpp index f1f6f792..2ae819b8 100644 --- a/src/EffectChams.cpp +++ b/src/EffectChams.cpp @@ -168,7 +168,7 @@ void EffectChams::RenderChams(int idx) { void EffectChams::Render(int x, int y, int w, int h) { if (!init) Init(); - if (g_IEngine->IsTakingScreenshot() && clean_screenshots) return; + if (!cathook || (g_IEngine->IsTakingScreenshot() && clean_screenshots)) return; if (!enable) return; CMatRenderContextPtr ptr(g_IMaterialSystem->GetRenderContext()); BeginRenderChams(); diff --git a/src/EffectGlow.cpp b/src/EffectGlow.cpp index 0c4f403e..ab3cc11b 100644 --- a/src/EffectGlow.cpp +++ b/src/EffectGlow.cpp @@ -315,7 +315,7 @@ void EffectGlow::RenderChams(IClientEntity* entity) { void EffectGlow::Render(int x, int y, int w, int h) { if (!init) Init(); - if (g_IEngine->IsTakingScreenshot() && clean_screenshots) return; + if (!cathook || (g_IEngine->IsTakingScreenshot() && clean_screenshots)) return; if (!enable) return; CMatRenderContextPtr ptr(g_IMaterialSystem->GetRenderContext()); ITexture* orig = ptr->GetRenderTarget(); diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index 88698aa0..ebd35ffc 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -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); return; }