Ignore falling body sound on component startup (#12455)

* Fix dead bodies fall sound

* Remove prediction flag
This commit is contained in:
Alex Evgrashin
2022-11-08 19:54:19 +01:00
committed by GitHub
parent 448baf111d
commit 5f71fc1ea1

View File

@@ -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)