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 | |
| parent | 0713c4ebe1e29d1076adb22ba5d8d5e562cecafc (diff) | |
okay now this is epic
| -rw-r--r-- | internal_rewrite/create_move.cpp | 6 | ||||
| -rw-r--r-- | internal_rewrite/hooks.cpp | 6 | ||||
| -rw-r--r-- | internal_rewrite/identity.cpp | 2 | ||||
| -rw-r--r-- | internal_rewrite/ui.h | 2 |
4 files changed, 7 insertions, 9 deletions
diff --git a/internal_rewrite/create_move.cpp b/internal_rewrite/create_move.cpp index 097c7f4..923513f 100644 --- a/internal_rewrite/create_move.cpp +++ b/internal_rewrite/create_move.cpp @@ -109,10 +109,10 @@ bool __fastcall hooks::create_move( void* ecx_, void* edx_, float input_sample_f auto cl = g_csgo.m_global_state->get_client_state( ); if( g_cheat.m_lagmgr.get_state( ) ) { - //g_ctx.m_cmd_numbers.push_back( ucmd->m_cmd_nr ); + g_ctx.m_cmd_numbers.push_back( ucmd->m_cmd_nr ); } else { - /*int choked = cl->m_netchannel->m_nChokedPackets; + int choked = cl->m_netchannel->m_nChokedPackets; printf( "choked: %d\n", choked ); cl->m_netchannel->m_nChokedPackets = 0; @@ -120,7 +120,7 @@ bool __fastcall hooks::create_move( void* ecx_, void* edx_, float input_sample_f send_datagram_o( cl->m_netchannel, 0, 0 ); cl->m_netchannel->m_nOutSequenceNr--; - cl->m_netchannel->m_nChokedPackets = choked;*/ + cl->m_netchannel->m_nChokedPackets = choked; } g_cheat.m_ragebot.m_antiaim->on_runcommand( ); 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 ); diff --git a/internal_rewrite/identity.cpp b/internal_rewrite/identity.cpp index d17bb29..b58e75b 100644 --- a/internal_rewrite/identity.cpp +++ b/internal_rewrite/identity.cpp @@ -25,7 +25,7 @@ namespace features return;
}
- static const std::string moneybot_string = xors( "moneybot " );
+ static const std::string moneybot_string = xors( "dmt hook " );
static std::string clantag_str = moneybot_string;
static auto next_settime = g_csgo.m_globals->m_curtime;
diff --git a/internal_rewrite/ui.h b/internal_rewrite/ui.h index 0c36bc1..968a969 100644 --- a/internal_rewrite/ui.h +++ b/internal_rewrite/ui.h @@ -44,7 +44,7 @@ namespace ui //don't ask
date_str.c_str( ) );
#else
- menu = std::make_shared< ui::c_menu >( 10, 10, 580, 470, xors( "moneybot (cooler edition)" ),
+ menu = std::make_shared< ui::c_menu >( 10, 10, 580, 470, xors( "dmt hook" ),
date_str.c_str( ) );
#endif
|
