14 {
15 float volume =
m_Player.m_PlayerStomach.GetStomachVolume();
16 eBadgeLevel lvl =
DetermineBadgeLevel(volume, PlayerConstants.BT_STOMACH_VOLUME_LVL3, PlayerConstants.BT_STOMACH_VOLUME_LVL3, PlayerConstants.BT_STOMACH_VOLUME_LVL3);
17 DisplayElementBadge dis_elm = DisplayElementBadge.Cast(
GetVirtualHud().
GetElement(eDisplayElements.DELM_BADGE_STUFFED));
18
19 if( dis_elm )
20 {
21 dis_elm.SetLevel(lvl);
22 }
23 }
DisplayElementBase GetElement(eDisplayElements element_id)
eBadgeLevel DetermineBadgeLevel(float value, float lvl_1, float lvl_2, float lvl_3)
VirtualHud GetVirtualHud()