From 09c549b6fcb98946ddc6cd1c448928a27316439d Mon Sep 17 00:00:00 2001 From: 0TheSpy <5511c282@opayq.com> Date: Mon, 14 Nov 2022 15:21:39 +0300 Subject: [PATCH] Update Hooks.hpp --- SpyCustom/Hooks.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SpyCustom/Hooks.hpp b/SpyCustom/Hooks.hpp index fb22f93..2c5ec34 100644 --- a/SpyCustom/Hooks.hpp +++ b/SpyCustom/Hooks.hpp @@ -620,11 +620,13 @@ __int64 __cdecl hkDevWarningMsg(_In_z_ _Printf_format_string_ char const* const int msgcount = 0; -//sv_show_usermessage 2 //https://www.unknowncheats.me/forum/counterstrike-global-offensive/492173-dispatchusermessage-client-call.html +//sv_show_usermessage 2 for local server //https://www.unknowncheats.me/forum/counterstrike-global-offensive/492173-dispatchusermessage-client-call.html bool __fastcall hkDispatchUserMessage(void* thisptr, void*, int msg_type, int32 nFlags, int size, bf_read& msg_data) { - if (*g_Options.debugstuff) - printfdbg("DispatchUserMessage type %d flags %d size %d data -> %x\n", msg_type, nFlags, size, &msg_data); + printfdbg("DispatchUserMessage type %d flags %d size %d data -> %x\n", msg_type, nFlags, size, &msg_data); + if (*g_Options.debugstuff) { + iff.myConMsg("[Seaside] DispatchUserMessage type %d flags %d size %d data -> %x\n", msg_type, nFlags, size, &msg_data); + } static auto ofunc = ClientHook->GetOriginal(38);