Play sound when filling ammo (#20691)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -132,11 +132,12 @@ public abstract partial class SharedGunSystem
|
|||||||
uid,
|
uid,
|
||||||
args.User);
|
args.User);
|
||||||
|
|
||||||
// play sound to be cool
|
|
||||||
SimulateInsertAmmo(ent.Value, uid, Transform(uid).Coordinates);
|
SimulateInsertAmmo(ent.Value, uid, Transform(uid).Coordinates);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// play sound to be cool
|
||||||
|
Audio.PlayPredicted(component.SoundInsert, uid, args.User);
|
||||||
SimulateInsertAmmo(ent.Value, args.Target.Value, Transform(args.Target.Value).Coordinates);
|
SimulateInsertAmmo(ent.Value, args.Target.Value, Transform(args.Target.Value).Coordinates);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user