14 int playerID, killfeedType, isreceive;
15 string killfeedChangedTo =
"UNKNOWN";
16 data.GetParams(playerID, killfeedType, isreceive);
18 BaseGameMode gameMode =
GetGame().GetGameMode();
20 return super.GetText(
data);
22 SCR_NotificationSenderComponent notificationSender = SCR_NotificationSenderComponent.Cast(gameMode.FindComponent(SCR_NotificationSenderComponent));
23 if (!notificationSender)
24 return super.GetText(
data);
27 if (isreceive ==
false)
29 array<ref SCR_NotificationKillfeedTypeName> killFeedTypeNames =
new array<ref SCR_NotificationKillfeedTypeName>;
30 notificationSender.GetKillFeedTypeNames(killFeedTypeNames);
32 foreach (SCR_NotificationKillfeedTypeName killfeed: killFeedTypeNames)
34 if (killfeed.GetKillfeedType() == killfeedType)
36 killfeedChangedTo = killfeed.GetName();
44 array<ref SCR_NotificationKillfeedreceiveTypeName> killFeedReceiveTypeNames =
new array<ref SCR_NotificationKillfeedreceiveTypeName>;
45 notificationSender.GetKillFeedReceiveTypeNames(killFeedReceiveTypeNames);
49 if (killfeed.GetKillfeedReceiveType() == killfeedType)
51 killfeedChangedTo = killfeed.GetName();
58 data.GetNotificationTextEntries(playerName);
59 if (!GetPlayerName(playerID, playerName))
62 data.SetNotificationTextEntries(playerName, killfeedChangedTo);
63 return super.GetText(
data);