Fix ghost time of death (#43411)

* Use RealTime when setting ghost TimeOfDeath

* Don't pause with RealTime

* Oops. Also get rid of AutoGenerateComponentPause
This commit is contained in:
Tayrtahn
2026-03-30 23:28:24 -04:00
committed by GitHub
parent 74c8fdde72
commit 03b46abef0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ namespace Content.Server.Ghost
}
_eye.RefreshVisibilityMask(uid);
var time = _gameTiming.CurTime;
var time = _gameTiming.RealTime;
component.TimeOfDeath = time;
}
+2 -2
View File
@@ -10,7 +10,7 @@ namespace Content.Shared.Ghost;
/// Handles limiting interactions, using ghost abilities, ghost visibility, and ghost warping.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedGhostSystem))]
[AutoGenerateComponentState(true), AutoGenerateComponentPause]
[AutoGenerateComponentState(true)]
public sealed partial class GhostComponent : Component
{
// Actions
@@ -54,7 +54,7 @@ public sealed partial class GhostComponent : Component
/// May not reflect actual time of death if this entity has been paused,
/// but will give an accurate length of time <i>since</i> death.
/// </remarks>
[DataField, AutoPausedField]
[DataField]
public TimeSpan TimeOfDeath = TimeSpan.Zero;
/// <summary>