This commit is contained in:
Mr-X-GTA 2024-12-12 00:36:35 +01:00
parent af9618c6f2
commit 4aeadef81d
3 changed files with 1 additions and 13 deletions

View File

@ -21,7 +21,7 @@ namespace big
{ {
void bypass_battleye() void bypass_battleye()
{ {
constexpr std::array<std::uint32_t, 16> valid_hashes = {1410389794, 967, 1523678325, 472, 0, 0, 1323039495, 0, 0, 1731098795, 2256610353, 17956, 414639110, 307143837, 3443181821, 0}; constexpr std::array<std::uint32_t, 16> valid_hashes = {4022154788, 988, 3512952254, 472, 0, 0, 3308328917, 0, 0, 1731098795, 2256610353, 18616, 1540917665, 307143837, 1629784955, 2012170620};
if (auto hashes = *g_pointers->m_gta.m_game_data_hash) if (auto hashes = *g_pointers->m_gta.m_game_data_hash)
{ {

View File

@ -310,14 +310,6 @@ namespace big
{ {
send_message_to_server(token, message, size); send_message_to_server(token, message, size);
if (g.session.kick_host_when_forcing_host && msg[1] == 5)
{
if (auto player = g_player_service->get_by_host_token(token); player && !player->is_modder)
{
player_command::get("battleupdate"_J)->call(player, {});
}
}
break; break;
} }
case REQUEST: case REQUEST:

View File

@ -174,10 +174,6 @@ namespace big
ImGui::EndDisabled(); ImGui::EndDisabled();
ImGui::Checkbox("Auto Kick Host", &g.session.kick_host_when_forcing_host);
if (ImGui::IsItemHovered())
ImGui::SetTooltip("Kicks the host every few minutes until you become host to avoid being kicked");
ImGui::Checkbox("FORCE_SCRIPT_HOST"_T.data(), &g.session.force_script_host); ImGui::Checkbox("FORCE_SCRIPT_HOST"_T.data(), &g.session.force_script_host);
if (ImGui::IsItemHovered()) if (ImGui::IsItemHovered())
ImGui::SetTooltip("FORCE_SCRIPT_HOST_DESC"_T.data()); ImGui::SetTooltip("FORCE_SCRIPT_HOST_DESC"_T.data());