Misc audio and related changes for replays (#12578)
This commit is contained in:
@@ -50,7 +50,7 @@ public sealed class NetProbeCartridgeSystem : EntitySystem
|
||||
//Play scanning sound with slightly randomized pitch
|
||||
//Why is there no NextFloat(float min, float max)???
|
||||
var audioParams = AudioParams.Default.WithVolume(-2f).WithPitchScale((float)_random.Next(12, 21) / 10);
|
||||
_audioSystem.Play(component.SoundScan, Filter.Pvs(args.InteractEvent.User), target, audioParams);
|
||||
_audioSystem.PlayEntity(component.SoundScan, args.InteractEvent.User, target, audioParams);
|
||||
_popupSystem.PopupCursor(Loc.GetString("net-probe-scan", ("device", target)), Filter.Entities(args.InteractEvent.User));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user