Play sound when filling ammo (#20691)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
parent
e68e4e8102
commit
075d7bf393
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue