parent
cd64b410fd
commit
2d2f1d2968
@ -80,13 +80,7 @@ namespace getinfo
|
|||||||
|
|
||||||
bool is_host()
|
bool is_host()
|
||||||
{
|
{
|
||||||
if (game::is_server())
|
return game::SV_Loaded() && (game::is_server() || !game::Com_IsRunningUILevel());
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
const auto client_states = *reinterpret_cast<uint64_t*>(0x1576FB318_g);
|
|
||||||
return client_states == 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct component final : generic_component
|
struct component final : generic_component
|
||||||
|
@ -129,6 +129,7 @@ namespace game
|
|||||||
};
|
};
|
||||||
|
|
||||||
// SV
|
// SV
|
||||||
|
WEAK symbol<bool()> SV_Loaded{0x142252CB0, 0x140535460};
|
||||||
WEAK symbol<void*()> SV_AddTestClient{0x1422499A0, 0x14052E3E0};
|
WEAK symbol<void*()> SV_AddTestClient{0x1422499A0, 0x14052E3E0};
|
||||||
WEAK symbol<void(client_s* cl_0, svscmd_type type, const char* fmt, ...)> SV_SendServerCommand{0x0, 0x140537F10};
|
WEAK symbol<void(client_s* cl_0, svscmd_type type, const char* fmt, ...)> SV_SendServerCommand{0x0, 0x140537F10};
|
||||||
WEAK symbol<bool(int clientNum)> SV_IsTestClient{0x14224B5C0, 0x14052FF40};
|
WEAK symbol<bool(int clientNum)> SV_IsTestClient{0x14224B5C0, 0x14052FF40};
|
||||||
|
Loading…
Reference in New Issue
Block a user