
* Redesigned G's Cache to use Globals that are more reliable (and actually work). Refactored START_NEW_SCRIPT_WITH_ARGS to use a static unordered_set so that it's not constantly constructing it each call, and potentially closes #2462 Added Pickup Pool.
105 lines
3.4 KiB
C++
105 lines
3.4 KiB
C++
#pragma once
|
|
#include "script_global.hpp"
|
|
#include "script_local.hpp"
|
|
|
|
namespace big::scr_globals
|
|
{
|
|
static inline const script_global gsbd(2648711);
|
|
static inline const script_global gsbd_fm(1835504);
|
|
static inline const script_global gsbd_kicking(1885447);
|
|
static inline const script_global gsbd_fm_events(1924276);
|
|
static inline const script_global gsbd_block_c(2652364);
|
|
static inline const script_global gsbd_property_instances(1944302);
|
|
|
|
static inline const script_global globalplayer_bd(2657704);
|
|
static inline const script_global gpbd_fm_3(1895156);
|
|
static inline const script_global gpbd_fm_1(1853988);
|
|
static inline const script_global interiors(1950844);
|
|
|
|
static inline const script_global launcher_global(2756336);
|
|
|
|
static inline const script_global sp(113810); // check flow_controller
|
|
static inline const script_global mission_definition(91601); // standard_global_init (66, "agency_heist1", "AH1", 230, 1, 1, -1, -1, 8192)
|
|
|
|
// creator globals usually remain the same after updates
|
|
static inline const script_global creator_job_metadata(4718592);
|
|
static inline const script_global terminate_creator(1574607); // NETWORK::NETWORK_BAIL(1, 0, 0); fm_*_creator
|
|
static inline const script_global switch_struct(1574632);
|
|
static inline const script_global mission_creator_radar_follows_camera(2621443);
|
|
static inline const script_global mission_creator_exited(1574530);
|
|
|
|
static inline const script_global in_multiplayer(78689); // g_bInMultiplayer
|
|
static inline const script_global transition_state(1574996);
|
|
static inline const script_global sctv_spectator(2695969); // pausemenu_multiplayer function 0xE49C42EC
|
|
|
|
static inline const script_global vehicle_global(1586488);
|
|
|
|
static inline const script_global freemode_properties(2672524);
|
|
static inline const script_global freemode_global(2794162);
|
|
|
|
static inline const script_global spawn_global(2694613);
|
|
|
|
static inline const script_global dance_state(1950837);
|
|
|
|
static inline const script_global mobile(20483);
|
|
|
|
static inline const script_global transaction_overlimit(20483);
|
|
|
|
static inline const script_global stats(2359296);
|
|
|
|
static inline const script_global session(1574589);
|
|
static inline const script_global session2(1575020);
|
|
static inline const script_global session3(32284);
|
|
static inline const script_global session4(1574934);
|
|
static inline const script_global session5(1574995);
|
|
static inline const script_global session6(2694534);
|
|
|
|
static inline const script_global gooch(1890378);
|
|
|
|
static inline const script_global gun_van(1956855);
|
|
|
|
static inline const script_global passive(1574582);
|
|
|
|
static inline const script_global property_garage(1945123);
|
|
static inline const script_global property_names(1312228);
|
|
|
|
static inline const script_global pickups(2765084);
|
|
}
|
|
|
|
namespace big::scr_locals
|
|
{
|
|
namespace am_hunt_the_beast
|
|
{
|
|
constexpr static auto broadcast_idx = 600;
|
|
constexpr static auto player_broadcast_idx = 2584;
|
|
}
|
|
|
|
namespace am_criminal_damage
|
|
{
|
|
constexpr static auto broadcast_idx = 111;
|
|
constexpr static auto score_idx = 106;
|
|
}
|
|
|
|
namespace am_cp_collection
|
|
{
|
|
constexpr static auto broadcast_idx = 816;
|
|
constexpr static auto player_broadcast_idx = 3457;
|
|
}
|
|
|
|
namespace am_king_of_the_castle
|
|
{
|
|
constexpr static auto broadcast_idx = 94;
|
|
}
|
|
|
|
namespace fmmc_launcher
|
|
{
|
|
constexpr static auto broadcast_idx = 11629;
|
|
}
|
|
|
|
namespace fm_mobile
|
|
{
|
|
// first uLocal_ in this function call
|
|
// func_\d+\((&.Local_\d+(, )?){9}\);
|
|
inline static script_local mobile(18717);
|
|
}
|
|
} |