Revert "Predicted footstep sounds" (#7068)

This commit is contained in:
metalgearsloth
2022-03-11 14:56:43 +11:00
committed by GitHub
parent dff18251d3
commit 6bf24e748b
8 changed files with 177 additions and 168 deletions

View File

@@ -3,16 +3,15 @@ using Content.Shared.Movement;
using Content.Shared.Movement.Components;
using Content.Shared.Pulling.Components;
using Robust.Client.Player;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Map;
using Robust.Shared.Physics;
using Robust.Shared.Player;
using Robust.Shared.Timing;
namespace Content.Client.Physics.Controllers
{
public sealed class MoverController : SharedMoverController
{
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
public override void UpdateBeforeSolve(bool prediction, float frameTime)
@@ -77,15 +76,5 @@ namespace Content.Client.Physics.Controllers
HandleKinematicMovement(mover, body);
}
protected override Filter GetSoundPlayers(EntityUid mover)
{
return Filter.Local();
}
protected override bool CanSound()
{
return _timing.IsFirstTimePredicted;
}
}
}