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

◆ SetItemOverheatProgress()

void Entity::SetItemOverheatProgress ( float val,
float deltaTime = 0 )
inlineprotected

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

2630 {
2631 float previous = m_OverheatProgress;
2632 m_OverheatProgress = Math.Clamp(val,0,1);
2633
2634 if (m_OverheatProgress >= 1)
2635 {
2636 if (previous < 1)
2638
2639 OnItemOverheat(deltaTime);
2640 }
2641 else if (previous >= 1)
2642 {
2644 }
2645 }
void OnItemOverheatStart()
override to implement desired overheat behavior on entity
void OnItemOverheat(float deltaTime)
float m_OverheatProgress
Определения EntityAI.c:164
void OnItemOverheatEnd()
note, that the deltaTime could be reverse-calculated and not totally accurate

Перекрестные ссылки Math::Clamp(), m_OverheatProgress, OnItemOverheat(), OnItemOverheatEnd() и OnItemOverheatStart().

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