diff --git a/src/Components/Modules/Debug.cpp b/src/Components/Modules/Debug.cpp index 2821d58c..9a2fc119 100644 --- a/src/Components/Modules/Debug.cpp +++ b/src/Components/Modules/Debug.cpp @@ -213,6 +213,11 @@ namespace Components } } + void Debug::Com_Assert_f() + { + assert(("a", false)); + } + void Debug::CL_InitDebugDvars() { static const char* debugOverlayNames_0[] = @@ -236,5 +241,7 @@ namespace Components // Hook end of CG_DrawDebugOverlays (This is to ensure some checks are done before our hook is executed). Utils::Hook(0x49CB0A, CG_DrawDebugOverlays_Hk, HOOK_JUMP).install()->quick(); + + Utils::Hook::Set(0x60BCEA, Com_Assert_f); } } diff --git a/src/Components/Modules/Debug.hpp b/src/Components/Modules/Debug.hpp index 5f031cfe..a3d9dfcf 100644 --- a/src/Components/Modules/Debug.hpp +++ b/src/Components/Modules/Debug.hpp @@ -31,6 +31,8 @@ namespace Components static void CG_DrawDebugOverlays_Hk(int localClientNum); + static void Com_Assert_f(); + static void CL_InitDebugDvars(); }; }