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

◆ TerminateCookingSounds()

void TerminateCookingSounds ( ItemBase pItem)
protected

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

382 {
383 Edible_Base edible;
384 if (pItem)
385 {
386 CargoBase cargo = pItem.GetInventory().GetCargo();
387 if (cargo) // cookware
388 {
389 for (int i = 0; i < cargo.GetItemCount(); i++)
390 {
391 edible = Edible_Base.Cast(cargo.GetItem(i));
392 if (edible)
393 {
394 edible.MakeSoundsOnClient(false);
395 }
396 }
397 }
398 else
399 {
400 edible = Edible_Base.Cast(pItem);
401 if (edible)
402 {
403 edible.MakeSoundsOnClient(false);
404 }
405 }
406 }
407 }
proto native int GetItemCount()
proto native EntityAI GetItem(int index)
represents base for cargo storage for entities
Определения Cargo.c:7
void MakeSoundsOnClient(bool soundstate, CookingMethodType cookingMethod=CookingMethodType.NONE)
Определения Edible_Base.c:215
Определения Edible_Base.c:2

Перекрестные ссылки CargoBase::GetItem(), CargoBase::GetItemCount() и Edible_Base::MakeSoundsOnClient().