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

Function NPCS_SndTablePrepare

src/SB/Game/zNPCSndTable.cpp:88–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void NPCS_SndTablePrepare(NPCSndTrax* trax)
89{
90 while (trax->typ_sound != NPC_STYP_LISTEND)
91 {
92 U32 sound_hash = xStrHash(trax->nam_sound);
93 if (sound_hash != 0 && iSndLookup(sound_hash) != NULL)
94 {
95 trax->aid_sound = sound_hash;
96 }
97 else
98 {
99 trax->aid_sound = 0;
100 }
101 trax++;
102 }
103}
104
105NPCSndProp* NPCS_SndFindProps(en_NPC_SOUND sndtype)
106{

Callers 10

ParseINIMethod · 0.70
ParseINIMethod · 0.70
ParseINIMethod · 0.70
ParseINIMethod · 0.70
zNPCCommon_ScenePrepareFunction · 0.70
ParseINIMethod · 0.70
FishSoundTablesMethod · 0.70
ParseINIMethod · 0.70
SetupMethod · 0.70
ParseINIMethod · 0.70

Calls 2

iSndLookupFunction · 0.85
xStrHashFunction · 0.50

Tested by

no test coverage detected