diff options
| author | Unknown <azeem@live.ru> | 2018-11-27 22:58:35 +0000 |
|---|---|---|
| committer | Unknown <azeem@live.ru> | 2018-11-27 22:58:35 +0000 |
| commit | e4729e4393d90271a3814c7a79950a660c48325a (patch) | |
| tree | fb512ca3d2275f17d5b146efd1292635e57c8950 /internal_rewrite | |
| parent | d12a1be5af24c6721496dbd5645f361bdb080074 (diff) | |
| parent | a7cb7b5eac107af8eda01b7755d2384fe9083c19 (diff) | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'internal_rewrite')
| -rw-r--r-- | internal_rewrite/create_move.cpp | 22 | ||||
| -rw-r--r-- | internal_rewrite/hooks.cpp | 6 | ||||
| -rw-r--r-- | internal_rewrite/identity.cpp | 2 | ||||
| -rw-r--r-- | internal_rewrite/packet_start.cpp | 3 | ||||
| -rw-r--r-- | internal_rewrite/ui.h | 2 |
5 files changed, 14 insertions, 21 deletions
diff --git a/internal_rewrite/create_move.cpp b/internal_rewrite/create_move.cpp index 097c7f4..a59930e 100644 --- a/internal_rewrite/create_move.cpp +++ b/internal_rewrite/create_move.cpp @@ -61,22 +61,16 @@ bool __fastcall hooks::create_move( void* ecx_, void* edx_, float input_sample_f last_frame = g_csgo.m_globals->m_framecount; g_cheat.m_legitbot.sample_angle_data( ucmd->m_viewangles ); - - // Okay, this implementation was REALLY fucking gay. - // g_cheat.m_prediction.local_pred( ucmd ); - // Yeah. + // u forgot to put this back in the right place after u removed + // my epic engine prediction that set seed to the player ptr + g_cheat.m_prediction.run_command(ucmd); g_cheat.m_movement( ucmd ); //SUPER SECRET EXPLOIT DO NOT LEAK if( g_settings.misc.no_crouch_cooldown ) ucmd->m_buttons |= IN_BULLRUSH; - // This should account for the majority of FPS related bugs. - - // Actual implementation of RunCommand. - g_cheat.m_prediction.run_command( ucmd ); - g_cheat.m_extra.auto_revolver( ucmd ); g_cheat.m_legitbot.m_lagcomp( ucmd ); @@ -90,8 +84,6 @@ bool __fastcall hooks::create_move( void* ecx_, void* edx_, float input_sample_f g_cheat.m_extra.no_recoil( ucmd ); - // Restores globals. - g_cheat.m_move_rec( ucmd ); g_cheat.m_visuals.radar( ); @@ -109,18 +101,18 @@ 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; - printf( "choked: %d\n", choked ); + int choked = cl->m_netchannel->m_nChokedPackets; + //printf( "choked: %d\n", choked ); cl->m_netchannel->m_nChokedPackets = 0; 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/packet_start.cpp b/internal_rewrite/packet_start.cpp index b3aa103..a5c9db4 100644 --- a/internal_rewrite/packet_start.cpp +++ b/internal_rewrite/packet_start.cpp @@ -7,6 +7,9 @@ void __fastcall hooks::packet_start( void* ecx, void* edx, int in_seq, int out_a *( int* )( uintptr_t( ecx ) + 0x4cb4 ) = out_ack;
}
+ // okay now this is epic
+ //printf("%08x -> %08x\n", &hooks::packet_start, hooks::packet_start_o);
+
for( auto cmd_number = g_ctx.m_cmd_numbers.begin( ); cmd_number != g_ctx.m_cmd_numbers.end( ); ) {
if( *cmd_number == out_ack ) {
auto cl = ( uintptr_t )( ecx );
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
|
