From 8be3f19c8ace79135a593ac697751579fa1a0998 Mon Sep 17 00:00:00 2001 From: navewindre Date: Mon, 24 Dec 2018 23:46:20 +0100 Subject: dsafdsadsadsad --- cheat/internal_rewrite/visual_local.cpp | 38 ++++++++++----------------------- 1 file changed, 11 insertions(+), 27 deletions(-) (limited to 'cheat/internal_rewrite/visual_local.cpp') diff --git a/cheat/internal_rewrite/visual_local.cpp b/cheat/internal_rewrite/visual_local.cpp index 9457950..b9521a8 100644 --- a/cheat/internal_rewrite/visual_local.cpp +++ b/cheat/internal_rewrite/visual_local.cpp @@ -150,39 +150,23 @@ namespace features } if( g_settings.rage.anti_aim( ) ) { - static float last_lby = 0.f; - static float last_update = 0.f; - float lby = g_ctx.m_local->m_flLowerBodyYawTarget( ); - if( lby != last_lby ) { - last_update = g_csgo.m_globals->m_curtime; - last_lby = lby; - } - - float lby_delta = std::abs( std::remainderf( lby - g_ctx.m_thirdperson_angle.y, 360.f ) ); - float time_delta = g_csgo.m_globals->m_curtime - last_update; - - bool breaking = lby_delta > 35.f && time_delta > 0.2f; - if( g_cheat.m_ragebot.m_antiaim->is_edging( ) ) { draw_really_big_string( 9, ( cur_pos += offset ), clr_t( 110, 110, 110, 255 ), xors( "EDGE" ) ); draw_really_big_string( 11, cur_pos + 2, clr_t( 0, 0, 0, 255 ), xors( "EDGE" ) ); draw_really_big_string( 10, cur_pos, esp_green( ), xors( "EDGE" ) ); } - if( g_settings.rage.break_lby( ) ) { - draw_really_big_string( 9, ( cur_pos += offset ), clr_t( 110, 110, 110, 255 ), xors( "LBY" ) ); - draw_really_big_string( 11, cur_pos + 2, clr_t( 0, 0, 0, 255 ), xors( "LBY" ) ); - draw_really_big_string( 10, cur_pos, breaking ? esp_green( ) : esp_red( ), xors( "LBY" ) ); - - auto animstate = g_ctx.m_local->get_animstate( ); - if( animstate && animstate->m_velocity < 0.1f && animstate->m_bOnGround ) { - draw_filled_rect( 11, ( cur_pos += 4 ) + 18, 36, 3, clr_t( 0, 0, 0, 170 ) ); - - float progress = ( float )g_cheat.m_ragebot.m_antiaim->get_next_update( ) / TIME_TO_TICKS( 1.1f ); - - if( progress <= 1.f ) - draw_filled_rect( 11, cur_pos + 19, 34 * progress, 1, esp_green( ) ); - } + if( g_settings.rage.fake_yaw && g_ctx.m_local->m_fFlags( ) & FL_ONGROUND ) { + float max = 57.5f; + float delta = g_cheat.m_ragebot.m_antiaim->desync_delta( ); + + float percent = delta / max; + + auto clr = clr_t::blend( esp_red( ), esp_green( ), percent ); + + draw_really_big_string( 9, ( cur_pos += offset ), clr_t( 110, 110, 110, 255 ), xors( "FAKE" ) ); + draw_really_big_string( 11, cur_pos + 2, clr_t( 0, 0, 0, 255 ), xors( "FAKE" ) ); + draw_really_big_string( 10, cur_pos, clr, xors( "FAKE" ) ); } if( g_settings.rage.preserve_fps && g_settings.rage.enabled && util::is_low_fps( ) ) { -- cgit v1.2.3