425 {
427
428 string vegSoundsCfgPath = "CfgVehicles SurvivorBase VegetationSounds ";
429 int vegSoundsCount =
g_Game.ConfigGetChildrenCount(vegSoundsCfgPath);
430
431 for (int v = 0; v < vegSoundsCount; ++v)
432 {
433 string vegSoundParamName;
434 g_Game.ConfigGetChildName(vegSoundsCfgPath, v, vegSoundParamName);
435
436 string soundSet = "";
437 g_Game.ConfigGetText(vegSoundsCfgPath + vegSoundParamName +
" soundSet", soundSet);
438
440 g_Game.ConfigGetIntArray(vegSoundsCfgPath + vegSoundParamName +
" animEventIds", animEventIds);
441
443
444 if (soundParams.IsValid() && animEventIds.Count() > 0)
445 {
447 }
448 }
449 }
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
void VegetationSound(SoundObjectBuilder soundObjectBuilder, TIntArray animEventIds)
ref array< ref VegetationSound > m_pVegetationSounds
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
class SoundObject SoundParams(string name)