mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
Check if in game
This commit is contained in:
parent
1f257b9910
commit
db1d9e01f3
@ -221,10 +221,13 @@ namespace party
|
|||||||
|
|
||||||
void send_disconnect()
|
void send_disconnect()
|
||||||
{
|
{
|
||||||
// CL_ForwardCommandToServer
|
if (game::CL_IsCgameInitialized())
|
||||||
reinterpret_cast<void (*)(int, const char*)>(0x14020B310)(0, "disconnect");
|
{
|
||||||
// CL_WritePacket
|
// CL_ForwardCommandToServer
|
||||||
reinterpret_cast<void (*)(int)>(0x1402058F0)(0);
|
reinterpret_cast<void (*)(int, const char*)>(0x14020B310)(0, "disconnect");
|
||||||
|
// CL_WritePacket
|
||||||
|
reinterpret_cast<void (*)(int)>(0x1402058F0)(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto disconnect_stub = utils::hook::assemble([](utils::hook::assembler& a)
|
const auto disconnect_stub = utils::hook::assemble([](utils::hook::assembler& a)
|
||||||
|
Loading…
Reference in New Issue
Block a user