Фиксы педальных фич (#210)

* Aghost invisibility fixes

* Fix naming and bwoink volume on load
This commit is contained in:
Aviu00
2023-07-18 14:58:29 +03:00
committed by Aviu00
parent 3f8ff32206
commit 3acd057756
9 changed files with 60 additions and 13 deletions

View File

@@ -13,6 +13,7 @@ using Content.Shared.Mind;
using Content.Shared.Mobs.Systems;
using Content.Shared.Pointing;
using Content.Shared.Popups;
using Content.Shared.White.Administration;
using JetBrains.Annotations;
using Robust.Server.GameObjects;
using Robust.Server.Player;
@@ -117,6 +118,11 @@ namespace Content.Server.Pointing.EntitySystems
return false;
}
if (TryComp(pointed, out InvisibilityComponent? invisibility) && invisibility.Invisible) // WD
{
return false;
}
if (HasComp<PointingArrowComponent>(pointed))
{
// this is a pointing arrow. no pointing here...