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

◆ SetItemOverheatProgress()

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

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

2676 {
2677 float previous = m_OverheatProgress;
2678 m_OverheatProgress = Math.Clamp(val,0,1);
2679
2680 if (m_OverheatProgress >= 1)
2681 {
2682 if (previous < 1)
2684
2685 OnItemOverheat(deltaTime);
2686 }
2687 else if (previous >= 1)
2688 {
2690 }
2691 }
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().