Page MenuHomeFeedback Tracker

Allow script access to nametag faction check
Reviewed, NormalPublic

Description

m_TagManager.GetTagsInRange seems to filter out players that are not in the same faction as the player. It would be useful for custom game modes to control this via script.

For example a sub-class of SCR_NameTagRulesetBase could have a DetermineFilter(IEntity entity) override with a default implementation that checks the faction, so we can override that in a custom nametag ruleset

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

Geez changed the task status from New to Awaiting internal Testing.Nov 21 2023, 11:09 AM
Geez changed the task status from Awaiting internal Testing to Reviewed.Nov 23 2023, 4:04 PM
Geez added a subscriber: Geez.

Hello AaronStatic.
That is incorrect, TagManager::GetTagsInRange() does not filter anything -> faction test is done within SCR_NameTagDisplay::IsFactionFriendly() so it can be overridden in script