From 5f71fc1ea12ad88412085d739cc155bf49d96263 Mon Sep 17 00:00:00 2001 From: Alex Evgrashin Date: Tue, 8 Nov 2022 19:54:19 +0100 Subject: [PATCH] Ignore falling body sound on component startup (#12455) * Fix dead bodies fall sound * Remove prediction flag --- Content.Shared/Standing/StandingStateSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Standing/StandingStateSystem.cs b/Content.Shared/Standing/StandingStateSystem.cs index 5660caa5b6..f646f91de4 100644 --- a/Content.Shared/Standing/StandingStateSystem.cs +++ b/Content.Shared/Standing/StandingStateSystem.cs @@ -101,7 +101,9 @@ namespace Content.Shared.Standing } } - if (!_gameTiming.IsFirstTimePredicted) + // check if component was just added or streamed to client + // if true, no need to play sound - mob was down before player could seen that + if (standingState.LifeStage <= ComponentLifeStage.Starting) return true; if (playSound)