Global ghost hearing (#3954)

* Add global hearing for ghosts

* Fix speech bubbles breaking when out of PVS
This commit is contained in:
ShadowCommander
2021-05-11 01:37:40 -07:00
committed by GitHub
parent 743a12750c
commit 4780179058
2 changed files with 11 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using Content.Client.Interfaces.Chat;
using Robust.Client.Graphics;
using Robust.Client.UserInterface;
@@ -110,6 +110,9 @@ namespace Content.Client.Chat
_verticalOffsetAchieved = MathHelper.Lerp(_verticalOffsetAchieved, VerticalOffset, 10 * args.DeltaSeconds);
}
if (!_senderEntity.Transform.Coordinates.IsValid(_senderEntity.EntityManager))
return;
var worldPos = _senderEntity.Transform.WorldPosition;
worldPos += (0, EntityVerticalOffset);