mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
added pricegun sound Co-authored-by: dylanhunter <dylan2.whittingham@live.uwe.ac.uk> (cherry picked from commit 39ee8538015dc84aab976e0e8f6276844f71ae42)
23 lines
735 B
C#
23 lines
735 B
C#
using Content.Shared.Cargo.Components;
|
|
using Content.Shared.Timing;
|
|
using Content.Shared.Cargo.Systems;
|
|
|
|
namespace Content.Client.Cargo.Systems;
|
|
|
|
/// <summary>
|
|
/// This handles...
|
|
/// </summary>
|
|
public sealed class ClientPriceGunSystem : SharedPriceGunSystem
|
|
{
|
|
[Dependency] private readonly UseDelaySystem _useDelay = default!;
|
|
|
|
protected override bool GetPriceOrBounty(Entity<PriceGunComponent> entity, EntityUid target, EntityUid user)
|
|
{
|
|
if (!TryComp(entity, out UseDelayComponent? useDelay) || _useDelay.IsDelayed((entity, useDelay)))
|
|
return false;
|
|
|
|
// It feels worse if the cooldown is predicted but the popup isn't! So only do the cooldown reset on the server.
|
|
return true;
|
|
}
|
|
}
|