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

Method RunTalkDialog

ogsr_engine/xrGame/actor_communication.cpp:242–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void CActor::RunTalkDialog(CInventoryOwner* talk_partner)
243{
244 //предложить поговорить с нами
245 if (talk_partner->OfferTalk(this))
246 {
247 StartTalk(talk_partner);
248 //только если находимся в режиме single
249 CUIGameSP* pGameSP = smart_cast<CUIGameSP*>(HUD().GetUI()->UIGame());
250 if (pGameSP)
251 {
252 if (pGameSP->MainInputReceiver())
253 Game().StartStopMenu(pGameSP->MainInputReceiver(), true);
254 pGameSP->StartTalk();
255 }
256 }
257}
258
259void CActor::StartTalk(CInventoryOwner* talk_partner, bool)
260{

Callers

nothing calls this directly

Calls 6

OfferTalkMethod · 0.80
UIGameMethod · 0.80
GetUIMethod · 0.80
MainInputReceiverMethod · 0.45
StartStopMenuMethod · 0.45
StartTalkMethod · 0.45

Tested by

no test coverage detected