Files
Delta-v/Content.Shared/_DV/Body/Components/CanDoCPRComponent.cs
T
Sir WarockandTobias Berger ebe9f2bf10 Add CPR (#4649)
* 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
2025-11-18 09:30:50 +00:00

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;
}