Adds creampie launcher
This commit is contained in:
@@ -5,6 +5,8 @@ using Content.Shared.Interfaces.GameObjects.Components;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.GameObjects.Components.Nutrition
|
||||
{
|
||||
@@ -13,6 +15,10 @@ namespace Content.Server.GameObjects.Components.Nutrition
|
||||
{
|
||||
public override string Name => "CreamPie";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[field: DataField("paralyzeTime")]
|
||||
public float ParalyzeTime { get; set; } = 1f;
|
||||
|
||||
public void PlaySound()
|
||||
{
|
||||
SoundSystem.Play(Filter.Pvs(Owner), AudioHelpers.GetRandomFileFromSoundCollection("desecration"), Owner,
|
||||
|
||||
Reference in New Issue
Block a user