7 protected ref array<string> m_aHitZoneNames;
9 protected ref array<HitZone> m_aHitZones;
15 #ifdef SHOW_DMG_INDICATORS_ERROR
19 #ifdef SHOW_DMG_INDICATORS_WARNING
26 m_bIsBlinking =
false;
30 SCR_WheelHitZone wheelHitZone;
31 foreach (
HitZone hitZone : m_aHitZones)
37 wheelHitZone = SCR_WheelHitZone.Cast(hitZone);
38 if (wheelHitZone && wheelHitZone.GetWheelIndex() < 0)
42 if (hitZone.GetDamageOverTime(
EDamageType.FIRE) > 0)
49 damageState = hitZone.GetDamageState();
60 override bool DisplayStartDrawInit(IEntity owner)
69 if (m_aHitZoneNames.IsEmpty())
71 HitZone hitZone = damageManager.GetDefaultHitZone();
73 m_aHitZones = {hitZone};
78 array<string> hitzoneNames = {};
79 foreach (
string name : m_aHitZoneNames)
82 hitzoneNames.Insert(name);
87 array<HitZone> hitZones = {};
88 damageManager.GetAllHitZones(hitZones);
90 foreach (
HitZone hitZone : hitZones)
92 name = hitZone.GetName();
94 if (hitzoneNames.Contains(name))
95 m_aHitZones.Insert(hitZone);
99 if (m_aHitZones.IsEmpty())
106 return super.DisplayStartDrawInit(owner);
110 override void DisplayStopDraw(IEntity owner)