chams, no arms, glow, no hats won't appear when cat_enable is 0
This commit is contained in:
parent
2936746e23
commit
c5ee5ef29e
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user