|
6 | 6 | using Content.Server.Roles.Jobs;
|
7 | 7 | using Content.Server.Warps;
|
8 | 8 | using Content.Shared.Actions;
|
9 |
| -using Content.Shared.Administration; |
10 | 9 | using Content.Shared.Examine;
|
11 | 10 | using Content.Shared.Eye;
|
12 | 11 | using Content.Shared.Follower;
|
|
16 | 15 | using Content.Shared.Mobs.Components;
|
17 | 16 | using Content.Shared.Mobs.Systems;
|
18 | 17 | using Content.Shared.Movement.Events;
|
19 |
| -using Content.Shared.Popups; |
20 | 18 | using Content.Shared.Storage.Components;
|
21 | 19 | using Robust.Server.GameObjects;
|
22 | 20 | using Robust.Server.Player;
|
23 |
| -using Robust.Shared.Console; |
24 | 21 | using Robust.Shared.Physics.Components;
|
25 | 22 | using Robust.Shared.Physics.Systems;
|
26 | 23 | using Robust.Shared.Timing;
|
@@ -357,28 +354,4 @@ public bool DoGhostBooEvent(EntityUid target)
|
357 | 354 | return ghostBoo.Handled;
|
358 | 355 | }
|
359 | 356 | }
|
360 |
| - |
361 |
| - [AnyCommand] |
362 |
| - public sealed class ToggleGhostVisibility : IConsoleCommand |
363 |
| - { |
364 |
| - public string Command => "toggleghosts"; |
365 |
| - public string Description => "Toggles ghost visibility"; |
366 |
| - public string Help => $"{Command}"; |
367 |
| - |
368 |
| - public void Execute(IConsoleShell shell, string argStr, string[] args) |
369 |
| - { |
370 |
| - if (shell.Player == null) |
371 |
| - shell.WriteLine("You can only toggle ghost visibility on a client."); |
372 |
| - |
373 |
| - var entityManager = IoCManager.Resolve<IEntityManager>(); |
374 |
| - |
375 |
| - var uid = shell.Player?.AttachedEntity; |
376 |
| - if (uid == null |
377 |
| - || !entityManager.HasComponent<GhostComponent>(uid) |
378 |
| - || !entityManager.TryGetComponent<EyeComponent>(uid, out var eyeComponent)) |
379 |
| - return; |
380 |
| - |
381 |
| - entityManager.System<EyeSystem>().SetVisibilityMask(uid.Value, eyeComponent.VisibilityMask ^ (int) VisibilityFlags.Ghost, eyeComponent); |
382 |
| - } |
383 |
| - } |
384 | 357 | }
|
0 commit comments