Predicted stamina (#12413)
* Predicted stamina Needed to do some semblence of predicted melee. * Okay now done. * Pause support * Comment
This commit is contained in:
31
Content.Shared/Damage/Events/StaminaMeleeHitEvent.cs
Normal file
31
Content.Shared/Damage/Events/StaminaMeleeHitEvent.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Content.Shared.Damage.Components;
|
||||
using Robust.Shared.Collections;
|
||||
|
||||
namespace Content.Shared.Damage.Events;
|
||||
|
||||
/// <summary>
|
||||
/// The components in the list are going to be hit,
|
||||
/// give opportunities to change the damage or other stuff.
|
||||
/// </summary>
|
||||
public sealed class StaminaMeleeHitEvent : HandledEntityEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// List of hit stamina components.
|
||||
/// </summary>
|
||||
public List<StaminaComponent> HitList;
|
||||
|
||||
/// <summary>
|
||||
/// The multiplier. Generally, try to use *= or /= instead of overwriting.
|
||||
/// </summary>
|
||||
public float Multiplier = 1;
|
||||
|
||||
/// <summary>
|
||||
/// The flat modifier. Generally, try to use += or -= instead of overwriting.
|
||||
/// </summary>
|
||||
public float FlatModifier = 0;
|
||||
|
||||
public StaminaMeleeHitEvent(List<StaminaComponent> hitList)
|
||||
{
|
||||
HitList = hitList;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user