dont play equipsound if tryequip got called with silent true
This commit is contained in:
parent
ca1b6d3d5a
commit
a3e7bdea42
|
|
@ -92,7 +92,7 @@ public abstract partial class InventorySystem
|
|||
return false;
|
||||
}
|
||||
|
||||
if(item.EquipSound != null)
|
||||
if(!silent && item.EquipSound != null)
|
||||
SoundSystem.Play(Filter.Pvs(target), item.EquipSound.GetSound(), target, AudioParams.Default.WithVolume(-2f));
|
||||
|
||||
inventory.Dirty();
|
||||
|
|
|
|||
Loading…
Reference in New Issue