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

◆ StartItemSoundServer() [2/2]

void StartItemSoundServer ( int id,
int slotId )
protected

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

4437 {
4438 if (!GetGame().IsServer() || id <= 0)
4439 return;
4440
4441 if (!m_SoundEventQueue)
4443
4444 m_SoundEventQueue.Insert(new ItemSoundEvent(id, slotId));
4445
4446 // flush once per frame instead of per-insert (batches multiple sounds)
4447 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Remove(FlushItemSoundQueue);
4448 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(FlushItemSoundQueue);
4449 }
ref array< ref ItemSoundEvent > m_SoundEventQueue
Определения ItemBase.c:121
void FlushItemSoundQueue()
Определения ItemBase.c:4464
Определения ItemBase.c:10
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZGame GetGame()
Определения gameplay.c:636
const int CALL_CATEGORY_SYSTEM
Определения 3_Game/DayZ/tools/tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, FlushItemSoundQueue(), GetGame() и m_SoundEventQueue.

Используется в ShippingContainerKeys_ColorBase::DestroyKeyServer(), OnWasAttached(), OnWasDetached(), CarWheel_Ruined::PlayWheelExlosionSound(), SetQuantity(), StartItemSoundServer(), ItemBase::ToggleAnimation() и UpdateSound().