From 58cd042e461ac40613984b3026ecf069c314f1b5 Mon Sep 17 00:00:00 2001 From: explorer Date: Tue, 15 Oct 2024 02:38:32 +0300 Subject: [PATCH] typo: shouldn't use raw id --- Perform_Trace.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Perform_Trace.hpp b/Perform_Trace.hpp index a612b10..3dd2991 100755 --- a/Perform_Trace.hpp +++ b/Perform_Trace.hpp @@ -20,9 +20,11 @@ void __thiscall Perform_Trace(void* Stack) { void* Entity = *(void**)((unsigned __int32)Stack + 312); + __int32 Identifier = Get_Identifier(Entity, 0, 0); + if (Interface_Penetrate_Teammates.Integer == 0) { - if (Get_Identifier(Entity, 0, 0) == 232) + if (Identifier == 232) { void* Local_Player = *(void**)((unsigned __int32)Client_Module + 7498712); @@ -89,8 +91,6 @@ void __thiscall Perform_Trace(void* Stack) Damage *= *(__int32*)((unsigned __int32)Weapon_Data + 2520); } - __int32 Identifier = Get_Identifier(Entity, 1, 0); - auto Apply_Difficulty_Scaling = [&]() -> void { using Get_Difficulty_Type = __int32(__cdecl*)(); @@ -246,7 +246,7 @@ void __thiscall Perform_Trace(void* Stack) } else { - if (Group * Identifier == 270) + if (Identifier * Group == 270) { if (*(void**)((unsigned __int32)Entity + 8040) != INVALID_HANDLE_VALUE) {