make flashes use audio range (#23521)

make flashes use range
This commit is contained in:
Emisse
2024-01-04 05:27:32 -07:00
committed by GitHub
parent ce8252c1f3
commit dfec6a4ac9
2 changed files with 6 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ namespace Content.Server.Flash.Components
[RegisterComponent, Access(typeof(FlashSystem))]
public sealed partial class FlashComponent : Component
{
[DataField("duration")]
[ViewVariables(VVAccess.ReadWrite)]
public int FlashDuration { get; set; } = 5000;
@@ -23,7 +24,10 @@ namespace Content.Server.Flash.Components
[ViewVariables(VVAccess.ReadWrite)]
[DataField("sound")]
public SoundSpecifier Sound { get; set; } = new SoundPathSpecifier("/Audio/Weapons/flash.ogg");
public SoundSpecifier Sound { get; set; } = new SoundPathSpecifier("/Audio/Weapons/flash.ogg")
{
Params = AudioParams.Default.WithVolume(1f).WithMaxDistance(3f)
};
public bool Flashing;
}