Files
Delta-v/Content.Server/Resist/CanEscapeInventoryComponent.cs
T
MnemotechnicanandAzzy 1abf205f76 Port carrying & pseudo-item tweaks & features from frontier
* Fix dropping carried entity when walking to a different grid and accidental escape from carrying

* Fix offset carrying

Better fix #1

* Add cancel escape action

* Add a popup shown when you're getting picked up

* Ported bag-carrying stuff (taking someone out of a bag makes you carry them, also allows to insert the carried person into a bag)

* Add sleeping inside bags

* Fix carrying mass contest

* Add the missing file

---------

Co-authored-by: Azzy <azzydev@icloud.com>
2024-05-06 13:21:07 -05:00

25 lines
599 B
C#

using Content.Shared.DoAfter;
namespace Content.Server.Resist;
[RegisterComponent]
public sealed partial class CanEscapeInventoryComponent : Component
{
/// <summary>
/// Base doafter length for uncontested breakouts.
/// </summary>
[DataField("baseResistTime")]
public float BaseResistTime = 5f;
public bool IsEscaping => DoAfter != null;
[DataField("doAfter")]
public DoAfterId? DoAfter;
/// <summary>
/// DeltaV - action to cancel inventory escape. Added dynamically.
/// </summary>
[DataField]
public EntityUid? EscapeCancelAction;
}