File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ; }
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments