mirror of
https://github.com/0TheSpy/Seaside.git
synced 2025-09-20 04:35:59 +08:00
Update Hooks.hpp
This commit is contained in:
@ -308,13 +308,13 @@ bool __fastcall hkSendNetMsg(void* channel, uint32_t, INetMessage* msg, bool rel
|
|||||||
{
|
{
|
||||||
if (*g_Options.changing_name && msg->GetType() == net_SetConVar)
|
if (*g_Options.changing_name && msg->GetType() == net_SetConVar)
|
||||||
{
|
{
|
||||||
printfdbg("sendnetmsg net_SetConVar %d\n", *g_Options.changing_name);
|
if (*g_Options.changing_name > 1) {
|
||||||
*g_Options.changing_name -= 1;
|
*g_Options.changing_name = 0;
|
||||||
|
printfdbg("Blocking net_SetConVar packet\n");
|
||||||
if (*g_Options.changing_name) {
|
|
||||||
printfdbg("blocking packet\n");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*g_Options.changing_name += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return oSendNetMsg(channel, msg, reliable, voice);
|
return oSendNetMsg(channel, msg, reliable, voice);
|
||||||
|
Reference in New Issue
Block a user