mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* 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>
25 lines
599 B
C#
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;
|
|
}
|