MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PriestPlaySoundAtNode

Function PriestPlaySoundAtNode

scripts/Level6.cpp:1312–1328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1310}
1311
1312void PriestPlaySoundAtNode(int node) {
1313 if (node < 0 || node > 16) {
1314 if (Var_PriestPuzzleCurrSoundNode != -1) {
1315 mprintf(0, "!!!!!!!!!!!!STOPPING SOUND (%x)!!!!!!!!!!!!!!!\n", DummyObject);
1316 // OUTaSoundStopObj(DummyObject);
1317 Var_PriestPuzzleCurrSoundNode = -1;
1318 }
1319 } else {
1320 // not all the time...only when it needs to
1321 if (Var_PriestPuzzleCurrSoundNode == -1) {
1322 mprintf(0, "!!!!!!!!!!!!STARTING SOUND(%d,%x)!!!!!!!!!!!!!!!\n", PriestClueSound, DummyObject);
1323 // OUTaSoundPlayObject(PriestClueSound,DummyObject,1.0f);
1324 }
1325 Var_PriestPuzzleCurrSoundNode = node;
1326 }
1327 PriestMoveDummy(node);
1328}
1329
1330/**{CUSTOM_SCRIPT_BLOCK_END}**** DO NOT EDIT! **/
1331// ============================================================

Callers 7

aPriestKeyEnterFunction · 0.85
aPriestKeyExitFunction · 0.85
aPriestKeyRoomChangeFunction · 0.85
PriestJustExitPuzzleFunction · 0.85
PriestResetPuzzleFunction · 0.85
PriestPlayerScrewsUpFunction · 0.85
PriestPlayerSolvesPuzzleFunction · 0.85

Calls 1

PriestMoveDummyFunction · 0.85

Tested by

no test coverage detected