Add defib event, add fields to be able to disable crit defib and do after movement (#28174)
* Add defib event, add fields to be able to disable crit defib and do after movement * Fix check
This commit is contained in:
@@ -60,6 +60,12 @@ public sealed partial class DefibrillatorComponent : Component
|
||||
[DataField("doAfterDuration"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public TimeSpan DoAfterDuration = TimeSpan.FromSeconds(3);
|
||||
|
||||
[DataField]
|
||||
public bool AllowDoAfterMovement = true;
|
||||
|
||||
[DataField]
|
||||
public bool CanDefibCrit = true;
|
||||
|
||||
/// <summary>
|
||||
/// The sound when someone is zapped.
|
||||
/// </summary>
|
||||
|
||||
4
Content.Shared/Medical/TargetDefibrillatedEvent.cs
Normal file
4
Content.Shared/Medical/TargetDefibrillatedEvent.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
namespace Content.Shared.Medical;
|
||||
|
||||
[ByRefEvent]
|
||||
public readonly record struct TargetDefibrillatedEvent(EntityUid User, Entity<DefibrillatorComponent> Defibrillator);
|
||||
Reference in New Issue
Block a user