From fac7ac3e99f2390f1bfa5946a9b5f270106d5ca6 Mon Sep 17 00:00:00 2001 From: Kantanomo Date: Thu, 2 Nov 2023 20:44:07 -0500 Subject: [PATCH] new_hud structure defenitions --- xlive/Blam/Engine/interface/new_hud.cpp | 5 +++++ xlive/Blam/Engine/interface/new_hud.h | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/xlive/Blam/Engine/interface/new_hud.cpp b/xlive/Blam/Engine/interface/new_hud.cpp index 5026c8cc0..44fa3272d 100644 --- a/xlive/Blam/Engine/interface/new_hud.cpp +++ b/xlive/Blam/Engine/interface/new_hud.cpp @@ -35,6 +35,11 @@ s_hud_scripted_globals* get_hud_scripted_globals(void) return *Memory::GetAddress(0x9765CC, 0x99FBB4); } +s_new_hud_temporary_user_state* get_new_hud_temporary_user_state(const int local_user_index) +{ + return &Memory::GetAddress(0x9766D0, 0)[local_user_index]; +} + bool __cdecl render_ingame_chat_check() { if (H2Config_hide_ingame_chat) diff --git a/xlive/Blam/Engine/interface/new_hud.h b/xlive/Blam/Engine/interface/new_hud.h index a6e6c99ae..7b79b483c 100644 --- a/xlive/Blam/Engine/interface/new_hud.h +++ b/xlive/Blam/Engine/interface/new_hud.h @@ -41,10 +41,20 @@ struct s_new_hud_engine_globals }; CHECK_STRUCT_SIZE(s_new_hud_engine_globals, 564); +struct s_new_hud_temporary_user_state +{ + int8 gap_0[0x20]; + float primary_auto_aim_level; + float secondary_auto_aim_level; + int8 gap_28[0x260]; +}; +CHECK_STRUCT_SIZE(s_new_hud_temporary_user_state, 0x288); + void should_draw_hud_override_set(bool flag); s_new_hud_engine_globals* get_new_hud_engine_globals(void); s_hud_scripted_globals* get_hud_scripted_globals(void); +s_new_hud_temporary_user_state* get_new_hud_temporary_user_state(const int local_user_index); void set_crosshair_scale(float scale); void new_hud_apply_patches();