8 string path =
"CfgSoundSets";
10 int soundCount =
GetGame().ConfigGetChildrenCount(
path);
12 for (
int i = 1; i < soundCount; i++)
14 string soundClassName;
15 GetGame().ConfigGetChildName(
path, i, soundClassName);
16 m_SoundSetMapIDByID.Insert(i,soundClassName);
17 m_SoundSetMapIDByName.Insert(soundClassName,i);
22 static string GetSoundSetName(
int id)
24 return m_SoundSetMapIDByID.Get(
id);
27 static int GetSoundSetID(
string name)
29 return m_SoundSetMapIDByName.Get(
name);