@@ -1,7 +1,6 @@
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.Damage.Prototypes;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Robust.Shared.Containers;
|
||||
|
||||
namespace Content.Shared.Blocking;
|
||||
@@ -52,7 +51,7 @@ public sealed partial class BlockingSystem
|
||||
|
||||
if (blocking.IsBlocking)
|
||||
{
|
||||
_audio.PlayPvs(blocking.BlockSound, uid);
|
||||
_audio.PlayPvs(blocking.BlockSound, uid, AudioParams.Default.WithVariation(0.2f));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,11 +57,8 @@ public sealed partial class BlockingComponent : Component
|
||||
/// <summary>
|
||||
/// The sound to be played when you get hit while actively blocking
|
||||
/// </summary>
|
||||
[DataField("blockSound")] public SoundSpecifier BlockSound =
|
||||
new SoundPathSpecifier("/Audio/Weapons/block_metal1.ogg")
|
||||
{
|
||||
Params = AudioParams.Default.WithVariation(0.25f)
|
||||
};
|
||||
[DataField("blockSound")]
|
||||
public SoundSpecifier BlockSound = new SoundPathSpecifier("/Audio/Weapons/block_metal1.ogg");
|
||||
|
||||
/// <summary>
|
||||
/// Fraction of original damage shield will take instead of user
|
||||
|
||||
Reference in New Issue
Block a user