DayZ 1.27
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 = GetGame().ConfigGetChildrenCount(cfgPath);
179 //Print("childCount:" + childCount);
180 for(int i = 0; i < childCount; i++)
181 {
182 string defName;
183 GetGame().ConfigGetChildName(cfgPath, i, defName);
184 string defPath = cfgPath + defName + " ";
185
186 int id = GetGame().ConfigGetInt(defPath + "id");
187
188 string tableName;
189 GetGame().ConfigGetText(defPath + "soundLookupTable", tableName);
190
PlayerSpawnPreset slotName
map
Определения ControlsXboxNew.c:4
static ref AnimSoundObjectBuilderBank m_instance
Определения DayZAnimEventMaps.c:217
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
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native int ConfigGetInt(string path)
Get int value 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.
void DayZPlayerTypeVoiceSoundLookupTableImpl()
Определения DayZPlayerCfgSounds.c:169
SoundObjectBuilder GetSoundBuilder(int parameterHash)
Определения DayZAnimEventMaps.c:53
proto native CGame GetGame()
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)