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

Function zNPC_SNDPlay3D

src/SB/Game/zNPCSupport.cpp:935–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933}
934
935void zNPC_SNDPlay3D(_tageNPCSnd snd, xEnt* ent)
936{
937 if (globals.cmgr)
938 return;
939 if (sNPCSndID[snd] != 0)
940 return;
941 if (sNPCSndFx[snd] == 0)
942 return;
943
944 sNPCSndID[snd] = xSndPlay3D(sNPCSndFx[snd], sNPCSndFxVolume[snd], 0.0f, 0x80, 0, ent, 2.0f,
945 15.0f, SND_CAT_GAME, 0.0f);
946}
947
948void zNPC_SNDStop(_tageNPCSnd snd)
949{

Callers 4

ProcessMethod · 0.85
ResumeMethod · 0.85
EnterMethod · 0.85
PeteAttackBeginMethod · 0.85

Calls 1

xSndPlay3DFunction · 0.70

Tested by

no test coverage detected