]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Play sound when filling ammo (#20691)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Mon, 2 Oct 2023 21:43:38 +0000 (22:43 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 21:43:38 +0000 (13:43 -0800)
Co-authored-by: deltanedas <@deltanedas:kde.org>
Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Ballistic.cs

index 8ad96fda5318df642d927b3e54b0cf1148409b61..de664ee53752119bd704c2d93f230effad85ed8b 100644 (file)
@@ -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);
             }