Cheo
Active member
Hello, I stumbled upon a limitation of the PersistentItemMonitor where trying to use the State System to only have grenades displayed while the Grenade state was active (by using a preset that sets Visible to true) led to incoherent results, with the monitor disappearing when exhausting all grenades but reappearing when equipping another weapon. This was caused by UpdateActiveState, and I suggest checking for CanShowUI in its first line, like this :
This fixed the issue on my side, could this please be applied for the next update ? Thanks.
C#:
var active = CanShowUI() && (m_ShowUI && (m_VisibleOnDeath || m_Alive) && (m_AlwaysVisible || forceActive || ShowCount()));
This fixed the issue on my side, could this please be applied for the next update ? Thanks.