Scientists spawned with Display Names Show as Scientists...

When using SpawnNCP or the new version ReSpawnNPC, Scientists with Display Names only show as Scientists

Murders/ScareCrows with Display Names show with their Display Names (top Left) ... but Scientists don't (Bottom Right).

And YES I have that setting disabled:

"Show NPC Name As Prefab Name": false,

Scientists Display Name Issues

 

Another strange issue is that the Display Names all have Drop Shadows, the Health & Distance texts do NOT.

And yes, I have played with your code a bit on my server to change how Health & Damage are represented.

Addendum:

I changed the code a bit to more to directly display all the information used in your Ternary operation (just below line 2452) and believe that ReSPawnNPC is somehow NOT setting the Display Name to the NPC -or- Rust is somehow overriding it when it is spawned.

displayName = $"'{config.Options.NpcPrefabName}'/'{target.ShortPrefabName}'/'{target.displayName}'/'{target.UserIDString}'/'{instance.m("scarecrow", userid)}'/'{instance.m(target.ShortPrefabName, userid)}/";

Var Display

As you can see, the Display Name of the NPC is clearly 'Scientist'.

Again, THANX in advance for the most useful plugin for Server Admins!

your npc plugin will have to override displayName in its own npc class or by using harmony, otherwise rust will override it in the ScientistNPC class.

public override string displayName => ScientistName.translated;
nivex

your npc plugin will have to override displayName in its own npc class or by using harmony, otherwise rust will override it in the ScientistNPC class.

public override string displayName => ScientistName.translated;

ThanX ... Suspected Rust was overriding whatever the ReSPawnNPC plugin was doing.

 

And I suspect the Drop-Shadows are another Rust glitch as well. ;)