Show / Hide Table of Contents

Class StaminaComponent

Add to an entity to paralyze it whenever it reaches critical amounts of Stamina DamageType.

Inheritance
System.Object
StaminaComponent
Namespace: Content.Shared.Damage.Components
Assembly: Content.Shared.dll
Syntax
public sealed class StaminaComponent : Component

Fields

| Improve this Doc View Source

Cooldown

How much time after receiving damage until stamina starts decreasing.

Declaration
public float Cooldown
Field Value
Type Description
System.Single
| Improve this Doc View Source

Critical

Have we reached peak stamina damage and been paralyzed?

Declaration
public bool Critical
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

CritThreshold

How much stamina damage is required to entire stam crit.

Declaration
public float CritThreshold
Field Value
Type Description
System.Single
| Improve this Doc View Source

Decay

How much stamina reduces per second.

Declaration
public float Decay
Field Value
Type Description
System.Single
| Improve this Doc View Source

NextUpdate

To avoid continuously updating our data we track the last time we updated so we can extrapolate our current stamina.

Declaration
public TimeSpan NextUpdate
Field Value
Type Description
TimeSpan
| Improve this Doc View Source

StaminaDamage

How much stamina damage this entity has taken.

Declaration
public float StaminaDamage
Field Value
Type Description
System.Single
| Improve this Doc View Source

StunTime

How long will this mob be stunned for?

Declaration
public TimeSpan StunTime
Field Value
Type Description
TimeSpan
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾