2025-04-19 11:38:22 +10:00
|
|
|
namespace Content.Shared.CombatMode;
|
|
|
|
|
|
|
|
|
|
[ByRefEvent]
|
|
|
|
|
public record struct DisarmedEvent(EntityUid Target, EntityUid Source, float PushProb)
|
2021-01-09 20:31:34 +01:00
|
|
|
{
|
2025-04-19 11:38:22 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// The entity being disarmed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public readonly EntityUid Target = Target;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The entity performing the disarm.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public readonly EntityUid Source = Source;
|
2021-01-09 20:31:34 +01:00
|
|
|
|
2025-04-19 11:38:22 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Probability for push/knockdown.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public readonly float PushProbability = PushProb;
|
2021-01-09 20:31:34 +01:00
|
|
|
|
2025-04-19 11:38:22 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Prefix for the popup message that will be displayed on a successful push.
|
|
|
|
|
/// Should be set before returning.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PopupPrefix = "";
|
2024-02-21 04:01:45 +00:00
|
|
|
|
2025-04-19 11:38:22 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Whether the entity was successfully stunned from a shove.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsStunned;
|
2024-02-21 04:01:45 +00:00
|
|
|
|
2025-04-19 11:38:22 +10:00
|
|
|
public bool Handled;
|
2021-01-09 20:31:34 +01:00
|
|
|
}
|