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

◆ GetSoundSetForEvent()

string GetSoundSetForEvent ( int id,
int slotId = InventorySlots.INVALID )
protected

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

88 {
89 string soundSet;
90 InventoryItemType itemType = m_Parent.GetInventoryItemType();
91
92 switch (id)
93 {
94 case SoundConstants.ITEM_ATTACH:
95 {
96 if (itemType)
97 soundSet = itemType.GetSlotAttachSoundSet(slotId);
98 break;
99 }
100 case SoundConstants.ITEM_DETACH:
101 {
102 if (itemType)
103 soundSet = itemType.GetSlotDetachSoundSet(slotId);
104 break;
105 }
106 default:
107 {
108 soundSet = m_AvailableSoundsets[id];
109 break;
110 }
111 }
112 return soundSet;
113 }
void InventoryItemType()
Entity m_Parent
Определения CachedEquipmentStorageBase.c:15
ref map< int, string > m_AvailableSoundsets
Определения ItemSoundHandler.c:28

Перекрестные ссылки InventoryItemType(), m_AvailableSoundsets и m_Parent.

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