Class Warhead
A set of tools to easily work with the alpha warhead.
public static class Warhead
- Inheritance
-
Warhead
- Inherited Members
Properties
AutoDetonate
Gets or sets a value indicating whether automatic detonation is enabled.
public static bool AutoDetonate { get; set; }
Property Value
BlastDoors
Gets all of the warhead blast doors.
public static IReadOnlyCollection<BlastDoor> BlastDoors { get; }
Property Value
- IReadOnlyCollection<BlastDoor>
CanBeStarted
Gets a value indicating whether the warhead can be started.
public static bool CanBeStarted { get; }
Property Value
Controller
Gets the cached AlphaWarheadController component.
public static AlphaWarheadController Controller { get; }
Property Value
- AlphaWarheadController
DeadmanSwitchEnabled
Gets or sets a value indicating whether DeadmanSwitch detonation is enabled.
public static bool DeadmanSwitchEnabled { get; set; }
Property Value
DetonationTimer
Gets or sets the warhead detonation timer.
public static float DetonationTimer { get; set; }
Property Value
IsDetonated
Gets a value indicating whether the warhead has already been detonated.
public static bool IsDetonated { get; }
Property Value
IsInProgress
Gets a value indicating whether the warhead detonation is in progress.
public static bool IsInProgress { get; }
Property Value
IsKeycardActivated
Gets or sets a value indicating whether the warhead's outside panel has been opened.
public static bool IsKeycardActivated { get; set; }
Property Value
IsLocked
Gets or sets a value indicating whether the warhead can be disabled.
public static bool IsLocked { get; set; }
Property Value
Kills
Gets or sets the amount of kills caused by the warhead (shown on the summary screen).
public static int Kills { get; set; }
Property Value
Lever
Gets the UnityEngine.GameObject of the warhead lever.
public static GameObject Lever { get; }
Property Value
- GameObject
LeverStatus
Gets or sets a value indicating whether the warhead lever is enabled.
public static bool LeverStatus { get; set; }
Property Value
OpenDoors
Gets or sets a value indicating whether doors will be opened when the warhead activates.
public static bool OpenDoors { get; set; }
Property Value
OutsitePanel
Gets the cached AlphaWarheadOutsitePanel component.
public static AlphaWarheadOutsitePanel OutsitePanel { get; }
Property Value
- AlphaWarheadOutsitePanel
RealDetonationTimer
Gets the warhead real detonation timer.
public static float RealDetonationTimer { get; }
Property Value
SitePanel
Gets the cached AlphaWarheadNukesitePanel component.
public static AlphaWarheadNukesitePanel SitePanel { get; }
Property Value
- AlphaWarheadNukesitePanel
Status
Gets or sets the warhead status.
public static WarheadStatus Status { get; set; }
Property Value
Methods
CanBeDetonated(Vector3, bool)
Gets whether the provided position will be detonated by the alpha warhead.
public static bool CanBeDetonated(Vector3 pos, bool includeOnlyLifts = false)
Parameters
Returns
- bool
Whether the given position is prone to being detonated.
CloseBlastDoors()
Closes the surface blast doors.
public static void CloseBlastDoors()
Detonate()
Detonates the warhead.
public static void Detonate()
Shake()
Shake all players, like if the warhead has been detonated.
public static void Shake()
Start()
Starts the warhead countdown.
public static void Start()
Stop()
Stops the warhead.
public static void Stop()
TriggerDoors(bool)
Opens or closes all doors on the map, based on the provided open
.
public static void TriggerDoors(bool open)
Parameters
open
boolWhether to open or close all doors on the map.