Play sound when filling ammo (#20691)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-10-02 22:43:38 +01:00
committed by GitHub
parent ba71e4f410
commit be55f9a825

View 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);
}