12 {
13 string pathBase =
"CfgNonAIVehicles " +
GetName() +
" VegetationSounds";
14 if (!
g_Game.ConfigIsExisting(pathBase))
15 return;
16
18
19 int vegSoundsCount =
g_Game.ConfigGetChildrenCount(pathBase);
20 for (int i = 0; i < vegSoundsCount; ++i)
21 {
22 string subclass;
23 g_Game.ConfigGetChildName(pathBase, i, subclass);
24
25 string soundSet = "";
26 g_Game.ConfigGetText(pathBase +
" " + subclass +
" soundSet", soundSet);
27
29 g_Game.ConfigGetIntArray(pathBase +
" " + subclass +
" animEventIds", animEventIds);
30
32
33 if (soundParams.IsValid() && animEventIds.Count() > 0)
34 {
36 foreach (int eventID : animEventIds)
37 {
39 }
40 }
41 }
42 }
proto native owned string GetName()
ref map< int, ref SoundObjectBuilder > m_CustomVegetationSoundsMap
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
class SoundObject SoundParams(string name)