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

◆ SetItemOverheatProgress()

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

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 2660

2661 {
2662 float previous = m_OverheatProgress;
2663 m_OverheatProgress = Math.Clamp(val,0,1);
2664
2665 if (m_OverheatProgress >= 1)
2666 {
2667 if (previous < 1)
2669
2670 OnItemOverheat(deltaTime);
2671 }
2672 else if (previous >= 1)
2673 {
2675 }
2676 }
void OnItemOverheatStart()
override to implement desired overheat behavior on entity
void OnItemOverheat(float deltaTime)
float m_OverheatProgress
void OnItemOverheatEnd()
note, that the deltaTime could be reverse-calculated and not totally accurate

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

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