2022-11-09 07:34:07 +11:00
|
|
|
namespace Content.Shared.CombatMode
|
2021-01-09 20:31:34 +01:00
|
|
|
{
|
2022-02-26 18:24:08 +13:00
|
|
|
public sealed class DisarmedEvent : HandledEntityEventArgs
|
2021-01-09 20:31:34 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The entity being disarmed.
|
|
|
|
|
/// </summary>
|
2021-12-05 18:09:01 +01:00
|
|
|
public EntityUid Target { get; init; }
|
2021-01-09 20:31:34 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The entity performing the disarm.
|
|
|
|
|
/// </summary>
|
2021-12-05 18:09:01 +01:00
|
|
|
public EntityUid Source { get; init; }
|
2021-01-09 20:31:34 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Probability for push/knockdown.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float PushProbability { get; init; }
|
2024-02-21 04:01:45 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Prefix for the popup message that will be displayed on a successful push.
|
|
|
|
|
/// Should be set before returning.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PopupPrefix { get; set; } = "";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether the entity was successfully stunned from a shove.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsStunned { get; set; }
|
2021-01-09 20:31:34 +01:00
|
|
|
}
|
|
|
|
|
}
|