Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions lib/game/inc/1.3528.0.0/offset_halo1.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,26 @@

DefOffset(OFFSET_HALO1_PF_RENDER, 0x1F05B0)
DefOffset(OFFSET_HALO1_PF_GAME_START, 0x939D0) // engine game_start(self, manager, game_options)
DefOffset(OFFSET_HALO1_PF_HS_COMPILE, 0xB21470) // compile + run a console script: (const char* text)

DefOffset(OFFSET_HALO1_PF_4PLAYERS, 0x67492)
DefOffset(OFFSET_HALO1_PF_PAUSE, 0x427978)
DefOffset(OFFSET_HALO1_PF_IDK, 0x85428)

DefOffset(OFFSET_HALO1_PV_PLAYER_COUNT, 0x1B7B910)

// spawning (mcc/spawn; found through the retail cheat_spawn_warthog / cheat_all_chars / ai_attach_free script functions)
DefOffset(OFFSET_HALO1_PV_PLAYERS, 0x1C40480) // players data array*, element 0xC20, unit index at +0x64
DefOffset(OFFSET_HALO1_PF_TAG_ITERATOR_NEXT, 0xA9B43C) // int (tag_iterator*)
DefOffset(OFFSET_HALO1_PF_TAG_GET_NAME, 0xA9B25C) // const char* (int tag)
DefOffset(OFFSET_HALO1_PF_TAG_GET, 0xA9B648) // void* (int tag) - tag definition data
DefOffset(OFFSET_HALO1_PF_OBJECT_PLACEMENT_DATA_NEW, 0xB35EBC) // (data*, int tag, int owner_object)
DefOffset(OFFSET_HALO1_PF_OBJECT_NEW, 0xB35F80) // int (data*)
DefOffset(OFFSET_HALO1_PF_OBJECT_GET_ORIGIN, 0xB37DE0) // (int object, vector3* out)
DefOffset(OFFSET_HALO1_PF_OBJECT_TRY_AND_GET, 0xB389A4) // void* (int object, unsigned type_mask) - object data, or null
DefOffset(OFFSET_HALO1_PF_ACTOR_CUSTOMIZE_UNIT, 0xC01DD0) // (int actor_variant, int unit) - weapon, grenades, colors
DefOffset(OFFSET_HALO1_PF_AI_ATTACH_FREE, 0xBFF120) // (int unit, int actor_variant) - creates an encounterless actor

// Left/Right split screen (mcc/splitscreen/LeftRight)
DefOffset(OFFSET_HALO1_PF_SPLIT_GRID, 0xAC4108) // void (int views, int* columns, int* rows) - the window grid, rows first
DefOffset(OFFSET_HALO1_PF_SPLIT_WINDOW, 0xAC4154) // void (int view, int views, short rect[4], short copy[4]) - a view's window
Expand Down Expand Up @@ -82,3 +95,7 @@ DefOffset(OFFSET_HALO1_PV_FIRST_PERSON_MODELS, 0x2B050E8) // the renderer's firs
DefOffset(OFFSET_HALO1_PF_OBJECT_HIDDEN_VIEWS, 0xAB2890) // int (int object) - views (bits 0, 1) the object is hidden in
DefOffset(OFFSET_HALO1_PF_DIRECTOR_CAMERA_MODE, 0xB14EA4) // short (int local) - 0 in first person
DefOffset(OFFSET_HALO1_PV_HIDDEN_OBJECT_CAMERA, 0x1B87A20) // bool on, int16 mode at +2 (2 hides), int object at +0x34
// Per-player HUD (mcc/hud, module/entry/halo1/hud.cpp)
DefOffset(OFFSET_HALO1_PF_HUD_CALCULATE_POINT, 0xB56A58) // (player, placement, header, -, bool, float, short2* out, int mcc element)
DefOffset(OFFSET_HALO1_PV_HUD_VIEWPORT_BOUNDS, 0x29AF2F0) // int16 top, left, bottom, right of the view being drawn
DefOffset(OFFSET_HALO1_PV_HUD_DRAWING_PLAYER, 0x29AF2B8) // int16 local player whose HUD is being drawn
26 changes: 26 additions & 0 deletions lib/game/inc/1.3528.0.0/offset_halo2.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
DefOffset(OFFSET_HALO2_PF_LOAD, 0x4F980)
DefOffset(OFFSET_HALO2_PF_GAME, 0x67A220)
DefOffset(OFFSET_HALO2_PF_COPY_GAME_OPTIONS, 0x39CE0) // copy_game_options(game_options)
DefOffset(OFFSET_HALO2_PF_HS_COMPILE, 0x6E17C0) // compile a console script: (const char* text, bool)

DefOffset(OFFSET_HALO2_PF_ADD_LOCAL_PLAYER, 0x69D2C0)//0x69D290

Expand All @@ -30,6 +31,24 @@ DefOffset(OFFSET_HALO2_PF_COOP_CAMPAIGN, 0x6A6320) // bool () - a co-op campaign
DefOffset(OFFSET_HALO2_PF_COOP_RESPAWN_ALLOWED, 0x6A5D40) // bool () - not with the Iron skull (11), not on Legendary
DefOffset(OFFSET_HALO2_PV_SCENARIO, 0xE6F768) // the loaded scenario*: int starting locations +0x100

// spawning (mcc/spawn)
DefOffset(OFFSET_HALO2_PV_TAG_INSTANCES, 0x15E4B30) // {u32 group, u32 datum, u32 address, u32 size}[tag count]
DefOffset(OFFSET_HALO2_PV_TAG_COUNT, 0x15E4B60)
DefOffset(OFFSET_HALO2_PV_TAG_NAME_OFFSETS, 0x15E4B68) // int32[tag count] into the name buffer
DefOffset(OFFSET_HALO2_PV_TAG_NAMES, 0x15E4B78)
DefOffset(OFFSET_HALO2_PV_TAG_BASE, 0xE80AB0) // tag block address -> map tag data + address
DefOffset(OFFSET_HALO2_PV_SHARED_TAG_BASE, 0xE80AC0) // addresses with the top bit set are in the shared map
// OFFSET_HALO2_PV_PLAYERS (above): data array (data at +*(+0x48)): 0x224 each, unit +0x2C
DefOffset(OFFSET_HALO2_PV_OBJECTS, 0x18B7398) // object headers: data array of 0xC, object data offset +8
DefOffset(OFFSET_HALO2_PV_OBJECT_MEMORY, 0x18B7360) // object data = ((pool + 0x57) & ~0xF) + offset
DefOffset(OFFSET_HALO2_PF_OBJECT_GET_ORIGIN, 0x8D6780) // (int object, real_point3d*)
DefOffset(OFFSET_HALO2_PF_OBJECT_PLACEMENT_DATA_NEW, 0x8D8880) // (data* [0xC4], int tag, int owner, void*)
DefOffset(OFFSET_HALO2_PF_OBJECT_NEW, 0x8D79D0) // int (data*)
DefOffset(OFFSET_HALO2_PF_AI_PLACE, 0x618890) // (int ai_index); starting location = (3 << 30) | (squad << 16) | location
// int (int ai_index, short, int*, float*) - living actors; a squad's ai index is its index. ai_living_count (0x619B10)
// is a 13-byte thunk to it with 0, null, null, too generic to find again by pattern.
DefOffset(OFFSET_HALO2_PF_AI_LIVING_COUNT, 0x6198E0)

// Left/Right split screen (mcc/splitscreen/LeftRight)
DefOffset(OFFSET_HALO2_PF_SPLIT_GRID, 0x7E09D0) // void (int views, int mode, short grid[2] columns, rows) - mode 1 stacks, others side by side
DefOffset(OFFSET_HALO2_PF_SPLIT_CELL, 0x7E0BD0) // void (int view, int views, int mode, short grid[2], short cell[2], short span[2])
Expand Down Expand Up @@ -81,3 +100,10 @@ DefOffset(OFFSET_HALO2_PV_FIRST_PERSON_MODELS, 0x1AB11C0) // entries*, int count
DefOffset(OFFSET_HALO2_PV_MODEL_LEVELS, 0x1DC36F0) // unsigned char* detail levels, int count at +8 - the current one is the last
DefOffset(OFFSET_HALO2_PF_SABER_OBJECT_SHOW, 0x69C30) // void (object*)
DefOffset(OFFSET_HALO2_PF_SABER_OBJECT_HIDE, 0x69CA0) // void (object*)
// Per-player HUD (mcc/hud). With "HUD anchor: Centered" on a screen wider than 16:9, 0x954DD0 insets the whole-screen
// HUD frame to a centred 16:9 box, which 0x7E0A40 splits among the players.
DefOffset(OFFSET_HALO2_PF_HUD_ASPECT_LOCK, 0x954DF2) // je (74 3C) that skips the centred 16:9 HUD frame when the profile's aspect lock is off
DefOffset(OFFSET_HALO2_PV_HUD_ASPECT_LOCK, 0x197EE40) // bool: the profiles' LockMaxAspectRatio ("HUD anchor: Centered"), the last loaded wins
DefOffset(OFFSET_HALO2_PV_HUD_DRAWING_PLAYER, 0x165C398) // int local player whose HUD is being drawn
DefOffset(OFFSET_HALO2_PV_HUD_VIEW_BOUNDS, 0x165C298) // int16 top, left, bottom, right of that player's HUD (window bounds)
DefOffset(OFFSET_HALO2_PV_HUD_UNIT_SCALE, 0xE14F28) // float: pixels per HUD offset unit (times the element's scale)
10 changes: 10 additions & 0 deletions lib/game/inc/1.3528.0.0/offset_halo3.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ DefOffset(OFFSET_HALO3_PF_OBJECT_PLACEMENT_DATA_NEW, 0x341508) // (data*, int ta
DefOffset(OFFSET_HALO3_PF_OBJECT_NEW, 0x341AE8) // int (data*)
DefOffset(OFFSET_HALO3_PF_OBJECT_POST_CREATE, 0x1EA04) // (int object) - called by the engine after object_new

// spawning (mcc/spawn), with the three above and OFFSET_HALO3_PV_TAGS_HEADER / OFFSET_HALO3_PV_TAG_NAMES
DefOffset(OFFSET_HALO3_PV_TAG_BASE, 0x1FCF4C8) // tag data = base + (instance address << 2)
DefOffset(OFFSET_HALO3_PV_SCENARIO, 0xA46A08) // scenario tag data*
DefOffset(OFFSET_HALO3_PF_AI_PLACE, 0x577AA4) // (int ai_index, bool) - ai_scripting_place_internal
DefOffset(OFFSET_HALO3_PF_TAG_LOADED, 0x12C9EC) // bool (int tag): in the loaded zone set (object_new refuses others)
// int (int input user) - the player datum that local user controls, -1: none. The player mapping globals (thread-local
// slot +0x110): input user -> player int[4] at +0x4 (what this reads), player -> input user at +0x74, set together
// at 0xEDF70; output users (views) at +0xB4 on.
DefOffset(OFFSET_HALO3_PF_PLAYER_OF_INPUT_USER, 0xEE0D4)

// c_splitscreen_config::m_config_table; the black-bar patches rewrite entries 8, 9 and 12 (0x8AE150, 0x8AE164, 0x8AE1A0)
DefOffset(OFFSET_HALO3_PV_SPLITSCREEN_TABLE, 0x8AE0B0)//0x8AD0C0

Expand Down
12 changes: 12 additions & 0 deletions lib/game/inc/1.3528.0.0/offset_halo3odst.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ DefOffset(OFFSET_HALO3ODST_PF_ADD_LOCAL_PLAYER, 0xFBFE4)//0xFBEE4
#define OFFSET_HALO3ODST_V_ENTRY_PLAYERS 0x2
#define OFFSET_HALO3ODST_V_ENTRY_PLAYERS_ACTION 0xB

// spawning (mcc/spawn; the Halo 3 functions and globals of the same names, matched by signature and call order)
DefOffset(OFFSET_HALO3ODST_PV_TAGS_HEADER, 0x20F3068)
DefOffset(OFFSET_HALO3ODST_PV_TAG_BASE, 0x2022AA8)
DefOffset(OFFSET_HALO3ODST_PV_TAG_NAMES, 0xA9EFC8)
DefOffset(OFFSET_HALO3ODST_PV_SCENARIO, 0xA9C9B8)
DefOffset(OFFSET_HALO3ODST_PF_OBJECT_PLACEMENT_DATA_NEW, 0x37C954)
DefOffset(OFFSET_HALO3ODST_PF_OBJECT_NEW, 0x37CF34)
DefOffset(OFFSET_HALO3ODST_PF_OBJECT_POST_CREATE, 0x20B80)
DefOffset(OFFSET_HALO3ODST_PF_AI_PLACE, 0x5BE6A0) // (int ai_index, bool); ai index type 4 = a squad's single location
DefOffset(OFFSET_HALO3ODST_PF_TAG_LOADED, 0x14D4C8) // bool (int tag): in the loaded zone set (object_new refuses others)
DefOffset(OFFSET_HALO3ODST_PF_PLAYER_OF_INPUT_USER, 0x108EA8) // as Halo 3's (player mapping globals: slot +0x108, set at 0x108D44)

// c_splitscreen_config::m_config_table; the black-bar patches rewrite entries 8, 9 and 12 (0x8F1FB0, 0x8F1FC4, 0x8F2000)
DefOffset(OFFSET_HALO3ODST_PV_SPLITSCREEN_TABLE, 0x8F1F10)//0x8F1F20

Expand Down
41 changes: 41 additions & 0 deletions lib/game/inc/1.3528.0.0/patterns_halo1.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const OffsetPatterns kHalo1Patterns[] = {
At("40 57 48 83 EC 40 48 C7 44 24 20 FE FF FF FF 48 89 5C 24 50 48 89 6C 24 60 48 89 74 24 68 8B F2", 0x0)}},
{&OFFSET_HALO1_PF_GAME_START, 0x939d0, Code, {
At("40 53 56 57 48 81 EC 50 02 00 00 48 8B 05 ?? ?? ?? ?? 48 33 C4", 0x0)}},
{&OFFSET_HALO1_PF_HS_COMPILE, 0xb21470, Code, {
At("48 89 5C 24 10 48 89 74 24 18 57 48 81 EC 40 04 00 00", 0x0),
Rel("66 89 0D ?? ?? 22 02 48 8B CA 66 89 05 ?? ?? 22 02 E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 00", 0x12, 0x16, 0x0)}},
{&OFFSET_HALO1_PF_4PLAYERS, 0x67492, Code, {
At("85 C0 75 11 C7 05 ?? ?? ?? ?? 04 00 00 00 48 89 35 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01", 0x2)}},
{&OFFSET_HALO1_PF_PAUSE, 0x427978, Code, {
Expand All @@ -16,6 +19,35 @@ const OffsetPatterns kHalo1Patterns[] = {
{&OFFSET_HALO1_PV_PLAYER_COUNT, 0x1b7b910, Data, {
Rel("0F BF 15 ?? ?? ?? ?? 45 33 FF 48 63 F8 45 8D 77 01 41 2B D6", 0x3, 0x7, 0x0),
Rel("0F B7 05 ?? ?? ?? ?? 66 89 81 24 01 00 00 0F B7 8A 58 01 00 00", 0x3, 0x7, 0x0)}},
{&OFFSET_HALO1_PV_PLAYERS, 0x1c40480, Data, {
Rel("48 8B 05 ?? ?? ?? ?? 83 4D FC FF 48 89 45 F0 66 89 7D F8 EB", 0x3, 0x7, 0x0),
Rel("48 8B 35 ?? ?? ?? ?? 33 DB 0F 1F 80 00 00 00 00 44 0F B7 46 22", 0x3, 0x7, 0x0)}},
{&OFFSET_HALO1_PF_TAG_ITERATOR_NEXT, 0xa9b43c, Code, {
At("48 8B 05 ?? ?? ?? ?? 83 CA FF 44 0F BF 41 08 4C 8B C9 44 8B 58 0C", 0x0),
Rel("C7 44 24 68 74 69 6E 75 E8 ?? ?? ?? ?? 41 BE 08 00 00 00 EB", 0x9, 0xd, 0x0)}},
{&OFFSET_HALO1_PF_TAG_GET_NAME, 0xa9b25c, Code, {
At("48 8B 05 ?? ?? ?? ?? 48 0F BF D1 48 C1 E2 05 48 63 4C 02 10", 0x0),
Rel("E8 ?? ?? ?? ?? 48 89 46 50 48 8B CE 41 0F 10 80 80 00 00 00", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO1_PF_TAG_GET, 0xa9b648, Code, {
At("48 8B 05 ?? ?? ?? ?? 48 0F BF D1 48 C1 E2 05 48 63 4C 02 14", 0x0),
Rel("E8 ?? ?? ?? ?? 4C 8B C0 41 8B D2 48 63 80 E8 02 00 00 85 C0", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO1_PF_OBJECT_PLACEMENT_DATA_NEW, 0xb35ebc, Code, {
At("48 89 5C 24 08 48 89 74 24 10 57 48 83 EC 20 41 8B F0 8B DA", 0x0),
Rel("E8 ?? ?? ?? ?? F2 41 0F 10 45 00 F2 0F 11 45 A3 41 8B 45 08", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO1_PF_OBJECT_NEW, 0xb35f80, Code, {
At("48 83 EC 28 8A 05 ?? ?? ?? ?? 4C 8B C9 F6 D8 45 1B C0 41 83 E0 04", 0x0),
Rel("F3 0F 11 55 B4 E8 ?? ?? ?? ?? 41 83 CB FF 8B D8 41 3B C3 0F 84", 0x6, 0xa, 0x0)}},
{&OFFSET_HALO1_PF_OBJECT_GET_ORIGIN, 0xb37de0, Code, {
At("48 89 5C 24 08 48 89 74 24 10 57 48 83 EC 20 48 8B 35 ?? ?? ?? ?? 4C 8B D2", 0x0),
Rel("E8 ?? ?? ?? ?? F3 0F 10 06 F3 0F 5C 44 24 20 F3 0F 10 4E 04", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO1_PF_OBJECT_TRY_AND_GET, 0xb389a4, Code, {
At("40 53 48 83 EC 20 8B DA 8B D1 48 8B 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 4C 8B D8 33 C0 4D 85 DB 74 ?? 41 0F B6 4B 03", 0x0),
Rel("E8 ?? ?? ?? ?? 83 C9 FF 48 85 C0 0F 45 CB 8B C1 48 83 C4 20", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO1_PF_ACTOR_CUSTOMIZE_UNIT, 0xc01dd0, Code, {
At("48 8B C4 48 89 58 18 55 56 57 41 54 41 55 41 56 41 57 48 81 EC 10 01 00 00", 0x0),
Rel("E8 ?? ?? ?? ?? 8B 06 B9 02 00 00 00 44 88 7C 24 58 45 8B CE", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO1_PF_AI_ATTACH_FREE, 0xbff120, Code, {
At("48 83 EC 68 48 8B 05 ?? ?? ?? ?? 41 BB 02 00 00 00 44 8B C2", 0x0)}},
{&OFFSET_HALO1_PF_SPLIT_GRID, 0xac4108, Code, {
At("48 89 5C 24 08 BB 01 00 00 00 4D 8B D8 44 8B CB", 0x0),
Rel("E8 ?? ?? ?? ?? 44 8B 5C 24 58 41 8B C3 0F AF 44 24 50 3B C3", 0x1, 0x5, 0x0)}},
Expand Down Expand Up @@ -208,4 +240,13 @@ const OffsetPatterns kHalo1Patterns[] = {
{&OFFSET_HALO1_PV_HIDDEN_OBJECT_CAMERA, 0x1b87a20, Data, {
Rel("40 88 35 ?? ?? ?? ?? 48 81 C3 F8 00 00 00 C6 05 ?? ?? ?? ?? 01 66 83 FF 04", 0x3, 0x7, 0x0),
Rel("80 3D ?? ?? ?? ?? 00 74 ?? B8 02 00 00 00 66 39 05 ?? ?? 0D 01 75 ?? 44 39 0D", 0x2, 0x7, 0x0)}},
{&OFFSET_HALO1_PF_HUD_CALCULATE_POINT, 0xb56a58, Code, {
At("48 8B C4 48 89 58 18 48 89 70 20 55 57 41 55 41 56", 0x0),
Rel("E8 ?? ?? ?? ?? 0F B7 45 E2 66 89 45 D2 0F B7 C3 66 03 45 4A", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO1_PV_HUD_VIEWPORT_BOUNDS, 0x29af2f0, Data, {
Rel("0F BF 05 ?? ?? ?? ?? F3 0F 59 D7 0F 5B C0 66 0F 6E C8 0F 5B C9", 0x3, 0x7, 0x0),
Rel("44 0F B7 35 ?? ?? ?? ?? 41 0F B7 F4 8A 84 04 D8 00 00 00 FE C8", 0x4, 0x8, 0x0)}},
{&OFFSET_HALO1_PV_HUD_DRAWING_PLAYER, 0x29af2b8, Data, {
Rel("0F B7 35 ?? ?? ?? ?? B8 03 00 00 00 66 B9 04 00 66 3B F8 75", 0x3, 0x7, 0x0),
Rel("0F BF 0D ?? ?? ?? ?? 89 4D 67 48 8B C8 48 C1 E9 10 48 89 45 6F", 0x3, 0x7, 0x0)}},
};
55 changes: 55 additions & 0 deletions lib/game/inc/1.3528.0.0/patterns_halo2.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const OffsetPatterns kHalo2Patterns[] = {
{&OFFSET_HALO2_PF_COPY_GAME_OPTIONS, 0x39ce0, Code, {
At("40 53 48 81 EC 30 03 00 00 48 8B D1 48 8D 1D ?? ?? ?? ?? 48 8B CB", 0x0),
Rel("48 8B CF E8 ?? ?? ?? ?? 8B 4F 10 E8 ?? ?? ?? ?? B9 10 00 00 00 48 89 05", 0x4, 0x8, 0x0)}},
{&OFFSET_HALO2_PF_HS_COMPILE, 0x6e17c0, Code, {
At("48 89 5C 24 08 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 C0 EE FF FF", 0x0),
Rel("E8 ?? ?? ?? ?? 4C 8B C3 48 8D 4C 24 20 BA C8 00 00 00 FF 15", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO2_PF_ADD_LOCAL_PLAYER, 0x69d2c0, Code, {
At("48 89 5C 24 08 57 48 83 EC 20 48 8B FA 8B D1 48 8B 0D", 0x0),
Rel("E8 ?? ?? ?? ?? FF C3 48 81 C7 D4 00 00 00 83 FB 10 7C ?? E8 ?? ?? ?? ?? E8", 0x1, 0x5, 0x0)}},
Expand Down Expand Up @@ -44,6 +47,44 @@ const OffsetPatterns kHalo2Patterns[] = {
{&OFFSET_HALO2_PV_SCENARIO, 0xe6f768, Data, {
Rel("48 8B 05 ?? ?? ?? ?? 8B DE 48 89 7C 24 68 39 98 10 02 00 00", 0x3, 0x7, 0x0),
Rel("48 8B 05 ?? ?? ?? ?? 33 D2 4C 63 80 6C 01 00 00 41 83 F8 FF", 0x3, 0x7, 0x0)}},
{&OFFSET_HALO2_PV_TAG_INSTANCES, 0x15e4b30, Data, {
Rel("48 8B 05 ?? ?? ?? ?? 48 03 C9 4C 89 7C 24 50 4C 63 74 C8 08", 0x3, 0x7, 0x0),
Rel("66 90 0F B7 C8 48 8B 05 ?? ?? ?? ?? 48 03 C9 48 63 5C C8 08", 0x8, 0xc, 0x0)}},
{&OFFSET_HALO2_PV_TAG_COUNT, 0x15e4b60, Data, {
Rel("0F 29 05 ?? ?? ?? ?? 8B 52 2C E8 ?? ?? ?? ?? 0F B6 F8 84 C0 0F 84 ?? ?? ?? ?? 48 8B 1D", 0x3, 0x7, 0x0),
Rel("48 83 EC 20 33 DB 48 89 1D ?? ?? ?? ?? E8 ?? ?? ?? ?? 39 1D ?? ?? ?? ?? 74 ?? 48 8B 15", 0x14, 0x18, 0x0)}},
{&OFFSET_HALO2_PV_TAG_NAME_OFFSETS, 0x15e4b68, Data, {
Rel("48 8B 05 ?? ?? ?? ?? 48 63 14 90 3B 15 ?? ?? ?? ?? 73 ?? 48 8B C2 48 03 05", 0x3, 0x7, 0x0),
Rel("48 83 EC 20 33 DB 48 89 1D ?? ?? ?? ?? E8 ?? ?? ?? ?? 39 1D ?? ?? ?? ?? 74 ?? 48 8B 15 ?? ?? ?? ??", 0x1d, 0x21, 0x0)}},
{&OFFSET_HALO2_PV_TAG_NAMES, 0x15e4b78, Data, {
Rel("48 8B 05 ?? ?? ?? ?? 48 63 14 90 3B 15 ?? ?? ?? ?? 73 ?? 48 8B C2 48 03 05 ?? ?? ?? ??", 0x19, 0x1d, 0x0),
Rel("48 89 1D ?? ?? ?? ?? 89 1D ?? ?? ?? ?? 88 1D ?? ?? ?? ?? 48 89 1D ?? ?? ?? ?? 48 89 1D ?? ?? ?? ?? E8 ?? ?? ?? ?? 48 8B 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 48 89 1D ?? ?? ?? ?? 48 89 1D ?? ?? ?? ?? 48 83 C4 20", 0x3, 0x7, 0x0)}},
{&OFFSET_HALO2_PV_TAG_BASE, 0xe80ab0, Data, {
Rel("4C 8B 05 ?? ?? ?? ?? 48 89 5C 24 40 48 89 7C 24 50 0F 1F 00", 0x3, 0x7, 0x0),
Rel("48 03 0D ?? ?? ?? ?? 48 0F BF C3 48 C1 E0 06 8B 54 08 34 E8", 0x3, 0x7, 0x0)}},
{&OFFSET_HALO2_PV_SHARED_TAG_BASE, 0xe80ac0, Data, {
Rel("0F B7 C9 0F BA F2 1F 48 03 15 ?? ?? ?? ?? 48 6B C1 38 48 03 C2", 0xa, 0xe, 0x0),
Rel("4C 8B 35 ?? ?? ?? ?? 83 F8 FF 74 ?? 85 C0 79 ?? 8B C8 0F BA F1 1F", 0x3, 0x7, 0x0)}},
{&OFFSET_HALO2_PV_OBJECTS, 0x18b7398, Data, {
Rel("48 89 5C 24 10 56 48 83 EC 20 48 8B 05 ?? ?? ?? ?? 33 DB 8B F1", 0xd, 0x11, 0x0),
Rel("75 ?? 8B DE 48 8B 05 ?? ?? ?? ?? 0F B7 C9 48 69 F9 A0 08 00 00", 0x7, 0xb, 0x0)}},
{&OFFSET_HALO2_PV_OBJECT_MEMORY, 0x18b7360, Data, {
Rel("4C 8D 3C 49 48 8B 0D ?? ?? ?? ?? 42 8B 54 BA 08 E8 ?? ?? ?? ?? 48 8B 15", 0x7, 0xb, 0x0),
Rel("48 8B 0D ?? ?? ?? ?? 8B 54 B2 08 E8 ?? ?? ?? ?? 48 8D 4D D7 4C 8D 48 7C", 0x3, 0x7, 0x0)}},
{&OFFSET_HALO2_PF_OBJECT_GET_ORIGIN, 0x8d6780, Code, {
At("48 89 5C 24 10 48 89 74 24 18 57 48 83 EC 20 48 8B 05 ?? ?? ?? ?? 48 8B FA", 0x0),
Rel("E8 ?? ?? ?? ?? F3 0F 10 55 B4 F3 0F 5C 56 1C F3 0F 10 45 B0", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO2_PF_OBJECT_PLACEMENT_DATA_NEW, 0x8d8880, Code, {
At("48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 48 83 EC 20 41 8B E8 8B DA 33 D2", 0x0),
Rel("E8 ?? ?? ?? ?? F2 0F 10 44 24 20 48 8D 4C 24 30 8B 44 24 28", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO2_PF_OBJECT_NEW, 0x8d79d0, Code, {
At("40 53 55 56 57 41 54 41 55 41 56 41 57 48 81 EC F8 00 00 00 48 C7 44 24 40 FE FF FF FF 48 8B F1", 0x0),
Rel("E8 ?? ?? ?? ?? 83 F8 FF 74 ?? 8B 4F 18 41 B8 04 00 00 00 8B D0", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO2_PF_AI_PLACE, 0x618890, Code, {
At("83 F9 FF 0F 84 ?? ?? ?? ?? 57 48 83 EC 60 8B C1 48 89 5C 24 70", 0x0)}},
{&OFFSET_HALO2_PF_AI_LIVING_COUNT, 0x6198e0, Code, {
At("48 8B C4 53 57 41 56 48 83 EC 60 0F 29 70 D8 44 8B D1", 0x0),
Rel("45 33 C0 E9 ?? ?? ?? ?? BA 02 00 00 00 45 33 C9 45 33 C0 E9", 0x4, 0x8, 0x0)}},
{&OFFSET_HALO2_PF_SPLIT_GRID, 0x7e09d0, Code, {
At("48 89 5C 24 08 BB 01 00 00 00 44 8B D2 44 8B D9", 0x0),
Rel("E8 ?? ?? ?? ?? 44 8B 84 24 E0 00 00 00 48 8D 84 24 C8 00 00 00", 0x1, 0x5, 0x0)}},
Expand Down Expand Up @@ -153,4 +194,18 @@ const OffsetPatterns kHalo2Patterns[] = {
{&OFFSET_HALO2_PF_SABER_OBJECT_HIDE, 0x69ca0, Code, {
At("4C 8B C1 48 85 C9 74 58 44 8B 49 0C 41 F6 C1 01 74", 0x0),
Rel("E8 ?? ?? ?? ?? 45 84 E4 0F 84 ?? ?? ?? ?? 48 8B 43 08 48 85 C0 74 ?? 48 8B 00", 0x1, 0x5, 0x0)}},
{&OFFSET_HALO2_PF_HUD_ASPECT_LOCK, 0x954df2, Code, {
At("74 3C F3 0F 10 15 ?? ?? ?? ?? 66 0F 6E CF 66 0F 6E C3 0F 5B C9", 0x0)}},
{&OFFSET_HALO2_PV_HUD_ASPECT_LOCK, 0x197ee40, Data, {
Rel("88 05 ?? ?? ?? ?? 48 8B 01 FF 50 60 8B 54 24 54 8B 4C 24 50", 0x2, 0x6, 0x0),
Rel("38 15 ?? ?? ?? ?? 44 0F B7 C2 74 ?? F3 0F 10 15 ?? ?? ?? ?? 66 0F 6E CF 66 0F 6E C3", 0x2, 0x6, 0x0)}},
{&OFFSET_HALO2_PV_HUD_DRAWING_PLAYER, 0x165c398, Data, {
Rel("8B 0D ?? ?? ?? ?? F3 0F 59 C6 F3 0F 11 44 24 50 F2 0F 10 00", 0x2, 0x6, 0x0),
Rel("48 63 35 ?? ?? ?? ?? 8B CE 48 89 7C 24 60 0F 29 74 24 50 E8", 0x3, 0x7, 0x0)}},
{&OFFSET_HALO2_PV_HUD_VIEW_BOUNDS, 0x165c298, Data, {
Rel("66 41 F7 D8 48 8B 05 ?? ?? ?? ?? 66 F7 DA 48 89 44 24 50 E8", 0x7, 0xb, 0x0),
Rel("0F BF 15 ?? ?? ?? ?? 41 8B F0 45 8B E1 44 8B DA 41 8B FA 66 0F 6E C8", 0x3, 0x7, 0x0)}},
{&OFFSET_HALO2_PV_HUD_UNIT_SCALE, 0xe14f28, Data, {
Rel("F3 0F 11 0D ?? ?? ?? ?? 4C 8D 9C 24 A0 04 00 00 49 8B 73 18", 0x4, 0x8, 0x0),
Rel("0F 5B C0 F3 0F 59 05 ?? ?? ?? ?? F3 0F 2C C0 48 83 C4 28 C3", 0x7, 0xb, 0x0)}},
};
Loading
Loading