Skip to content

Commit 369099c

Browse files
Updated nicknames
1 parent a8bbaa2 commit 369099c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CameraSystem/CameraSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class CameraSystem : Plugin<Config>
1212
public override string Name => "CameraSystem";
1313
public override string Author => "Jiraya";
1414
public override string Description => "A plugin that allows players to connect to the facility's security camera system via special workstations.";
15-
public override Version Version => new(1, 1, 2);
15+
public override Version Version => new(1, 1, 3);
1616
public override Version RequiredApiVersion => new(LabApiProperties.CompiledVersion);
1717

1818
internal static CameraSystem Instance { get; private set; }

CameraSystem/Models/PlayerSnapshot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal PlayerSnapshot(Player player)
3333
);
3434
Ammo = player.Ammo.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
3535
ArtificialHealth = player.ArtificialHealth;
36-
CustomName = player.DisplayName;
36+
CustomName = player.DisplayName == player.Nickname ? null : player.DisplayName;
3737
CustomInfo = player.CustomInfo;
3838
Emotion = EmotionSync.Database[player.ReferenceHub];
3939
Health = player.Health;

CameraSystem/Models/Watcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ internal void DestroyNpc()
3131

3232
private ReferenceHub SpawnNpc()
3333
{
34-
var hub = DummyUtils.SpawnDummy(PlayerSnapshot.Nickname);
34+
var hub = DummyUtils.SpawnDummy($"{PlayerSnapshot.Nickname} (cams)");
3535
var npcPlayer = Player.Get(hub);
3636
npcPlayer.SetRole(PlayerSnapshot.Role, RoleChangeReason.None, RoleSpawnFlags.None);
3737
npcPlayer.Position = PlayerSnapshot.Position + Vector3.up * 0.1f;
@@ -52,7 +52,7 @@ private ReferenceHub SpawnNpc()
5252

5353
if (!string.IsNullOrEmpty(PlayerSnapshot.CustomName))
5454
{
55-
Timing.CallDelayed(0.1f, () => { npcPlayer.DisplayName = PlayerSnapshot.CustomName; });
55+
Timing.CallDelayed(0.1f, () => { npcPlayer.DisplayName = $"{PlayerSnapshot.CustomName} (cams)"; });
5656
}
5757

5858
return hub;

0 commit comments

Comments
 (0)