MCPcopy Create free account
hub / github.com/JACoders/OpenJK / AS_GetBModelSound

Function AS_GetBModelSound

code/client/snd_ambient.cpp:1151–1163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1149*/
1150
1151sfxHandle_t AS_GetBModelSound( const char *name, int stage ) {
1152 if ( !aSets ) {
1153 return -1;
1154 }
1155
1156 //Stage must be within a valid range
1157 const ambientSet_t *set = aSets->GetSet( name );
1158 if ( !set || stage < 0 || stage > (set->numSubWaves - 1) ) {
1159 return -1;
1160 }
1161
1162 return set->subWaves[stage];
1163}

Callers 1

CL_CgameSystemCallsFunction · 0.70

Calls 1

GetSetMethod · 0.45

Tested by

no test coverage detected