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

◆ DayZPlayerTypeStepSoundLookupTableImpl()

void DayZPlayerTypeAttachmentSoundLookupTableImpl::DayZPlayerTypeStepSoundLookupTableImpl ( )

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

106 {
109
110 string attachCfgPath = "CfgVehicles SurvivorBase AnimEvents Attachments ";
111 int attachCount = g_Game.ConfigGetChildrenCount(attachCfgPath);
112 for(int i = 0; i < attachCount; i++)
113 {
114 string defName;
115 g_Game.ConfigGetChildName(attachCfgPath, i, defName);
116 string defPath = attachCfgPath + defName + " ";
117
118 string slotName;
119 g_Game.ConfigGetText(defPath + "slot", slotName);
120
121 int id = g_Game.ConfigGetInt(defPath + "id");
122
123 string tableName;
124 g_Game.ConfigGetText(defPath + "soundLookupTable", tableName);
125
126 AttachmentSoundLookupTable table = m_pSoundTableInstances.Get(tableName.Hash());
127 if(table == NULL)
128 {
129 table = new AttachmentSoundLookupTable();
130 table.LoadTable(tableName);
131 m_pSoundTableInstances.Insert(tableName.Hash(), table);
132 }
133
PlayerSpawnPreset slotName
map
Определения ControlsXboxNew.c:4
DayZGame g_Game
Определения DayZGame.c:3942
autoptr map< int, StepSoundLookupTable > m_pSoundTables
Определения DayZPlayerCfgSounds.c:202
autoptr map< int, ref StepSoundLookupTable > m_pSoundTableInstances
Определения DayZPlayerCfgSounds.c:201
Определения CachedEquipmentStorage.c:4
proto native int Hash()
Returns hash of string.

Перекрестные ссылки g_Game, string::Hash(), m_pSoundTableInstances, m_pSoundTables и slotName.

Используется в DayZPlayerTypeAttachmentSoundLookupTableImpl() и DayZPlayerTypeRegisterSounds().