DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ LoadVegetationSounds()

void LoadVegetationSounds ( )
protected

См. определение в файле dayzplayer.c строка 424

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
439 TIntArray animEventIds = new TIntArray;
440 g_Game.ConfigGetIntArray(vegSoundsCfgPath + vegSoundParamName + " animEventIds", animEventIds);
441
442 SoundParams soundParams = new SoundParams(soundSet);
443
444 if (soundParams.IsValid() && animEventIds.Count() > 0)
445 {
446 m_pVegetationSounds.Insert(new VegetationSound(new SoundObjectBuilder(soundParams), animEventIds));
447 }
448 }
449 }
DayZGame g_Game
Определения DayZGame.c:3942
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
void VegetationSound(SoundObjectBuilder soundObjectBuilder, TIntArray animEventIds)
Определения dayzplayer.c:3
ref array< ref VegetationSound > m_pVegetationSounds
Определения dayzplayer.c:584
array< int > TIntArray
Определения EnScript.c:714
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
class SoundObject SoundParams(string name)

Перекрестные ссылки g_Game, m_pVegetationSounds, SoundObjectBuilder(), SoundParams() и VegetationSound().

Используется в DayZPlayerType().