Footstep SFX are played on entity coordinates, instead of following the entity.
This prevents client-side "can't play sound" spam when the entity is NaN'd due to PVS.
This commit is contained in:
@@ -187,7 +187,7 @@ namespace Content.Server.Physics.Controllers
|
||||
SoundSystem.Play(
|
||||
Filter.Pvs(coordinates),
|
||||
_robustRandom.Pick(soundCollection.PickFiles),
|
||||
mover,
|
||||
mover.Transform.Coordinates,
|
||||
sprinting ? AudioParams.Default.WithVolume(0.75f) : null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user