Show / Hide Table of Contents

Class NukeComponent

Nuclear device that can devastate an entire station. Basically a station self-destruction mechanism. To activate it, user needs to insert an authorization disk and enter a secret code.

Inheritance
System.Object
SharedNukeComponent
NukeComponent
Namespace: Content.Server.Nuke
Assembly: Content.Server.dll
Syntax
public sealed class NukeComponent : SharedNukeComponent

Fields

| Improve this Doc View Source

AccessDeniedSound

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

AccessGrantedSound

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

AlertAudioStream

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

AlertLevelOnActivate

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

AlertLevelOnDeactivate

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

AlertSound

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

AlertSoundTime

When this time is left, nuke will play last alert sound

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

ArmMusic

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

ArmSound

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

Code

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

CodeLength

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

Cooldown

How long until the bomb can arm again after deactivation. Used to prevent announcements spam.

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

CooldownTime

Time until bomb cooldown will expire in seconds.

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

DisarmDoafterLength

How long a user must wait to disarm the bomb.

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

DisarmSound

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

DiskSlot

The ItemSlot that stores the nuclear disk. The entity whitelist, sounds, and some other behaviours are specified by this ItemSlot definition. Make sure the whitelist, is correct otherwise a blank bit of paper will work as a "disk".

Declaration
public ItemSlot DiskSlot
Field Value
Type Description
ItemSlot
| Improve this Doc View Source

EnteredCode

Current nuclear code buffer. Entered manually by players. If valid it will allow arm/disarm bomb.

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

Exploded

Avoid somehow double-triggering this explosion.

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

ExplosionType

The explosion prototype. This determines the damage types, the tile-break chance, and some visual information (e.g., the light that the explosion gives off).

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

IntensitySlope

How quickly the intensity drops off as you move away from the epicenter.

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

KeypadPressSound

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

LastPlayedKeypadSemitones

This is stored so we can do a funny by making 0 shift the last played note up by 12 semitones (octave)

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

MaxIntensity

The maximum intensity the explosion can have on a single time. This limits the maximum damage and tile break chance the explosion can achieve at any given location.

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

OriginMapGrid

Origin map and grid of this bomb. If a station wasn't tied to a given grid when the bomb was spawned, this will be filled in instead.

Declaration
public (MapId, EntityUid? )? OriginMapGrid
Field Value
Type Description
System.Nullable<System.ValueTuple<Robust.Shared.Map.MapId, System.Nullable<EntityUid>>>
| Improve this Doc View Source

OriginStation

Origin station of this bomb, if it exists. If this doesn't exist, then the origin grid and map will be filled in, instead.

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

PlayedAlertSound

Check if nuke has already played last alert sound

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

PlayedNukeSong

Check if nuke has already played the nuke song so we don't do it again

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

RemainingTime

Time until explosion in seconds.

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

RequiredFloorRadius

The radius from the nuke for which there must be floor tiles for it to be anchorable.

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

Status

Current status of a nuclear bomb.

Declaration
public NukeStatus Status
Field Value
Type Description
NukeStatus
| Improve this Doc View Source

Timer

Default bomb timer value in seconds.

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

TotalIntensity

The total intensity of this explosion. The radius of the explosion scales like the cube root of this number (see RadiusToIntensity(Single, Single, Single)).

Declaration
public float TotalIntensity
Field Value
Type Description
System.Single
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾