Files
tbd-station-14/Content.Shared/Weapons/Misc/ForceGunComponent.cs
slarticodefast 9a7cb00d4e Content fixes for engine PR (#39086)
* content changes for engine PR

* rerun tests
2025-07-22 12:25:28 +02:00

24 lines
664 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.WithVolume(5f),
};
}