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

◆ EOnPostSimulate()

void FireplaceBase::EOnPostSimulate ( IEntity other,
float timeSlice )
inlineprotected

We remove the stones when the fireplace has some and starts falling as droping so many items at once can cause performance issues

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

67 {
68 super.EOnPostSimulate(other,timeSlice);
69
71 {
74 ItemBase attachedStones = ItemBase.Cast(GetAttachmentByType(ATTACHMENT_STONES));
75 if (attachedStones)
76 {
77 g_Game.ObjectDelete(attachedStones);
78 }
79
80 if (HasAnyAttachmentsOrCargo())
81 MiscGameplayFunctions.ThrowAllItemsInInventory(this, ThrowEntityFlags.NONE);
82
84 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(g_Game.ObjectDelete, DELETE_CHECK_DELAY, false, this);
86 }
87 }
DayZGame g_Game
Определения DayZGame.c:4074
ATTACHMENT_STONES
Определения FireplaceBase.c:201
void DestroyAreaDamage()
Определения FireplaceBase.c:2363
class GP5GasMask extends MaskBase ItemBase
ThrowEntityFlags
Определения MiscGameplayFunctions.c:208
bool m_ContactEventProcessing
Определения Fireplace.c:3
bool m_ContactDeletionProcessing
Определения Fireplace.c:4
const int CALL_CATEGORY_SYSTEM
Определения 3_Game/DayZ/tools/tools.c:8

Перекрестные ссылки ATTACHMENT_STONES, CALL_CATEGORY_SYSTEM, DestroyAreaDamage(), g_Game, m_ContactDeletionProcessing и m_ContactEventProcessing.