MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / stop

Function stop

src/SB/Game/zTalkBox.cpp:1462–1485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1460namespace
1461{
1462 static void stop()
1463 {
1464 if (!shared.state)
1465 {
1466 return;
1467 }
1468
1469 shared.state->stop();
1470 hide_prompts();
1471 shared.active->MasterTellSlaves(0);
1472 zEntPlayerControlOn((zControlOwner)0x10);
1473 trigger(0x162);
1474
1475 if (shared.cb)
1476 {
1477 shared.cb->on_stop();
1478 }
1479
1480 shared.state = NULL;
1481 deactivate();
1482 shared.sounds.clear();
1483 speak_stop();
1484 unlock_stream();
1485 }
1486} // namespace
1487
1488void ztalkbox::stop_wait(U32 x)

Callers 3

destroyFunction · 0.70
stop_talkMethod · 0.70
update_allMethod · 0.70

Calls 10

deactivateFunction · 0.85
speak_stopFunction · 0.85
unlock_streamFunction · 0.85
MasterTellSlavesMethod · 0.80
hide_promptsFunction · 0.70
zEntPlayerControlOnFunction · 0.70
triggerFunction · 0.70
stopMethod · 0.45
on_stopMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected