DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс RemoteDetonatorTrigger
+ Граф наследования:RemoteDetonatorTrigger:

Защищенные члены

void RemoteDetonatorTrigger ()
 
override bool IsKit ()
 
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)
 
void SetControlledDevice (EntityAI pDevice)
 
bool IsConnected ()
 
EntityAI GetControlledDevice ()
 
override void OnAnimationPhaseStarted (string animSource, float phase)
 
override void SetActions ()
 

Защищенные статические члены

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

Защищенные данные

const string ANIM_PHASE_TRIGGER = "trigger"
 
bool m_LED
 
ref RemotelyActivatedItemBehaviour m_RAIB
 

Подробное описание

Конструктор(ы)

◆ RemoteDetonatorTrigger()

void RemoteDetonatorTrigger ( )
inlineprotected
54 {
56 m_RAIB.SetTrigger();
57
58 RegisterNetSyncVariableInt("m_RAIB.m_PairDeviceNetIdLow");
59 RegisterNetSyncVariableInt("m_RAIB.m_PairDeviceNetIdHigh");
60 RegisterNetSyncVariableInt("m_LastLEDState", 0, EnumTools.GetEnumSize(ERemoteDetonatorLEDState));
61
63 }
void UpdateLED(ERemoteDetonatorLEDState pState, bool pForced=false)
Definition RemoteDetonator.c:20
ERemoteDetonatorLEDState m_LastLEDState
Definition RemoteDetonator.c:13
ERemoteDetonatorLEDState
Definition RemoteDetonator.c:2
Definition EnConvert.c:590
static int GetEnumSize(typename e)
Return amount of values in enum.
Definition EnConvert.c:623
ref RemotelyActivatedItemBehaviour m_RAIB
Definition RemoteDetonator.c:51
Definition RemotelyActivatedItemBehaviour.c:2

Перекрестные ссылки EnumTools::GetEnumSize(), m_LastLEDState, m_RAIB и UpdateLED().

Методы

◆ EEItemLocationChanged()

override void EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprotected
83 {
84 super.EEItemLocationChanged(oldLoc, newLoc);
85
86 if (m_RAIB)
87 {
88 m_RAIB.Pair();
89 }
90 }
Definition EntityAI.c:95

Перекрестные ссылки m_RAIB.

◆ GetControlledDevice()

EntityAI GetControlledDevice ( )
inlineprotected
151 {
152 return m_RAIB.GetPairDevice();
153 }

Перекрестные ссылки m_RAIB.

Используется в OnActivatedByItem() и OnCEUpdate().

◆ GetRemotelyActivatedItemBehaviour()

override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour ( )
inlineprotected
93 {
94 return m_RAIB;
95 }

Перекрестные ссылки m_RAIB.

◆ IsConnected()

bool IsConnected ( )
inlineprotected
146 {
147 return m_RAIB.IsPaired();
148 }

Перекрестные ссылки m_RAIB.

Используется в OnCEUpdate().

◆ IsKit()

override bool IsKit ( )
inlineprotected
66 {
67 return false;
68 }

◆ OnActivatedByItem()

override void OnActivatedByItem ( notnull ItemBase item)
inlineprotected
126 {
127 if (GetGame().IsServer())
128 {
129 if (m_RAIB.IsPaired() && !IsRuined())
130 {
133 {
134 device.OnActivatedByItem(this);
135 }
136 }
137 }
138 }
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
Definition InventoryItem.c:731
Definition EnMath.c:7
EntityAI GetControlledDevice()
Definition RemoteDetonator.c:150
Definition ActionConstants.c:106
const float EXPLOSIVE_REMOTE_ACTIVATION
Definition ActionConstants.c:114
Definition EnConvert.c:106
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.

Перекрестные ссылки vector::DistanceSq(), UAMaxDistances::EXPLOSIVE_REMOTE_ACTIVATION, GetControlledDevice(), GetGame(), GetPosition, m_RAIB и Math::SqrFloat().

◆ OnAnimationPhaseStarted()

override void OnAnimationPhaseStarted ( string animSource,
float phase )
inlineprotected
192 {
194 {
195 if (phase > 0.01)
196 {
198 }
199 }
200 }
const string ANIM_PHASE_TRIGGER
Definition RemoteDetonator.c:48

Перекрестные ссылки ANIM_PHASE_TRIGGER и UpdateLED().

◆ OnCEUpdate()

override void OnCEUpdate ( )
inlineprotected
98 {
99 super.OnCEUpdate();
100
101 if (!IsRuined() && IsConnected() && GetControlledDevice())
102 {
104 {
106
107 return;
108 }
109 }
110
112 }
bool IsConnected()
Definition RemoteDetonator.c:145

Перекрестные ссылки vector::DistanceSq(), UAMaxDistances::EXPLOSIVE_REMOTE_ACTIVATION, GetControlledDevice(), GetPosition, IsConnected(), Math::SqrFloat() и UpdateLED().

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
inlineprotected
71 {
72 super.OnVariablesSynchronized();
73
74 if (m_RAIB)
75 {
76 m_RAIB.OnVariableSynchronized();
77 }
78
80 }

Перекрестные ссылки m_LastLEDState, m_RAIB и UpdateLED().

◆ PairRemote()

override void PairRemote ( notnull EntityAI trigger)
inlineprotected
115 {
116 m_RAIB.Pair(trigger);
117 }

Перекрестные ссылки m_RAIB.

◆ SetActions()

override void SetActions ( )
inlineprotected
203 {
204 super.SetActions();
205
207
211 }
ActionAttachExplosivesTriggerCB ActionContinuousBaseCB ActionAttachExplosivesTrigger()
Definition ActionAttachExplosivesTrigger.c:11
ActionDisarmExplosiveWithRemoteDetonatorCB ActionDisarmExplosiveCB ActionDisarmExplosiveWithRemoteDetonator()
Definition ActionDisarmExplosiveWithRemoteDetonator.c:11
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
void RemoveAction(typename actionName)
Definition AdvancedCommunication.c:252
Definition ActionAttachOnTrap.c:2
Definition ActionTriggerRemotely.c:2

Перекрестные ссылки ActionAttachExplosivesTrigger(), ActionDisarmExplosiveWithRemoteDetonator(), AddAction() и RemoveAction().

◆ SetControlledDevice()

void SetControlledDevice ( EntityAI pDevice)
inlineprotected
141 {
142 m_RAIB.Pair(pDevice);
143 }

Перекрестные ссылки m_RAIB.

◆ SpawnInPlayerHands()

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

item replaced, use different IK

156 {
157 string type = "RemoteDetonatorTrigger";
160 if (player)
161 {
162 ItemBase inHandsItem = player.GetItemInHands();
163 if (inHandsItem)
164 {
165 if (deviceToPair)
166 {
168 onArmLambda.SetPairDevice(deviceToPair);
169 MiscGameplayFunctions.TurnItemIntoItemEx(player, onArmLambda);
170 }
171 else
172 {
174 MiscGameplayFunctions.TurnItemIntoItemEx(player, lambda);
175 }
176
177
178 rdt = RemoteDetonatorTrigger.Cast(player.GetItemInHands());
179 }
180 else
181 rdt = RemoteDetonatorTrigger.Cast(player.GetHumanInventory().CreateInHands(type));
182
184 if (player.GetItemInHands())
185 player.GetItemAccessor().OnItemInHandsChanged();
186 }
187
188 return rdt;
189 }
Definition PlayerBaseClient.c:2
Definition RemoteDetonator.c:47
Definition RemoteDetonator.c:259

Используется в CreateRemoteDetonatorReceiverAsAttachment() и ClaymoreMine::OnPlacementComplete().

◆ UnpairRemote()

override void UnpairRemote ( )
inlineprotected
120 {
122 m_RAIB.Unpair();
123 }

Перекрестные ссылки m_RAIB и UpdateLED().

Поля

◆ ANIM_PHASE_TRIGGER

const string ANIM_PHASE_TRIGGER = "trigger"
protected

Используется в OnAnimationPhaseStarted().

◆ m_LED

bool m_LED
protected

◆ m_RAIB


Объявления и описания членов класса находятся в файле: