8 [
Attribute(
desc:
"Config to get the correct hitzone group names from. It will always send over one group so it could be that a group contains multiple hitzone groups in the final notification")]
11 [
Attribute(
desc:
"Config to get the correct damage intensity string")]
12 protected ref SCR_DamageIntensityHolder m_DamageIntensityHolder;
14 [
Attribute(
"0",
desc:
"If true will get Character name (first, alias and surname) if the entity is a NPC otherwise will get the entity type name eg: Rifleman")]
15 protected bool m_bGetCharacterName;
20 if (!m_HitZoneGroupNameHolder)
22 Print(
"'SCR_NotificationSupportStationHitZoneGroup' notification: '" +
typename.EnumToString(
ENotification, m_NotificationKey) +
"' is missing the HitzoneGroupDataHolder!", LogLevel.ERROR);
26 if (!m_DamageIntensityHolder)
28 Print(
"'SCR_NotificationSupportStationHitZoneGroup' notification: '" +
typename.EnumToString(
ENotification, m_NotificationKey) +
"' is missing the DamageIntensityHolder!", LogLevel.ERROR);
32 int entityID, hitZoneGroup, health;
33 data.GetParams(entityID, hitZoneGroup, health);
37 data.GetNotificationTextEntries(entityName);
38 if (!GetEditableEntityName(entityID, entityName, m_bGetCharacterName))
42 string hitZoneGroupString = m_HitZoneGroupNameHolder.GetHitZoneGroupName(hitZoneGroup);
44 float healthScaled = health * 0.001;
45 SCR_UIName intensityUIInfo = m_DamageIntensityHolder.GetValidIntensityUIInfo(healthScaled);
49 string hitZoneDamageIntensity = intensityUIInfo.GetName();
51 data.SetNotificationTextEntries(entityName, hitZoneGroupString, hitZoneDamageIntensity);
52 return super.GetText(
data);