MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Items_SetCurrentEntityHud

Method Items_SetCurrentEntityHud

ogsr_engine/xrGame/Inventory.cpp:1101–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099}
1100
1101void CInventory::Items_SetCurrentEntityHud(bool current_entity)
1102{
1103 TIItemContainer::iterator it;
1104 for (it = m_all.begin(); m_all.end() != it; ++it)
1105 {
1106 PIItem pIItem = *it;
1107 CWeapon* pWeapon = smart_cast<CWeapon*>(pIItem);
1108 if (pWeapon)
1109 {
1110 pWeapon->InitAddons();
1111 pWeapon->UpdateAddonsVisibility();
1112 }
1113 }
1114};
1115
1116// call this only via Actor()->SetWeaponHideState()
1117void CInventory::SetSlotsBlocked(u16 mask, bool bBlock, bool now)

Callers 4

IR_OnKeyboardPressMethod · 0.80
On_B_NotCurrentEntityMethod · 0.80
restore_actorFunction · 0.80

Calls 4

beginMethod · 0.45
endMethod · 0.45
InitAddonsMethod · 0.45

Tested by

no test coverage detected