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

◆ GetSoundBuilder() [1/2]

override SoundObjectBuilder DayZPlayerTypeAttachmentSoundLookupTableImpl::GetSoundBuilder ( int eventId,
int pMovement,
int pSurfaceHash,
AnimBootsType pBoots )

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

139 {
140 SoundLookupTable table = m_pSoundTables.Get((slotName + eventId).Hash());
141 if(table == NULL)
142 return NULL;
143
144 SoundObjectBuilder soundBuilder = table.GetSoundBuilder(attachmentHash);
145 if(soundBuilder == NULL)
146 return NULL;
147
148 return soundBuilder;
149 }
150
152 {
153 if(m_instance == NULL)
155
156 return m_instance;
157 }
158
162}
163
164
165
166
167class DayZPlayerTypeVoiceSoundLookupTableImpl extends DayZPlayerTypeVoiceSoundLookupTable
168{
170 {
171 // this produces 2 maps:
172 // 1) map where the key is 'ID' of anim event and the value is sound lookup table
173 // 2) map of unique lookup table instances where the table name hash is a key, and a lookup table is the value
176
177 string cfgPath = "CfgVehicles SurvivorBase AnimEvents SoundVoice ";
178 int childCount = g_Game.ConfigGetChildrenCount(cfgPath);
179 //Print("childCount:" + childCount);
180 for(int i = 0; i < childCount; i++)
181 {
182 string defName;
183 g_Game.ConfigGetChildName(cfgPath, i, defName);
184 string defPath = cfgPath + defName + " ";
185
186 int id = g_Game.ConfigGetInt(defPath + "id");
187
188 string tableName;
189 g_Game.ConfigGetText(defPath + "soundLookupTable", tableName);
190
PlayerSpawnPreset slotName
map
Определения ControlsXboxNew.c:4
static ref AnimSoundObjectBuilderBank m_instance
Определения DayZAnimEventMaps.c:217
DayZGame g_Game
Определения DayZGame.c:3942
class DayZPlayerTypeStepSoundLookupTableImpl extends DayZPlayerTypeStepSoundLookupTable DayZPlayerTypeAttachmentSoundLookupTableImpl()
Определения DayZPlayerCfgSounds.c:105
autoptr map< int, StepSoundLookupTable > m_pSoundTables
Определения DayZPlayerCfgSounds.c:202
static DayZPlayerTypeStepSoundLookupTableImpl GetInstance()
Определения DayZPlayerCfgSounds.c:192
autoptr map< int, ref StepSoundLookupTable > m_pSoundTableInstances
Определения DayZPlayerCfgSounds.c:201
void DayZPlayerTypeVoiceSoundLookupTableImpl()
Определения DayZPlayerCfgSounds.c:169
SoundObjectBuilder GetSoundBuilder(int parameterHash)
Определения DayZAnimEventMaps.c:53
Определения CachedEquipmentStorage.c:4
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)