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

Function NPCS_SndTypePlayed

src/SB/Game/zNPCSndTable.cpp:50–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void NPCS_SndTypePlayed(en_NPC_SOUND sndtype, F32 delayNext)
51{
52 F32 tym = 2.0f;
53
54 switch (sndtype)
55 {
56 case NPC_STYP_TIKISTACK:
57 tym = 0.15f;
58 break;
59 case NPC_STYP_TIKIEXPLODE:
60 tym = 2.0f;
61 break;
62 default:
63 tym = -1.0f;
64 break;
65 }
66
67 if (delayNext > 0.0f)
68 {
69 tym = delayNext;
70 }
71
72 g_tmrz_sndplay[sndtype] = tym;
73}
74
75S32 NPCS_SndOkToPlay(en_NPC_SOUND sndtype)
76{

Callers 1

SndStartMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected