Show / Hide Table of Contents

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 Source

BatteryUid

The powercell entity to take power from. Determines whether stunning is possible.

Declaration
public EntityUid? BatteryUid
Field Value
Type Description
System.Nullable<EntityUid>
| Improve this Doc View Source

Cooldown

How long stunning is disabled after stunning something.

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

NextStun

When someone can next be stunned. Essentially a UseDelay unique to this component.

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

NoPowerPopup

Locale string to popup when there is no power

Declaration
public string NoPowerPopup
Field Value
Type Description
System.String
| Improve this Doc View Source

Sound

Sound played when stunning someone.

Declaration
public SoundSpecifier Sound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

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
| Improve this Doc View Source

StunDamage

Shock damage dealt when stunning someone

Declaration
public int StunDamage
Field Value
Type Description
System.Int32
| Improve this Doc View Source

StunTime

Time that someone is stunned for, stacks if done multiple times.

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

Whitelist

Whitelist for what counts as a mob.

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