-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description This is a re implementation and complete rewrite of the original Nyanotrasen CPR feature, this time as its own completely standalone system. Unlike the original CPR, this system requires no modification of base game code, and can be toggled on and off via CVars while the server is running. Fixes #473 Fixes #49 # Changelog :cl: - add: CPR has been added to the game. People with CPR training can now perform CPR on anyone who is in either crit or dead states. - add: CPR Training has been added to the game as a new positive trait. All medical staff start with this trait for free. --------- Signed-off-by: VMSolidus <[email protected]>
- Loading branch information
Showing
17 changed files
with
431 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Content.Shared/Medical/CPR/Components/CPRTrainingComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Robust.Shared.GameStates; | ||
using Content.Shared.DoAfter; | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.Serialization; | ||
|
||
namespace Content.Shared.Medical.CPR | ||
{ | ||
[RegisterComponent, NetworkedComponent] | ||
public sealed partial class CPRTrainingComponent : Component | ||
{ | ||
[DataField] | ||
public SoundSpecifier CPRSound = new SoundPathSpecifier("/Audio/Effects/CPR.ogg"); | ||
|
||
/// <summary> | ||
/// How long the doafter for CPR takes | ||
/// </summary> | ||
[DataField] | ||
public TimeSpan DoAfterDuration = TimeSpan.FromSeconds(3); | ||
|
||
[DataField] | ||
public int AirlossHeal = 6; | ||
|
||
[DataField] | ||
public float CrackRibsModifier = 1f; | ||
public EntityUid? CPRPlayingStream; | ||
} | ||
|
||
[Serializable, NetSerializable] | ||
public sealed partial class CPRDoAfterEvent : SimpleDoAfterEvent | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.