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

Function G_SoundIndex

code/game/g_utils.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99int G_SoundIndex( const char *name ) {
100 assert( name && name[0] );
101 char stripped[MAX_QPATH];
102 COM_StripExtension(name, stripped, sizeof(stripped));
103
104 return G_FindConfigstringIndex (stripped, CS_SOUNDS, MAX_SOUNDS, qtrue);
105}
106
107int G_EffectIndex( const char *name )
108{

Callers 15

fx_rain_thinkFunction · 0.70
SP_CreateRainFunction · 0.70
Q3_SetLoopSoundFunction · 0.70
G_SetWeaponFunction · 0.70
Q3_SetBobaJetPackFunction · 0.70
Q3_SetSaberActiveFunction · 0.70
Q3_SetSaberBladeActiveFunction · 0.70
PlayIcarusSoundMethod · 0.70
PrecacheSoundMethod · 0.70
PrecacheFromSetMethod · 0.70

Calls 2

G_FindConfigstringIndexFunction · 0.70
COM_StripExtensionFunction · 0.50

Tested by

no test coverage detected