Skip to content

Commit

Permalink
new_hud structure defenitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kantanomo committed Nov 3, 2023
1 parent f6d67b2 commit fac7ac3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xlive/Blam/Engine/interface/new_hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ s_hud_scripted_globals* get_hud_scripted_globals(void)
return *Memory::GetAddress<s_hud_scripted_globals**>(0x9765CC, 0x99FBB4);
}

s_new_hud_temporary_user_state* get_new_hud_temporary_user_state(const int local_user_index)
{
return &Memory::GetAddress<s_new_hud_temporary_user_state*>(0x9766D0, 0)[local_user_index];
}

bool __cdecl render_ingame_chat_check()
{
if (H2Config_hide_ingame_chat)
Expand Down
10 changes: 10 additions & 0 deletions xlive/Blam/Engine/interface/new_hud.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fac7ac3

Please sign in to comment.