58 RegisterNetSyncVariableInt(
"m_RAIB.m_PairDeviceNetIdLow");
59 RegisterNetSyncVariableInt(
"m_RAIB.m_PairDeviceNetIdHigh");
72 super.OnVariablesSynchronized();
75 m_RAIB.OnVariableSynchronized();
125 if (
m_RAIB.IsPaired() && !IsRuined())
129 device.OnActivatedByItem(
this);
146 return m_RAIB.GetPairDevice();
151 string type =
"RemoteDetonatorTrigger";
178 if (
player.GetItemInHands())
179 player.GetItemAccessor().OnItemInHandsChanged();
224 override bool IsKit()
276 ExplosivesBase
explosive = ExplosivesBase.Cast(m_PairDevice);
294 ExplosivesBase
explosive = ExplosivesBase.Cast(m_PairDevice);
312 if (
detonator.GetRemotelyActivatedItemBehaviour())
314 ExplosivesBase
explosive = ExplosivesBase.Cast(
detonator.GetRemotelyActivatedItemBehaviour().GetPairDevice());
328 if (
detonator.GetRemotelyActivatedItemBehaviour())
330 ExplosivesBase
explosive = ExplosivesBase.Cast(
detonator.GetRemotelyActivatedItemBehaviour().GetPairDevice());
ActionAttachExplosivesTriggerCB ActionContinuousBaseCB ActionAttachExplosivesTrigger()
ActionDisarmExplosiveWithRemoteDetonatorCB ActionDisarmExplosiveCB ActionDisarmExplosiveWithRemoteDetonator()
ActionDisarmExplosiveWithRemoteDetonatorUnpairedCB ActionDisarmExplosiveCB ActionDisarmExplosiveWithRemoteDetonatorUnpaired()
override void OnSuccess(EntityAI new_item)
void AddAction(typename actionName)
void RemoveAction(typename actionName)
override void EEKilled(Object killer)
const string COLOR_LED_OFF
void UpdateLED(string selection, string color)
void UpdateLED(ERemoteDetonatorLEDState pState, bool pForced=false)
RemoteDetonatorTrigger RemoteDetonator RemoteDetonatorReceiver()
ERemoteDetonatorLEDState m_LastLEDState
const string COLOR_LED_LIT
override void OnWasDetached(EntityAI parent, int slot_id)
const string SELECTION_NAME_LED
ReplaceDetonatorItemLambda ReplaceItemWithNewLambdaBase SetPairDevice(EntityAI device)
class JsonUndergroundAreaTriggerData GetPosition
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
override void SetActions()
EntityAI GetControlledDevice()
static RemoteDetonatorTrigger SpawnInPlayerHands(notnull EntityAI pEntity, EntityAI deviceToPair=null)
override void OnActivatedByItem(notnull ItemBase item)
override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour()
void SetControlledDevice(EntityAI pDevice)
override void OnCEUpdate()
override void OnAnimationPhaseStarted(string animSource, float phase)
override void UnpairRemote()
const string ANIM_PHASE_TRIGGER
void RemoteDetonatorTrigger()
ref RemotelyActivatedItemBehaviour m_RAIB
override void PairRemote(notnull EntityAI trigger)
override void OnVariablesSynchronized()
override void CopyOldPropertiesToNew(notnull EntityAI old_item, EntityAI new_item)
override void OnSuccess(EntityAI new_item)
base class for transformation operations (creating one item from another)
const float EXPLOSIVE_REMOTE_ACTIVATION
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
proto native CGame GetGame()
static proto float SqrFloat(float f)
Returns squared value.