fish-station/Content.Shared/Fluids/Components/SprayComponent.cs
beck-thompson 68ca82cfd7
Add water flower for clowns (#41469)
* Spray!

* Add to clown loadout

* Fix the easy things

* lot nicer

* spray update..

* Fix yaml

* fixes

* changed it to warning!

* review

* review

* sku
2025-12-01 01:31:12 +00:00

44 lines
1.3 KiB
C#

using Content.Shared.FixedPoint;
using Content.Shared.Fluids.EntitySystems;
using Robust.Shared.Audio;
using Robust.Shared.Prototypes;
namespace Content.Shared.Fluids.Components;
[RegisterComponent]
[Access(typeof(SharedSpraySystem))]
public sealed partial class SprayComponent : Component
{
public const string SolutionName = "spray";
[ViewVariables(VVAccess.ReadWrite), DataField]
public FixedPoint2 TransferAmount = 10;
[ViewVariables(VVAccess.ReadWrite), DataField]
public float SprayDistance = 3.5f;
[ViewVariables(VVAccess.ReadWrite), DataField]
public float SprayVelocity = 3.5f;
[ViewVariables(VVAccess.ReadWrite), DataField]
public EntProtoId SprayedPrototype = "Vapor";
[ViewVariables(VVAccess.ReadWrite), DataField]
public int VaporAmount = 1;
[ViewVariables(VVAccess.ReadWrite), DataField]
public float VaporSpread = 90f;
/// <summary>
/// How much the player is pushed back for each spray.
/// </summary>
[DataField]
public float PushbackAmount = 5f;
[DataField(required: true)]
[Access(typeof(SharedSpraySystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
public SoundSpecifier SpraySound { get; private set; } = default!;
[DataField]
public LocId SprayEmptyPopupMessage = "spray-component-is-empty-message";
}