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

◆ LoadVegetationSounds()

void LoadVegetationSounds ( )
protected

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

425 {
427
428 string vegSoundsCfgPath = "CfgVehicles SurvivorBase VegetationSounds ";
429 int vegSoundsCount = GetGame().ConfigGetChildrenCount(vegSoundsCfgPath);
430
431 for (int v = 0; v < vegSoundsCount; ++v)
432 {
433 string vegSoundParamName;
434 GetGame().ConfigGetChildName(vegSoundsCfgPath, v, vegSoundParamName);
435
436 string soundSet = "";
437 GetGame().ConfigGetText(vegSoundsCfgPath + vegSoundParamName + " soundSet", soundSet);
438
439 TIntArray animEventIds = new TIntArray;
440 GetGame().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 }
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native void ConfigGetIntArray(string path, out TIntArray values)
Get array of integers from config on path.
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
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
proto native CGame GetGame()
array< int > TIntArray
Определения EnScript.c:687
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
class SoundObject SoundParams(string name)

Перекрестные ссылки CGame::ConfigGetChildName(), CGame::ConfigGetChildrenCount(), CGame::ConfigGetIntArray(), CGame::ConfigGetText(), GetGame(), m_pVegetationSounds, SoundObjectBuilder(), SoundParams() и VegetationSound().

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