summaryrefslogtreecommitdiff
path: root/internal_rewrite/begin_lock.cpp
diff options
context:
space:
mode:
authorJustSomePwner <crotchyalt@gmail.com>2018-09-01 14:32:14 +0200
committerJustSomePwner <crotchyalt@gmail.com>2018-09-01 14:32:14 +0200
commite2350a9ef73817f1f364b6223f9d4d9d5c6235a8 (patch)
tree9c752b5e0f04e638fba947fefa0fd00badf3f92b /internal_rewrite/begin_lock.cpp
parent7afd0eaf52abe9e0bc8c8b5e986e90267f83b4e2 (diff)
parentbeb5515757c0e653adc33f181184fe3791ca0a6b (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'internal_rewrite/begin_lock.cpp')
-rw-r--r--internal_rewrite/begin_lock.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal_rewrite/begin_lock.cpp b/internal_rewrite/begin_lock.cpp
index d441395..94804d3 100644
--- a/internal_rewrite/begin_lock.cpp
+++ b/internal_rewrite/begin_lock.cpp
@@ -11,7 +11,13 @@ void __fastcall hooks::begin_lock( void* ecx, void* edx ) { // THIS IS PROLLY NO
// signature:
// search "CL_CallPostDataUpdates: missing ent %d" in engine.dll.
// where framestagenotify gets called
+
+#ifdef HEADER_MODULE
+ static auto ret_addr = g_header.patterns.begin_lock_retaddr;
+#else
static auto ret_addr = pattern::first_code_match< void* >( g_csgo.m_engine.dll( ), "A1 ? ? ? ? B9 ? ? ? ? 6A 00 FF 50 18 8B 15 ? ? ? ?" );
+#endif
+
if( _ReturnAddress( ) == ret_addr ) {
g_ctx.m_stage = FRAME_NET_UPDATE_POSTDATAUPDATE_START;
g_cheat.m_visuals.world_modulate( );