diff --git a/Entry_Point.cpp b/Entry_Point.cpp index 47d4ce1..5e5d515 100755 --- a/Entry_Point.cpp +++ b/Entry_Point.cpp @@ -129,29 +129,11 @@ __int32 __stdcall DllMain(HMODULE This_Module, unsigned __int32 Call_Reason, voi HANDLE Standard_Output_Handle = GetStdHandle(STD_OUTPUT_HANDLE); - CONSOLE_FONT_INFOEX Console_Font_Information; - - Console_Font_Information.cbSize = sizeof(CONSOLE_FONT_INFOEX); - - Console_Font_Information.nFont = 0; - - Console_Font_Information.dwFontSize.X = 0; - - Console_Font_Information.dwFontSize.Y = 12; - - Console_Font_Information.FontFamily = FF_DONTCARE; - - Console_Font_Information.FontWeight = FW_NORMAL; - - wcscpy(Console_Font_Information.FaceName, L"Terminal"); + CONSOLE_FONT_INFOEX Console_Font_Information = { sizeof(CONSOLE_FONT_INFOEX), 0, { 0, 12 }, FF_DONTCARE, FW_NORMAL, { L"Terminal" } }; SetCurrentConsoleFontEx(Standard_Output_Handle, 0, &Console_Font_Information); - CONSOLE_CURSOR_INFO Console_Cursor_Information; - - Console_Cursor_Information.bVisible = 0; - - Console_Cursor_Information.dwSize = sizeof(Console_Cursor_Information); + CONSOLE_CURSOR_INFO Console_Cursor_Information = { sizeof(Console_Cursor_Information) }; SetConsoleTextAttribute(Standard_Output_Handle, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY | BACKGROUND_BLUE); @@ -169,6 +151,11 @@ __int32 __stdcall DllMain(HMODULE This_Module, unsigned __int32 Call_Reason, voi Engine_Module = GetModuleHandleW(L"engine.dll"); + _putws(L"[ + ] Delimit Interface"); + { + Byte_Manager::Set_Bytes(0, (void*)((unsigned __int32)Engine_Module + 1423205), 1, 235); + } + _putws(L"[ + ] Extend Interface"); { Implement_Extended_Interface(); diff --git a/Perform_Trace.hpp b/Perform_Trace.hpp index 737907b..e8755d5 100755 --- a/Perform_Trace.hpp +++ b/Perform_Trace.hpp @@ -250,7 +250,9 @@ void __thiscall Perform_Trace(void* Stack) Damage *= min(Multipliers[Group], 4.f - 2.75f * Is_Shotgun); } - if (Get_Identifier(Entity, 1, 0) == 99) + __int32 Raw_Identifier = Get_Identifier(Entity, 1, 0); + + if (Raw_Identifier == 99) { if (*(__int32*)((unsigned __int32)Entity + 2212) == 5) { @@ -284,13 +286,13 @@ void __thiscall Perform_Trace(void* Stack) if (Damage != __builtin_inff()) { Damage = (__int32)(Damage + 1.f * (Damage < 1)); - } - if (Identifier == 276) - { - if (__builtin_strstr(Get_Sequence_Name(Entity), "limb") != nullptr) + if (Raw_Identifier == 276) { - Damage = min(Damage, *(__int32*)((unsigned __int32)Entity + 236) - 1.f); + if (__builtin_strstr(Get_Sequence_Name(Entity), "limb") != nullptr) + { + Damage = min(Damage, *(__int32*)((unsigned __int32)Entity + 236) - 1.f); + } } } }