mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 08:37:26 +00:00
* Add CPR * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Prevent multiple CPRs * Fix small Parenthesize mistake Co-authored-by: Tobias Berger <toby@tobot.dev> Signed-off-by: Sir Warock <67167466+SirWarock@users.noreply.github.com> * Fix Name Paths * Mistake? * Merge branch 'master' into Add-CPR * Update Content.Shared/_DV/Body/Systems/CPRSystem.cs Co-authored-by: Tobias Berger <toby@tobot.dev> Signed-off-by: Sir Warock <67167466+SirWarock@users.noreply.github.com> * Fix Issues seen by Holy Toby * Small Fix
18 lines
566 B
C#
18 lines
566 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared._DV.Body.Components;
|
|
|
|
/// <summary>
|
|
/// Anyone with this component can do CPR to people in critical state.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class CanDoCPRComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The length of the DoAfter.
|
|
/// This decides when the CPR starts to work (After the first Do-After), as well as the frequency of popups.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float TimeLength = 10f;
|
|
}
|