diff options
| author | boris <wzn@moneybot.cc> | 2018-11-28 10:59:30 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-11-28 10:59:30 +1300 |
| commit | de3eea3bc2f62b5258f3444ad7a14c503301f12c (patch) | |
| tree | eca01fb68cea4f663d2f9638fa1ea8e459b023d2 /internal_rewrite/hooks.cpp | |
| parent | 0713c4ebe1e29d1076adb22ba5d8d5e562cecafc (diff) | |
okay now this is epic
Diffstat (limited to 'internal_rewrite/hooks.cpp')
| -rw-r--r-- | internal_rewrite/hooks.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal_rewrite/hooks.cpp b/internal_rewrite/hooks.cpp index eb85de1..e786a2b 100644 --- a/internal_rewrite/hooks.cpp +++ b/internal_rewrite/hooks.cpp @@ -82,10 +82,6 @@ bool hooks::commit( factory::c_csgo* instance ) { scene_end_o = d->create_hook( &hooks::scene_end, instance->m_render_view->get_old_function< void* >( 9 ) ); get_screen_size_o = d->create_hook( &hooks::get_screen_size, instance->m_surface->get_old_function< void* >( 44 ) ); - //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" ) ); - - //packet_start_o = d->create_hook( &::hooks::packet_start, packet_start ); - on_screen_size_changed_o = d->create_hook( &hooks::on_screen_size_changed, instance->m_surface->get_old_function< void* >( 116 ) ); play_sound_o = d->create_hook( &hooks::play_sound, instance->m_surface->get_old_function< void* >( 82 ) ); material_system_o = d->create_hook( &hooks::material_system, instance->m_mat_system->get_old_function< void* >( 21 ) ); @@ -95,6 +91,8 @@ bool hooks::commit( factory::c_csgo* instance ) { begin_lock_o = d->create_hook( &hooks::begin_lock, instance->m_mdl_cache->get_old_function< void* >( 33 ) ); 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 ); 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 ); |
