Class EmoteOnDamageComponent
Causes an entity to automatically emote when taking damage.
Inheritance
System.Object
EmoteOnDamageComponent
Namespace: Content.Server.Chat
Assembly: Content.Server.dll
Syntax
public sealed class EmoteOnDamageComponent : Component
Fields
| Improve this Doc View SourceEmoteChance
Chance of preforming an emote when taking damage and not on cooldown.
Declaration
public float EmoteChance
Field Value
Type | Description |
---|---|
System.Single |
EmoteCooldown
The cooldown between emotes.
Declaration
public TimeSpan EmoteCooldown
Field Value
Type | Description |
---|---|
TimeSpan |
Emotes
A set of emotes that will be randomly picked from. EmotePrototype
Declaration
public HashSet<string> Emotes
Field Value
Type | Description |
---|---|
HashSet<System.String> |
HiddenFromChatWindow
Declaration
public bool HiddenFromChatWindow
Field Value
Type | Description |
---|---|
System.Boolean |
LastEmoteTime
The simulation time of the last emote preformed due to taking damage.
Declaration
public TimeSpan LastEmoteTime
Field Value
Type | Description |
---|---|
TimeSpan |
WithChat
Declaration
public bool WithChat
Field Value
Type | Description |
---|---|
System.Boolean |