From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Mon, 2 Oct 2023 21:43:38 +0000 (+0100) Subject: Play sound when filling ammo (#20691) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=be55f9a825000099eca5660708797765b1b01b5e;p=space-station-14.git Play sound when filling ammo (#20691) Co-authored-by: deltanedas <@deltanedas:kde.org> --- 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); }