Kill Feed - Option To Show Only Player Names

For the kill feed, it would be helpful to have an option to only show the player names (bot1 killed bot2), without any mention of the abilities or equipment.

1 Like

In the Lua script of the kill feed, I'm sure you know one could manually go in and delete the part of the string that include abilities and equipment names. Would adding the option be mostly for convenience out of the box?

In KillFeedControllerServer.lua you can change the OnPlayerDied function from this:

function OnPlayerDied(player, damage)
	if damage.sourceAbility then
		local equipment = damage.sourceAbility:FindAncestorByType("Equipment")

		if SHOW_EQUIPMENT_NAME and equipment then
			Events.BroadcastToAllPlayers("KF", damage.sourcePlayer, player, equipment.id)
		else
			Events.BroadcastToAllPlayers("KF", damage.sourcePlayer, player, damage.sourceAbility.id)
		end
	else
		Events.BroadcastToAllPlayers("KF", damage.sourcePlayer, player, nil)
	end
end

To This:

function OnPlayerDied(player, damage)
	Events.BroadcastToAllPlayers("KF", damage.sourcePlayer, player, nil)
end
1 Like