Class StunProviderComponent
Component for stunning mobs on click outside of harm mode. Knocks them down for a bit and deals shock damage.
Inheritance
System.Object
StunProviderComponent
Namespace: Content.Shared.Ninja.Components
Assembly: Content.Shared.dll
Syntax
public sealed class StunProviderComponent : Component
Fields
| Improve this Doc View SourceBatteryUid
The powercell entity to take power from. Determines whether stunning is possible.
Declaration
public EntityUid? BatteryUid
Field Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
Cooldown
How long stunning is disabled after stunning something.
Declaration
public TimeSpan Cooldown
Field Value
Type | Description |
---|---|
TimeSpan |
NextStun
When someone can next be stunned. Essentially a UseDelay unique to this component.
Declaration
public TimeSpan NextStun
Field Value
Type | Description |
---|---|
TimeSpan |
NoPowerPopup
Locale string to popup when there is no power
Declaration
public string NoPowerPopup
Field Value
Type | Description |
---|---|
System.String |
Sound
Sound played when stunning someone.
Declaration
public SoundSpecifier Sound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
StunCharge
Joules required in the battery to stun someone. Defaults to 10 uses on a small battery.
Declaration
public float StunCharge
Field Value
Type | Description |
---|---|
System.Single |
StunDamage
Shock damage dealt when stunning someone
Declaration
public int StunDamage
Field Value
Type | Description |
---|---|
System.Int32 |
StunTime
Time that someone is stunned for, stacks if done multiple times.
Declaration
public TimeSpan StunTime
Field Value
Type | Description |
---|---|
TimeSpan |
Whitelist
Whitelist for what counts as a mob.
Declaration
public EntityWhitelist Whitelist
Field Value
Type | Description |
---|---|
EntityWhitelist |