CHUDState m_hud_item_state, m_nextState incorrect initialization on new game
Created by: yohjimane
Describe the bug
m_hud_item_state and m_nextState initialize with incorrect value eIdle
on new game. The value they should initialize with is eHidden
.
To Reproduce Steps to reproduce the behavior:
- put breakpoint in
CWeapon::OnActiveItem
function, on the first line - Load into new game with debugger enabled
- On initial load when breakpoint is hit, observe CHUDState m_hud_item_state, m_nextState = 0
eIdle
- Switch to a different weapon, observe CHUDState m_hud_item_state, m_nextState = 0
eIdle
- Switch to initial weapon again, observe observe CHUDState m_hud_item_state, m_nextState = 3
eHidden
Expected behavior On initial load, items should have eHidden state. It looks like this logic should work, but it does not.
Screenshots Initial load state:
State after switching to different weapon, and then switching back