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

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

void ClaymoreMine ()
 
override void EOnInit (IEntity other, int extra)
 
override void EEKilled (Object killer)
 
override void EEDelete (EntityAI parent)
 
void InitiateExplosion ()
 
override void AfterStoreLoad ()
 
override void OnVariablesSynchronized ()
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour ()
 
override void PairRemote (notnull EntityAI trigger)
 
override EntityAI GetPairDevice ()
 
override bool CanBeDisarmed ()
 
override void OnActivatedByItem (notnull ItemBase item)
 
override void OnArmed ()
 
override void OnDisarmed (bool pWithTool)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
void UpdateVisuals ()
 
void UpdateLED (ERemoteDetonatorLEDState pState, bool pForced=false)
 
override bool IsTakeable ()
 
override bool IsDeployable ()
 
override void SetActions ()
 
override int GetViewIndex ()
 
bool UsesGlobalDeploy ()
 
override string GetDeploySoundset ()
 
override string GetLoopDeploySoundset ()
 
override void OnDebugSpawn ()
 

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

const string ANIM_PHASE_PACKED = "Bag"
 
const string ANIM_PHASE_DEPLOYED = "Mine"
 
const string SELECTION_NAME_LED = "LED"
 
ref RemotelyActivatedItemBehaviour m_RAIB
 
ERemoteDetonatorLEDState m_LastLEDState
 

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

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

◆ ClaymoreMine()

void ClaymoreMine ( )
inlineprotected
11 {
13
14 SetAmmoTypes({"ClaymoreMine_Ammo","ClaymoreMine_Secondary_Ammo"});
16 SetParticleOrientation("90 0 0");
17
18 RegisterNetSyncVariableInt("m_RAIB.m_PairDeviceNetIdLow");
19 RegisterNetSyncVariableInt("m_RAIB.m_PairDeviceNetIdHigh");
21 }
void SetAmmoTypes(array< string > pAmmoTypes)
Definition ExplosivesBase.c:288
void SetParticleExplosion(int particle)
Definition ExplosivesBase.c:294
void SetParticleOrientation(vector local_ori)
Definition ExplosivesBase.c:310
ERemoteDetonatorLEDState
Definition RemoteDetonator.c:2
void UpdateLED(ERemoteDetonatorLEDState pState, bool pForced=false)
Definition ClaymoreMine.c:200
ref RemotelyActivatedItemBehaviour m_RAIB
Definition ClaymoreMine.c:7
Definition ParticleList.c:12
static const int CLAYMORE_EXPLOSION
Definition ParticleList.c:307
Definition RemotelyActivatedItemBehaviour.c:2

Перекрестные ссылки ParticleList::CLAYMORE_EXPLOSION, m_RAIB, SetAmmoTypes(), SetParticleExplosion(), SetParticleOrientation() и UpdateLED().

Методы

◆ AfterStoreLoad()

override void AfterStoreLoad ( )
inlineprotected
60 {
61 super.AfterStoreLoad();
62
64 if (GetArmed())
65 {
67 }
68 }
bool GetArmed()
Definition ExplosivesBase.c:236
void UpdateVisuals()
Definition ClaymoreMine.c:178
Definition EntityAI.c:95

Перекрестные ссылки GetArmed(), UpdateLED() и UpdateVisuals().

◆ CanBeDisarmed()

override bool CanBeDisarmed ( )
inlineprotected
110 {
111 return GetArmed();
112 }

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

◆ EEDelete()

override void EEDelete ( EntityAI parent)
inlineprotected
39 {
40 super.EEDelete(parent);
41
42#ifdef DIAG_DEVELOPER
43#ifndef SERVER
45#endif
46#endif
47 }

◆ 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 }

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

◆ EEKilled()

override void EEKilled ( Object killer)
inlineprotected
29 {
30 super.EEKilled(killer);
31#ifdef DIAG_DEVELOPER
32#ifndef SERVER
34#endif
35#endif
36 }

◆ EOnInit()

override void EOnInit ( IEntity other,
int extra )
inlineprotected
24 {
26 }

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

◆ GetDeploySoundset()

override string GetDeploySoundset ( )
inlineprotected
258 {
259 return "placeClaymore_SoundSet";
260 }

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )
inlineprotected
263 {
264 return "claymore_deploy_Soundset";
265 }

◆ GetPairDevice()

override EntityAI GetPairDevice ( )
inlineprotected
105 {
106 return m_RAIB.GetPairDevice();
107 }

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

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

◆ GetRemotelyActivatedItemBehaviour()

override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour ( )
inlineprotected
95 {
96 return m_RAIB;
97 }

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

◆ GetViewIndex()

override int GetViewIndex ( )
inlineprotected
240 {
241 if (MemoryPointExists("invView2"))
242 {
243 if (GetArmed())
244 {
245 return 1;
246 }
247 }
248
249 return 0;
250 }

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

◆ InitiateExplosion()

void InitiateExplosion ( )
inlineprotected
50 {
51 if (GetDefused())
52 {
53 return;
54 }
55
56 super.InitiateExplosion();
57 }
bool GetDefused()
Definition ExplosivesBase.c:272

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

◆ IsDeployable()

override bool IsDeployable ( )
inlineprotected
226 {
227 return true;
228 }

◆ IsTakeable()

override bool IsTakeable ( )
inlineprotected
221 {
222 return !GetArmed() && super.IsTakeable();
223 }

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

◆ OnActivatedByItem()

override void OnActivatedByItem ( notnull ItemBase item)
inlineprotected
115 {
116 if (GetGame().IsServer())
117 {
118 if (m_RAIB.IsPaired() && GetArmed())
119 {
120 if (GetPairDevice() == item)
121 {
122 SetHealth("", "", 0.0);
123 }
124 }
125 }
126 }
override EntityAI GetPairDevice()
Definition ClaymoreMine.c:104
proto native CGame GetGame()

Перекрестные ссылки GetArmed(), GetGame(), GetPairDevice() и m_RAIB.

◆ OnArmed()

override void OnArmed ( )
inlineprotected
129 {
130 super.OnArmed();
131
134
135#ifdef DIAG_DEVELOPER
136#ifndef SERVER
137 // have to call this function a little later, after claymore transform has been finalized
138 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(DrawDamageZone, 500);
139#endif
140#endif
141 }
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame(), UpdateLED() и UpdateVisuals().

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
inlineprotected
268 {
269 RemoteDetonatorTrigger rdt = RemoteDetonatorTrigger.Cast(SpawnEntityOnGroundPos("RemoteDetonatorTrigger", GetPosition() + GetDirection() * 0.5));
271 Arm();
272 }
void Arm()
Definition ExplosivesBase.c:207
bool PairWithDevice(notnull ItemBase otherDevice)
Definition ItemBase.c:9374
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
Definition RemoteDetonator.c:47

Перекрестные ссылки Arm(), GetPosition и PairWithDevice().

◆ OnDisarmed()

override void OnDisarmed ( bool pWithTool)
inlineprotected
144 {
145 super.OnDisarmed(pWithTool);
146
147#ifdef DIAG_DEVELOPER
149#endif
150
152 UnpairRemote();
153
154 if (pWithTool)
155 {
156 SetHealth("", "", 0.0);
157 }
158
161 }
void SetDefused(bool state)
Definition ExplosivesBase.c:277
override void UnpairRemote()
Definition ExplosivesBase.c:120

Перекрестные ссылки SetDefused(), UnpairRemote(), UpdateLED() и UpdateVisuals().

◆ OnPlacementComplete()

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
164 {
165 super.OnPlacementComplete(player, position, orientation);
166
167 if (GetGame().IsServer())
168 {
170 if (rdt)
171 {
173 Arm();
174 }
175 }
176 }
static RemoteDetonatorTrigger SpawnInPlayerHands(notnull EntityAI pEntity, EntityAI deviceToPair=null)
Definition RemoteDetonator.c:155

Перекрестные ссылки Arm(), GetGame(), PairWithDevice() и RemoteDetonatorTrigger::SpawnInPlayerHands().

◆ OnVariablesSynchronized()

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

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

◆ PairRemote()

override void PairRemote ( notnull EntityAI trigger)
inlineprotected
100 {
101 m_RAIB.Pair(trigger);
102 }

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

◆ SetActions()

override void SetActions ( )
inlineprotected
231 {
232 super.SetActions();
233
235 AddAction(ActionDeployObject);
237 }
ActionArmExplosiveCB ActionContinuousBaseCB ActionArmExplosive()
Definition ActionArmExplosive.c:18
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
Definition ActionTogglePlaceObject.c:2

Перекрестные ссылки ActionArmExplosive() и AddAction().

◆ UpdateLED()

void UpdateLED ( ERemoteDetonatorLEDState pState,
bool pForced = false )
inlineprotected
201 {
202 if (pState != m_LastLEDState || pForced)
203 {
204 int selectionIdx = GetHiddenSelectionIndex(SELECTION_NAME_LED);
205
206 switch (pState)
207 {
209 SetObjectTexture(selectionIdx, RemoteDetonator.COLOR_LED_LIT);
210 break;
211 default:
212 SetObjectTexture(selectionIdx, RemoteDetonator.COLOR_LED_OFF);
213 break;
214 }
215
217 }
218 }
ERemoteDetonatorLEDState m_LastLEDState
Definition ClaymoreMine.c:8
const string SELECTION_NAME_LED
Definition ClaymoreMine.c:5

Перекрестные ссылки m_LastLEDState и SELECTION_NAME_LED.

Используется в AfterStoreLoad(), ClaymoreMine(), OnArmed() и OnDisarmed().

◆ UpdateVisuals()

void UpdateVisuals ( )
inlineprotected
179 {
180 if (GetArmed() || GetDefused())
181 {
182 ShowSelection(ANIM_PHASE_DEPLOYED);
183 HideSelection(ANIM_PHASE_PACKED);
184 if (GetOnViewIndexChanged())
185 {
186 GetOnViewIndexChanged().Invoke();
187 }
188 }
189 else
190 {
191 HideSelection(ANIM_PHASE_DEPLOYED);
192 ShowSelection(ANIM_PHASE_PACKED);
193 if (GetOnViewIndexChanged())
194 {
195 GetOnViewIndexChanged().Invoke();
196 }
197 }
198 }
const string ANIM_PHASE_DEPLOYED
Definition ClaymoreMine.c:4
const string ANIM_PHASE_PACKED
Definition ClaymoreMine.c:3

Перекрестные ссылки ANIM_PHASE_DEPLOYED, ANIM_PHASE_PACKED, GetArmed() и GetDefused().

Используется в AfterStoreLoad(), EOnInit(), OnArmed(), OnDisarmed() и OnVariablesSynchronized().

◆ UsesGlobalDeploy()

bool UsesGlobalDeploy ( )
inlineprotected
253 {
254 return true;
255 }

Поля

◆ ANIM_PHASE_DEPLOYED

const string ANIM_PHASE_DEPLOYED = "Mine"
protected

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

◆ ANIM_PHASE_PACKED

const string ANIM_PHASE_PACKED = "Bag"
protected

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

◆ m_LastLEDState

ERemoteDetonatorLEDState m_LastLEDState
protected

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

◆ m_RAIB

◆ SELECTION_NAME_LED

const string SELECTION_NAME_LED = "LED"
protected

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


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