fix: update more globals to 1.67 (#1415)

This commit is contained in:
Johann 2023-06-15 13:20:08 +02:00 committed by GitHub
parent b1dd8e0c3c
commit 6aa713c831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 12 deletions

View File

@ -33,11 +33,11 @@ namespace big
}
else if (scr_globals::globalplayer_bd.as<GlobalPlayerBD*>()->Entries[id].SimpleInteriorData.Index != eSimpleInteriorIndex::SIMPLE_INTERIOR_INVALID)
{
*script_global(1950108).at(3346).as<Player*>() =
*script_global(1950844).at(3347).as<Player*>() =
scr_globals::globalplayer_bd.as<GlobalPlayerBD*>()->Entries[id].SimpleInteriorData.Owner;
*script_global(1950108).at(3683).as<eSimpleInteriorIndex*>() =
*script_global(1950844).at(3684).as<eSimpleInteriorIndex*>() =
scr_globals::globalplayer_bd.as<GlobalPlayerBD*>()->Entries[id].SimpleInteriorData.Index;
*script_global(1950108).at(3682).as<bool*>() = true;
*script_global(1950844).at(3683).as<bool*>() = true;
scr_globals::globalplayer_bd.as<GlobalPlayerBD*>()->Entries[self::id].SimpleInteriorData.InteriorSubtype =
scr_globals::globalplayer_bd.as<GlobalPlayerBD*>()->Entries[id].SimpleInteriorData.InteriorSubtype;
}

View File

@ -66,7 +66,7 @@ namespace big
if (g.self.dance_mode && g.m_dance_thread->m_handler)
{
*script_global(1950102).as<bool*>() = true;
*script_global(1950837).as<bool*>() = true;
scr_functions::dance_loop.call(g.m_dance_thread, g.m_dance_program, {});
}
}

View File

@ -15,7 +15,7 @@ namespace big
if (g.notifications.transaction_rate_limit.notify)
g_notification_service->push_warning("Transaction Rate Limit", "You're receiving transaction rate limits, whatever you're doing do it less.");
*script_global(4536673).as<int*>() = 0;
*script_global(4536677).as<int*>() = 0;
return;
}

View File

@ -13,7 +13,7 @@
namespace big::mobile
{
inline auto player_global = script_global(2657589);
inline auto player_global = script_global(2657704);
namespace util
{
@ -33,27 +33,27 @@ namespace big::mobile
{
inline void request_ammo_drop()
{
*script_global(scr_globals::mechanic_global).at(886).as<int*>() = 1;
*script_global(scr_globals::mechanic_global).at(891).as<int*>() = 1;
}
inline void request_boat_pickup()
{
*script_global(scr_globals::mechanic_global).at(887).as<int*>() = 1;
*script_global(scr_globals::mechanic_global).at(892).as<int*>() = 1;
}
inline void request_helicopter_pickup()
{
*script_global(scr_globals::mechanic_global).at(888).as<int*>() = 1;
*script_global(scr_globals::mechanic_global).at(893).as<int*>() = 1;
}
inline void request_backup_helicopter()
{
*script_global(scr_globals::mechanic_global).at(4484).as<int*>() = 1;
*script_global(scr_globals::mechanic_global).at(4491).as<int*>() = 1;
}
inline void request_airstrike()
{
*script_global(scr_globals::mechanic_global).at(4485).as<int*>() = 1;
*script_global(scr_globals::mechanic_global).at(4492).as<int*>() = 1;
}

View File

@ -27,7 +27,7 @@ namespace big
ImGui::Checkbox("SEMI_GODMODE"_T.data(), &g_player_service->get_selected()->semi_godmode);
components::button("Gooch Test", [] {
*script_global(1890140).at(244).at(1).as<Player*>() = g_player_service->get_selected()->id();
*script_global(1890378).at(289).at(1).as<Player*>() = g_player_service->get_selected()->id();
scripts::start_launcher_script(171);
});