From d12933fe279b678a6fca78e6d93e455cd572102d Mon Sep 17 00:00:00 2001 From: explorer Date: Fri, 10 Jan 2025 20:00:36 +0300 Subject: [PATCH] fix uninitialized crosshair type reproduce: give fireaxe; jointeam 1 and sb_takecontrol --- Draw_Crosshair.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Draw_Crosshair.hpp b/Draw_Crosshair.hpp index 6006e7d..f6695d2 100755 --- a/Draw_Crosshair.hpp +++ b/Draw_Crosshair.hpp @@ -64,4 +64,8 @@ void Redirected_Draw_Crosshair() } Rotation_Angle = __builtin_remainderf(Rotation_Angle + (*(Global_Variables_Structure**)((unsigned __int32)Client_Module + 7096744))->Frame_Time * Interface_Storm_Speed.Integer, 360.f); + + using Get_Display_Type = void*(__cdecl*)(); + + *(__int32*)((unsigned __int32)Get_Display_Type((unsigned __int32)Client_Module + 2930128)() + 400) = 0; } \ No newline at end of file