diff options
Diffstat (limited to 'gmod/frame_stage_notify.cpp')
| -rw-r--r-- | gmod/frame_stage_notify.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
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 |
