summaryrefslogtreecommitdiff
path: root/internal_rewrite/paint_traverse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/paint_traverse.cpp')
-rw-r--r--internal_rewrite/paint_traverse.cpp65
1 files changed, 0 insertions, 65 deletions
diff --git a/internal_rewrite/paint_traverse.cpp b/internal_rewrite/paint_traverse.cpp
deleted file mode 100644
index 8376cdd..0000000
--- a/internal_rewrite/paint_traverse.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-#include "hooks.hpp"
-#include "renderer.hpp"
-#include "context.hpp"
-#include "console.hpp"
-#include "base_cheat.hpp"
-#include "math.hpp"
-#include "settings.hpp"
-
-void __fastcall hooks::paint_traverse( void* ecx_, void* edx_, unsigned int panel, bool force_repaint, bool allowforce ) {
- if( g_csgo.m_panic ) return paint_traverse_o( ecx_, 0, panel, force_repaint, allowforce );
- if( ecx_ != g_csgo.m_panel.get( ) )
- return paint_traverse_o( ecx_, 0, panel, force_repaint, allowforce );
-
- g_csgo.m_main_thread = std::this_thread::get_id( );
-
- if( g_settings.legit.enabled ) {
- g_settings.rage.enabled( ) = false;
- }
-
- static uint32_t mat_system_top_panel{ };
- if( !mat_system_top_panel ) {
- auto panel_name = g_csgo.m_panel( )->GetName( panel );
- auto panel_hash = hash::fnv1a( panel_name );
- if( fnv( "MatSystemTopPanel" ) == panel_hash ) {
- mat_system_top_panel = panel;
- }
- }
-
- static uint32_t hud_zoom{ };
- if( !hud_zoom ) {
- auto panel_name = g_csgo.m_panel( )->GetName( panel );
- auto panel_hash = hash::fnv1a( panel_name );
- if( fnv( "HudZoom" ) == panel_hash ) {
- hud_zoom = panel;
- }
- }
-
- if( panel && panel == hud_zoom && g_settings.misc.no_scope
- && g_ctx.m_local && g_ctx.m_local->is_valid( ) ) {
- return;
- }
-
- if( panel && panel == mat_system_top_panel ) {
- //render your epic 2008 hake esp here
- g_renderer.draw_box( 0, 0, 1, 1, clr_t( 0, 0, 0, 1 ) );
- //g_renderer.draw_string( g_fonts.f_12, 100, 200, clr_t( 255, 255, 255, 255 ), "c: %d", g_csgo.m_global_state->get_client_state( )->m_chokedcommands );
- if( !g_settings.misc.hide_from_obs )
- g_cheat.m_visuals( );
-
- /*auto nci = g_csgo.m_engine( )->GetNetChannelInfo( );
- if( nci ) {
- float desired_in_latency = g_settings.misc.net_fakeping_amount * 0.001f;
- float latency = nci->GetLatency( 1 );
-
- float delta = latency - desired_in_latency;
-
- g_renderer.draw_string( g_fonts.f_12, 20, 400, clr_t( 255, 255, 255 ), "latency: %f", latency );
- //g_renderer.draw_string( g_fonts.f_12, 20, )
- g_renderer.draw_string( g_fonts.f_12, 20, 410, clr_t( 255, 255, 255 ), "delta: %f", delta );
- }*/
- }
-
- g_csgo.m_prediction( )->SetLocalViewAngles( g_ctx.m_last_fakeangle );
- return paint_traverse_o( ecx_, 0, panel, force_repaint, allowforce );
-} \ No newline at end of file