2023-12-29 04:47:43 -08:00
|
|
|
using Content.Shared.Chemistry.Components;
|
2023-04-10 15:37:03 +10:00
|
|
|
using Content.Shared.FixedPoint;
|
|
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Fluids.Components
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Puddle on a floor
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(SharedPuddleSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class PuddleComponent : Component
|
2023-04-10 15:37:03 +10:00
|
|
|
{
|
2024-03-03 00:36:36 -05:00
|
|
|
[DataField]
|
2023-04-10 15:37:03 +10:00
|
|
|
public SoundSpecifier SpillSound = new SoundPathSpecifier("/Audio/Effects/Fluids/splat.ogg");
|
|
|
|
|
|
2024-03-03 00:36:36 -05:00
|
|
|
[DataField]
|
2023-04-10 15:37:03 +10:00
|
|
|
public FixedPoint2 OverflowVolume = FixedPoint2.New(20);
|
|
|
|
|
|
|
|
|
|
[DataField("solution")] public string SolutionName = "puddle";
|
2023-12-29 04:47:43 -08:00
|
|
|
|
2025-04-20 14:27:12 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// Default minimum speed someone must be moving to slip for all reagents.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public float DefaultSlippery = 5.5f;
|
|
|
|
|
|
2025-01-12 07:22:29 +11:00
|
|
|
[ViewVariables]
|
2023-12-29 04:47:43 -08:00
|
|
|
public Entity<SolutionComponent>? Solution;
|
2023-04-10 15:37:03 +10:00
|
|
|
}
|
|
|
|
|
}
|