mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* Replace WithVolume() with AddVolume(), Remove AudioHelpers.WithVariation(), Use specifier options for audio params * Undo switching to AudioParams.AddVariation() * Replace AudioHelpers.WithVariation with AudioParams.AddVariation() * Test AudioParams.AddVariation() and change input parameters to sound like previous AudioHelpers.WithVariation() * Fix build error * Fix build error v2 * Remove DoAfter * fixes --------- Co-authored-by: AJCM-git <ajcm_mail@disroot.org>
23 lines
663 B
C#
23 lines
663 B
C#
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Weapons.Misc;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
|
|
public sealed partial class ForceGunComponent : BaseForceGunComponent
|
|
{
|
|
/// <summary>
|
|
/// Maximum distance to throw entities.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float ThrowDistance = 15f;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public float ThrowForce = 30f;
|
|
|
|
[DataField("soundLaunch")]
|
|
public SoundSpecifier? LaunchSound = new SoundPathSpecifier("/Audio/Weapons/soup.ogg")
|
|
{
|
|
Params = AudioParams.Default.AddVolume(5f),
|
|
};
|
|
}
|