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

Method execute

ogsr_engine/xrGame/object_actions.cpp:64–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void CObjectActionShow::execute()
65{
66 inherited::execute();
67 VERIFY(m_item);
68 if (!object().inventory().ActiveItem() || (object().inventory().ActiveItem()->object().ID() != m_item->object().ID()))
69 {
70 CHudItem* hud_item = smart_cast<CHudItem*>(object().inventory().ActiveItem());
71 if (!hud_item)
72 {
73 object().inventory().Slot(m_item);
74 return;
75 }
76 if (!hud_item->IsPending())
77 {
78 if (object().inventory().m_slots[m_item->GetSlot()].m_pIItem)
79 object().inventory().Ruck(object().inventory().m_slots[m_item->GetSlot()].m_pIItem);
80 //. object().inventory().SetActiveSlot(NO_ACTIVE_SLOT);
81 object().inventory().Slot(m_item);
82 }
83 }
84}
85
86//////////////////////////////////////////////////////////////////////////
87// CObjectActionHide

Callers

nothing calls this directly

Calls 15

ActiveItemMethod · 0.80
IsPendingMethod · 0.80
GetAmmoMagSizeMethod · 0.80
can_kill_memberMethod · 0.80
StopedAfterQueueFiredMethod · 0.80
objectFunction · 0.50
objectMethod · 0.45
SlotMethod · 0.45
GetSlotMethod · 0.45
RuckMethod · 0.45
ActivateMethod · 0.45
GetAmmoElapsedMethod · 0.45

Tested by

no test coverage detected