ForceGunComponent.cs 1014 B

1234567891011121314151617181920212223242526272829
  1. using Robust.Shared.Audio;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Weapons.Misc;
  4. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
  5. public sealed partial class ForceGunComponent : BaseForceGunComponent
  6. {
  7. /// <summary>
  8. /// Maximum distance to throw entities.
  9. /// </summary>
  10. [ViewVariables(VVAccess.ReadWrite), DataField("throwDistance"), AutoNetworkedField]
  11. public float ThrowDistance = 15f;
  12. [ViewVariables(VVAccess.ReadWrite), DataField("throwForce"), AutoNetworkedField]
  13. public float ThrowForce = 30f;
  14. /// <summary>
  15. /// The entity currently tethered.
  16. /// </summary>
  17. [ViewVariables(VVAccess.ReadWrite), DataField("tethered"), AutoNetworkedField]
  18. public override EntityUid? Tethered { get; set; }
  19. [ViewVariables(VVAccess.ReadWrite), DataField("soundLaunch")]
  20. public SoundSpecifier? LaunchSound = new SoundPathSpecifier("/Audio/Weapons/soup.ogg")
  21. {
  22. Params = AudioParams.Default.WithVolume(5f),
  23. };
  24. }