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

◆ LoadSoundWeaponEvent()

void LoadSoundWeaponEvent ( )
protected

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

407 {
408 string cfgPath = "CfgVehicles SurvivorBase AnimEvents SoundWeapon ";
409
411
412 int soundCount = GetGame().ConfigGetChildrenCount(cfgPath);
413 for(int i = 0; i < soundCount; i++)
414 {
415 string soundName;
416 GetGame().ConfigGetChildName(cfgPath, i, soundName);
417 string soundPath = cfgPath + soundName + " ";
418 AnimSoundEvent soundEvent = new AnimSoundEvent(soundPath);
419 if(soundEvent.IsValid())
420 m_animSoundEventsAttack.Insert(soundEvent);
421 }
422 }
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class 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.
ref array< ref AnimSoundEvent > m_animSoundEventsAttack
Определения dayzplayer.c:593
proto native CGame GetGame()

Перекрестные ссылки CGame::ConfigGetChildName(), CGame::ConfigGetChildrenCount(), GetGame() и m_animSoundEventsAttack.

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