Update Hooks.hpp

This commit is contained in:
0TheSpy
2022-11-10 16:46:54 +03:00
committed by GitHub
parent ab4b123858
commit be2870525d

View File

@ -306,6 +306,12 @@ typedef const bool(__thiscall* pSendNetMsg)(void*, INetMessage*, bool, bool);
pSendNetMsg oSendNetMsg;
bool __fastcall hkSendNetMsg(void* channel, uint32_t, INetMessage* msg, bool reliable, bool voice)
{
#ifdef DEBUG
int type = msg->GetType();
if (type != net_Tick && type != svc_SendTable)
printfdbg("Packet %s %s\n", msg->GetName(), msg->ToString());
#endif
if (*g_Options.changing_name && msg->GetType() == net_SetConVar)
{
if (*g_Options.changing_name > 1) {