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

◆ UpdateAllOverheatingParticles()

void InventoryItem::UpdateAllOverheatingParticles ( )
inlineprivate

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

628 {
630 {
631 float overheat_coef = GetOverheatingCoef();
632 int count = m_OverheatingParticles.Count();
633
634 for (int i = count; i > 0; --i)
635 {
636 int id = i - 1;
637 OverheatingParticle OP = m_OverheatingParticles.Get(id);
638 Particle p = OP.GetParticle();
639
640 float overheat_min = OP.GetOverheatingLimitMin();
641 float overheat_max = OP.GetOverheatingLimitMax();
642
643 if (overheat_coef < overheat_min && overheat_coef >= overheat_max)
644 {
645 if (p)
646 {
647 p.Stop();
648 OP.RegisterParticle(null);
649 }
650 }
651 }
652 }
653 }
ref array< ref OverheatingParticle > m_OverheatingParticles
Определения ItemBase.c:113
float GetOverheatingCoef()
Определения ItemBase.c:619
float GetOverheatingLimitMax()
Определения WeaponParticles.c:417
float GetOverheatingLimitMin()
Определения WeaponParticles.c:412
Particle GetParticle()
Определения WeaponParticles.c:397
void RegisterParticle(Particle p)
Определения WeaponParticles.c:392
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
Определения Particle.c:266

Перекрестные ссылки GetOverheatingCoef(), OverheatingParticle::GetOverheatingLimitMax(), OverheatingParticle::GetOverheatingLimitMin(), OverheatingParticle::GetParticle(), m_OverheatingParticles, OverheatingParticle::RegisterParticle() и Particle::Stop().