PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
RemoteDetonator.c File Reference

Data Structures

class  RemoteDetonatorTrigger
 
class  ReplaceDetonatorItemLambda
 
class  ReplaceDetonatorItemOnDisarmLambda
 

Enumerations

enum  ERemoteDetonatorLEDState { OFF = 0 , LIT }
 

Functions

bool IsKit ()
 
void UpdateLED (ERemoteDetonatorLEDState pState, bool pForced=false)
 
override void SetActions ()
 
RemoteDetonatorTrigger RemoteDetonator RemoteDetonatorReceiver ()
 
void RemoteDetonatorTrigger ()
 
override void OnVariablesSynchronized ()
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour ()
 
override void OnCEUpdate ()
 
override void PairRemote (notnull EntityAI trigger)
 
override void UnpairRemote ()
 
override void OnActivatedByItem (notnull ItemBase item)
 Called when this item is activated by other.
 
void SetControlledDevice (EntityAI pDevice)
 
bool IsConnected ()
 
EntityAI GetControlledDevice ()
 
static RemoteDetonatorTrigger SpawnInPlayerHands (notnull EntityAI pEntity, EntityAI deviceToPair=null)
 
override void OnAnimationPhaseStarted (string animSource, float phase)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
override void EEKilled (Object killer)
 
ReplaceDetonatorItemLambda ReplaceItemWithNewLambdaBase SetPairDevice (EntityAI device)
 
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 
override void OnSuccess (EntityAI new_item)
 
override void OnAbort ()
 

Variables

enum ERemoteDetonatorLEDState COLOR_LED_OFF = "#(argb,8,8,3)color(0,0,0,1.0,co)"
 
const string COLOR_LED_LIT = "#(argb,8,8,3)color(1,0,0,1.0,co)"
 
const string SELECTION_NAME_LED = "LED"
 
protected ERemoteDetonatorLEDState m_LastLEDState
 
protected const string ANIM_PHASE_TRIGGER = "trigger"
 
protected bool m_LED
 
protected ref RemotelyActivatedItemBehaviour m_RAIB
 

Enumeration Type Documentation

◆ ERemoteDetonatorLEDState

Enumerator
OFF 
LIT 

Function Documentation

◆ CopyOldPropertiesToNew()

override void CopyOldPropertiesToNew ( notnull EntityAI  old_item,
EntityAI  new_item 
)

◆ EEItemLocationChanged()

override void EEItemLocationChanged ( notnull InventoryLocation  oldLoc,
notnull InventoryLocation  newLoc 
)

◆ EEKilled()

override void EEKilled ( Object  killer)

References UpdateLED().

◆ GetControlledDevice()

EntityAI GetControlledDevice ( )

◆ GetRemotelyActivatedItemBehaviour()

◆ IsConnected()

bool IsConnected ( )

◆ IsKit()

override bool IsKit ( )

◆ OnAbort()

override void OnAbort ( )

References ExplosivesBase().

◆ OnActivatedByItem()

override void OnActivatedByItem ( notnull ItemBase  item)

Called when this item is activated by other.

◆ OnAnimationPhaseStarted()

override void OnAnimationPhaseStarted ( string  animSource,
float  phase 
)

◆ OnCEUpdate()

override void OnCEUpdate ( )

References ExplosivesBase().

◆ OnSuccess()

override void OnSuccess ( EntityAI  new_item)

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )

◆ OnWasDetached()

override void OnWasDetached ( EntityAI  parent,
int  slot_id 
)

References UpdateLED().

Referenced by Entity::EEItemLocationChanged().

◆ PairRemote()

override void PairRemote ( notnull EntityAI  trigger)

◆ RemoteDetonatorReceiver()

◆ RemoteDetonatorTrigger()

◆ SetActions()

override void SetActions ( )

◆ SetControlledDevice()

void SetControlledDevice ( EntityAI  pDevice)

References ExplosivesBase().

◆ SetPairDevice()

◆ SpawnInPlayerHands()

static RemoteDetonatorTrigger SpawnInPlayerHands ( notnull EntityAI  pEntity,
EntityAI  deviceToPair = null 
)
static

item replaced, use different IK

References ExplosivesBase().

◆ UnpairRemote()

override void UnpairRemote ( )

◆ UpdateLED()

Variable Documentation

◆ ANIM_PHASE_TRIGGER

protected const string ANIM_PHASE_TRIGGER = "trigger"

◆ COLOR_LED_LIT

const string COLOR_LED_LIT = "#(argb,8,8,3)color(1,0,0,1.0,co)"

Referenced by UpdateLED().

◆ COLOR_LED_OFF

enum ERemoteDetonatorLEDState COLOR_LED_OFF = "#(argb,8,8,3)color(0,0,0,1.0,co)"

◆ m_LastLEDState

◆ m_LED

protected bool m_LED

◆ m_RAIB

protected ref RemotelyActivatedItemBehaviour m_RAIB

◆ SELECTION_NAME_LED

const string SELECTION_NAME_LED = "LED"

Referenced by UpdateLED().