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

◆ UpdateAllOverheatingParticles()

void InventoryItem::UpdateAllOverheatingParticles ( )
inlineprivate

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

638 {
640 {
641 float overheat_coef = GetOverheatingCoef();
642 int count = m_OverheatingParticles.Count();
643
644 for (int i = count; i > 0; --i)
645 {
646 int id = i - 1;
647 OverheatingParticle OP = m_OverheatingParticles.Get(id);
648 Particle p = OP.GetParticle();
649
650 float overheat_min = OP.GetOverheatingLimitMin();
651 float overheat_max = OP.GetOverheatingLimitMax();
652
653 if (overheat_coef < overheat_min && overheat_coef >= overheat_max)
654 {
655 if (p)
656 {
657 p.Stop();
658 OP.RegisterParticle(null);
659 }
660 }
661 }
662 }
663 }
ref array< ref OverheatingParticle > m_OverheatingParticles
Определения ItemBase.c:119
float GetOverheatingCoef()
Определения ItemBase.c:629
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().