[Feat] CPR (#11)

* CPR ready

* Cycled DoAfter

* One more check

* last fixes

* Update damage

* some code clean up
This commit is contained in:
HitPanda
2023-05-03 12:12:41 +03:00
committed by Aviu00
parent 7b16d10902
commit d65bc9a0d0
5 changed files with 175 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
using Content.Server.Body.Systems;
using Content.Shared.Damage;
using Robust.Shared.Audio; // WD
namespace Content.Server.Body.Components
{
@@ -60,6 +61,15 @@ namespace Content.Server.Body.Components
public float CycleDelay = 2.0f;
public float AccumulatedFrametime;
// WD start
[DataField("CPRSound")]
public SoundSpecifier CPRSound { get; set; } = new SoundPathSpecifier("/White/Audio/CPR.ogg");
public IPlayingAudioStream? CPRPlayingStream;
public EntityUid? CPRPerformedBy = null;
// WD end
}
}