13 string pathBase =
"CfgNonAIVehicles " +
GetName() +
" VegetationSounds";
14 if (!
g_Game.ConfigIsExisting(pathBase))
19 int vegSoundsCount =
g_Game.ConfigGetChildrenCount(pathBase);
20 for (
int i = 0; i < vegSoundsCount; ++i)
23 g_Game.ConfigGetChildName(pathBase, i, subclass);
26 g_Game.ConfigGetText(pathBase +
" " + subclass +
" soundSet", soundSet);
29 g_Game.ConfigGetIntArray(pathBase +
" " + subclass +
" animEventIds", animEventIds);
33 if (soundParams.IsValid() && animEventIds.Count() > 0)
36 foreach (
int eventID : animEventIds)