* Remove second shove check. * Change when popups and sounds are created. Reduces phantom shoves that feel bad. * why didn't i think of this i saw it earlier... * Replaced Is fields with prefix * remove some dependencies to fix tests???
32 lines
941 B
C#
32 lines
941 B
C#
namespace Content.Shared.CombatMode
|
|
{
|
|
public sealed class DisarmedEvent : HandledEntityEventArgs
|
|
{
|
|
/// <summary>
|
|
/// The entity being disarmed.
|
|
/// </summary>
|
|
public EntityUid Target { get; init; }
|
|
|
|
/// <summary>
|
|
/// The entity performing the disarm.
|
|
/// </summary>
|
|
public EntityUid Source { get; init; }
|
|
|
|
/// <summary>
|
|
/// Probability for push/knockdown.
|
|
/// </summary>
|
|
public float PushProbability { get; init; }
|
|
|
|
/// <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; }
|
|
}
|
|
}
|