Proto-kinetic crusher (#16277)
Co-authored-by: AJCM-git <60196617+AJCM-git@users.noreply.github.com>
This commit is contained in:
@@ -47,8 +47,10 @@ public sealed class RechargeBasicEntityAmmoSystem : EntitySystem
|
||||
|
||||
if (_gun.UpdateBasicEntityAmmoCount(uid, ammo.Count.Value + 1, ammo))
|
||||
{
|
||||
if (_netManager.IsClient && _timing.IsFirstTimePredicted)
|
||||
_audio.Play(recharge.RechargeSound, Filter.Local(), uid, true);
|
||||
// We don't predict this because occasionally on client it may not play.
|
||||
// PlayPredicted will still be predicted on the client.
|
||||
if (_netManager.IsServer)
|
||||
_audio.PlayPvs(recharge.RechargeSound, uid);
|
||||
}
|
||||
|
||||
if (ammo.Count == ammo.Capacity)
|
||||
|
||||
Reference in New Issue
Block a user