Class ExplosiveComponent
Specifies an explosion that can be spawned by this entity. The explosion itself is spawned via TriggerExplosive(EntityUid, ExplosiveComponent, Boolean, Nullable<Single>, Nullable<Single>, Nullable<EntityUid>).
Inheritance
Namespace: Content.Server.Explosion.Components
Assembly: Content.Server.dll
Syntax
public sealed class ExplosiveComponent : Component
Remarks
The total intensity may be overridden by whatever system actually calls TriggerExplosive(), but this component still determines the explosion type and other properties.
Fields
| Improve this Doc View SourceCanCreateVacuum
Whether this explosive should be able to create a vacuum by breaking tiles.
Declaration
public bool CanCreateVacuum
Field Value
Type | Description |
---|---|
System.Boolean |
DeleteAfterExplosion
An override for whether or not the entity should be deleted after it explodes. If null, the system calling the explode method handles it.
Declaration
public bool? DeleteAfterExplosion
Field Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Exploded
Avoid somehow double-triggering this explosion (e.g. by damaging this entity from its own explosion.
Declaration
public bool Exploded
Field Value
Type | Description |
---|---|
System.Boolean |
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 |
IntensitySlope
How quickly the intensity drops off as you move away from the epicenter.
Declaration
public float IntensitySlope
Field Value
Type | Description |
---|---|
System.Single |
MaxIntensity
The maximum intensity the explosion can have on a single tile. 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 |
MaxTileBreak
Maximum number of times that an explosive can break a tile. Currently, for normal space stations breaking a tile twice will generally result in a vacuum.
Declaration
public int MaxTileBreak
Field Value
Type | Description |
---|---|
System.Int32 |
TileBreakScale
Factor used to scale the explosion intensity when calculating tile break chances. Allows for stronger explosives that don't space tiles, without having to create a new explosion-type prototype.
Declaration
public float TileBreakScale
Field Value
Type | Description |
---|---|
System.Single |
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 |
Remarks
This number can be overridden by passing optional argument to TriggerExplosive(EntityUid, ExplosiveComponent, Boolean, Nullable<Single>, Nullable<Single>, Nullable<EntityUid>).