Only play tool sound if the use goes through
This commit is contained in:
@@ -115,9 +115,12 @@ namespace Content.Server.GameObjects.Components.Interactable
|
||||
|
||||
public virtual bool UseTool(IEntity user, IEntity target, ToolQuality toolQualityNeeded)
|
||||
{
|
||||
if (!HasQuality(toolQualityNeeded) || !ActionBlockerSystem.CanInteract(user))
|
||||
return false;
|
||||
|
||||
PlayUseSound();
|
||||
|
||||
return ActionBlockerSystem.CanInteract(user) && HasQuality(toolQualityNeeded);
|
||||
return true;
|
||||
}
|
||||
|
||||
protected void PlaySoundCollection(string name, float volume=-5f)
|
||||
|
||||
Reference in New Issue
Block a user