CatStation/Content.Shared/Nutrition/Components/CreamPieComponent.cs
slarticodefast 7c60ea97e4
Fix banana creampie visuals, allow station AI to be pied (#43388)
* refactor and fixes

* fix ling transformation

* small fix

* Update Content.Shared/Nutrition/EntitySystems/SharedCreamPieSystem.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

---------

Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com>
2026-04-03 18:16:17 +00:00

39 lines
1.3 KiB
C#

using Content.Shared.Nutrition.EntitySystems;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Nutrition.Components;
/// <summary>
/// Component used for banana cream pies.
/// These can be thrown at someone to stun them and cream their face.
/// </summary>
[Access(typeof(SharedCreamPieSystem))]
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class CreamPieComponent : Component
{
/// <summary>
/// The time being hit by this entity will stun you.
/// </summary>
[DataField, AutoNetworkedField]
public TimeSpan ParalyzeTime = TimeSpan.FromSeconds(1);
/// <summary>
/// The sound to play when hitting something.
/// </summary>
[DataField]
public SoundSpecifier Sound = new SoundCollectionSpecifier("desecration", AudioParams.Default.WithVariation(0.125f));
/// <summary>
/// Has this pie been splatted by hitting something?
/// </summary>
[DataField, AutoNetworkedField]
public bool Splatted = false;
/// <summary>
/// Items in this container will be triggered when the pie hits something.
/// This allows throwable C4 pies or similar.
/// </summary>
[ViewVariables]
public const string PayloadSlotName = "payloadSlot";
}