summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/do_post_screen_space_effects.cpp
blob: 1cdd00c7b55dc17277f03072740127d7595e59e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "hooks.hpp"
#include "base_cheat.hpp"
#include "context.hpp"

bool __fastcall hooks::do_post_screen_space_effects( void* ecx_, void* edx_, CViewSetup* setup ) {
	static auto old_fn = do_post_screen_space_effects_o;

	g_ctx.m_drawing_postscreenspace = true;
	if( g_csgo.m_engine( )->IsInGame( ) && g_ctx.m_local ) {
		g_cheat.m_visuals.update_glow( );
	}

	bool ret = old_fn( ecx_, 0, setup );
	g_ctx.m_drawing_postscreenspace = false;

	return ret;
}