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 Debug
parent e68e4e8102
commit 075d7bf393
1 changed files with 2 additions and 1 deletions

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