From 7ccb819f867493f8ec202ea3b39c94c198c64584 Mon Sep 17 00:00:00 2001 From: JustSomePwner Date: Thu, 30 Aug 2018 14:01:54 +0200 Subject: first --- gmod/frame_stage_notify.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 gmod/frame_stage_notify.cpp (limited to 'gmod/frame_stage_notify.cpp') diff --git a/gmod/frame_stage_notify.cpp b/gmod/frame_stage_notify.cpp new file mode 100644 index 0000000..c371eb0 --- /dev/null +++ b/gmod/frame_stage_notify.cpp @@ -0,0 +1,25 @@ +#include "hooks.hpp" +#include "context.hpp" +#include "settings.hpp" +#include "base_cheat.hpp" + + +void __fastcall hooks::frame_stage_notify( void* ecx_, void* edx_, ClientFrameStage_t stage ) { + static auto frame_stage_notify_o = g_gmod.m_chl->get_old_function< decltype( &hooks::frame_stage_notify ) >( 35 ); + if ( g_gmod.m_panic ) return frame_stage_notify_o( ecx_, edx_, stage ); + + g_ctx.m_stage = stage; + + switch( stage ) { + case FRAME_NET_UPDATE_START: + break; + case FRAME_NET_UPDATE_POSTDATAUPDATE_START: + break; + case FRAME_RENDER_START: + break; + case FRAME_RENDER_END: + break; + } + + frame_stage_notify_o( ecx_, edx_, stage ); +} \ No newline at end of file -- cgit v1.2.3