diff options
| author | boris <wzn@moneybot.cc> | 2018-12-05 18:11:08 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-12-05 18:11:08 +1300 |
| commit | 65ce24409cbb7a4da18751e5043978ded5090fac (patch) | |
| tree | 0b65806aa03c2cdf9fc95b519d0b09582279381e /cheat/internal_rewrite/hooks.cpp | |
| parent | 793965d3c2816fc1b672c9173b3b831d82cdec33 (diff) | |
im a retard
double events still happen :|
Diffstat (limited to 'cheat/internal_rewrite/hooks.cpp')
| -rw-r--r-- | cheat/internal_rewrite/hooks.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cheat/internal_rewrite/hooks.cpp b/cheat/internal_rewrite/hooks.cpp index 685d7ea..d6e598c 100644 --- a/cheat/internal_rewrite/hooks.cpp +++ b/cheat/internal_rewrite/hooks.cpp @@ -34,6 +34,7 @@ namespace hooks { decltype( &convar_getint ) convar_getint_o; decltype( &packet_start ) packet_start_o; decltype(&emit_sound) emit_sound_o; + decltype(&process_packet) process_packet_o; } hooks::c_netvar_proxy hooks::lby_proxy; @@ -96,7 +97,10 @@ bool hooks::commit( factory::c_csgo* instance ) { end_lock_o = d->create_hook( &hooks::end_lock, instance->m_mdl_cache->get_old_function< void* >( 34 ) ); auto packet_start = pattern::first_code_match< void* >( instance->m_engine.dll( ), xors( "55 8B EC 8B 45 08 89 81 ? ? ? ? 8B 45 0C 89 81 ? ? ? ? 5D C2 08 00 ? ? ? ? ? ? ? 56" ) ); - packet_start_o = d->create_hook( &::hooks::packet_start, packet_start ); + packet_start_o = d->create_hook( &hooks::packet_start, packet_start ); + + auto process_packet = pattern::first_code_match< void * >(instance->m_engine.dll(), xors("55 8B EC 83 E4 C0 81 EC ? ? ? ? 53 56 57 8B 7D 08 8B D9")); + process_packet_o = d->create_hook(&hooks::process_packet, process_packet); auto update_clientside_anim = pattern::first_code_match< void* >( instance->m_chl.dll( ), xors( "55 8B EC 51 56 8B F1 80 BE ? ? ? ? ? 74 36" ) ); update_clientside_animation_o = d->create_hook( &hooks::update_clientside_animation, update_clientside_anim ); |
