From b7375a7582db7ba2ee8a4dacfab226a3fd8fc514 Mon Sep 17 00:00:00 2001 From: navewindre Date: Mon, 24 Sep 2018 23:07:59 +0200 Subject: ? --- internal_rewrite/visual_local.cpp | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) (limited to 'internal_rewrite/visual_local.cpp') diff --git a/internal_rewrite/visual_local.cpp b/internal_rewrite/visual_local.cpp index adb84c3..c519b6f 100644 --- a/internal_rewrite/visual_local.cpp +++ b/internal_rewrite/visual_local.cpp @@ -20,6 +20,9 @@ namespace features draw_spread( ); spectator_list( ); + const int offset = 21; + + if( g_ctx.m_local->is_valid( ) ) { //isvalveds @@ -29,7 +32,7 @@ namespace features clr_t col = clr_t::blend( esp_green( ), esp_red( ), std::clamp( percentage, 0.f, 1.f ) ); - draw_really_big_string( 10, cur_pos += 15, col, xors( "DMG: %d" ), m_teamdmg ); + draw_really_big_string( 10, cur_pos += offset, col, xors( "DMG: %d" ), m_teamdmg ); } static float incoming_latency; @@ -46,12 +49,14 @@ namespace features clr_t col = clr_t::blend( esp_red( ), esp_green( ), percentage ); - bool visible = g_settings.misc.net_fakeping_active; - if( g_settings.misc.net_fakelag == 4 ) - visible = true; + //bool visible = g_settings.misc.net_fakeping_active; + //if( g_settings.misc.net_fakelag == 4 ) + //visible = true; - if( percentage > 0.35f || visible ) { - draw_really_big_string( 10, cur_pos += 15, col, xors( "PING" ) ); + if( percentage > 0.35f ) { + draw_really_big_string( 9, ( cur_pos += offset ), clr_t( 110, 110, 110, 255 ), xors( "PING" ) ); + draw_really_big_string( 11, cur_pos + 2, clr_t( 0, 0, 0, 255 ), xors( "PING" ) ); + draw_really_big_string( 10, cur_pos, col, xors( "PING" ) ); } } } @@ -77,25 +82,31 @@ namespace features bool breaking = lby_delta > 35.f && time_delta > 0.2f; if( g_cheat.m_ragebot.m_antiaim->is_edging( ) ) { - draw_really_big_string( 10, cur_pos += 15, esp_green( ), xors( "EDGE" ) ); + 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( 10, cur_pos += 15, breaking ? esp_green( ) : esp_red( ), xors( "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 ) + 14, 31, 2, clr_t( 0, 0, 0, 170 ) ); + 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 + 14, 30 * progress, 1, esp_green( ) ); + draw_filled_rect( 11, cur_pos + 19, 34 * progress, 1, esp_green( ) ); } } if( g_settings.rage.preserve_fps && g_settings.rage.enabled && util::is_low_fps( ) ) { - draw_really_big_string( 10, cur_pos += 15, esp_red( ), xors( "FPS" ) ); + draw_really_big_string( 9, ( cur_pos += offset ), clr_t( 110, 110, 110, 255 ), xors( "FPS" ) ); + draw_really_big_string( 11, cur_pos + 2, clr_t( 0, 0, 0, 255 ), xors( "FPS" ) ); + draw_really_big_string( 10, cur_pos, esp_red( ), xors( "FPS" ) ); } } @@ -112,7 +123,9 @@ namespace features float speed = g_ctx.m_local->m_vecVelocity( ).length2d( ); if( speed > 255.f && speed * g_csgo.m_globals->m_interval_per_tick * max_ticks > 50 ) { bool breaking = g_cheat.m_lagmgr.is_breaking_lc( ); - draw_really_big_string( 10, cur_pos += 15, breaking ? esp_green( ) : esp_red( ), xors( "LC" ) ); + draw_really_big_string( 9, ( cur_pos += offset ), clr_t( 110, 110, 110, 255 ), xors( "LC" ) ); + draw_really_big_string( 11, cur_pos + 2, clr_t( 0, 0, 0, 255 ), xors( "LC" ) ); + draw_really_big_string( 10, cur_pos, breaking ? esp_green( ) : esp_red( ), xors( "LC" ) ); } } } -- cgit v1.2.3