DayZ 1.30
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 if (soundSet == "")
99 soundSet = m_AvailableSoundsets[id];
100 break;
101 }
102 case SoundConstants.ITEM_DETACH:
103 {
104 if (itemType)
105 soundSet = itemType.GetSlotDetachSoundSet(slotId);
106 if (soundSet == "")
107 soundSet = m_AvailableSoundsets[id];
108 break;
109 }
110 default:
111 {
112 soundSet = m_AvailableSoundsets[id];
113 break;
114 }
115 }
116 return soundSet;
117 }
void InventoryItemType()
Entity m_Parent
Определения CachedEquipmentStorageBase.c:17
ref map< int, string > m_AvailableSoundsets
Определения ItemSoundHandler.c:28

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

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