From be55f9a825000099eca5660708797765b1b01b5e Mon Sep 17 00:00:00 2001 From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Mon, 2 Oct 2023 22:43:38 +0100 Subject: [PATCH] Play sound when filling ammo (#20691) Co-authored-by: deltanedas <@deltanedas:kde.org> --- .../Weapons/Ranged/Systems/SharedGunSystem.Ballistic.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Ballistic.cs b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Ballistic.cs index 8ad96fda53..de664ee537 100644 --- a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Ballistic.cs +++ b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Ballistic.cs @@ -132,11 +132,12 @@ public abstract partial class SharedGunSystem uid, args.User); - // play sound to be cool SimulateInsertAmmo(ent.Value, uid, Transform(uid).Coordinates); } else { + // play sound to be cool + Audio.PlayPredicted(component.SoundInsert, uid, args.User); SimulateInsertAmmo(ent.Value, args.Target.Value, Transform(args.Target.Value).Coordinates); } -- 2.51.2