Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
ImprovisedExplosive Class Reference
Inheritance diagram for ImprovisedExplosive:

Protected Member Functions

void ImprovisedExplosive ()
override bool CanBeArmed ()
override bool CanBeDisarmed ()
override bool CanDisplayAttachmentSlot (int slot_id)
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
override void EEItemAttached (EntityAI item, string slot_name)
override void EEItemDetached (EntityAI item, string slot_name)
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
override void EOnInit (IEntity other, int extra)
override string GetArmSoundset ()
override string GetDeploySoundset ()
override string GetDisarmSoundset ()
override string GetLoopDeploySoundset ()
override EntityAI GetPairDevice ()
override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour ()
override bool HasLockedTriggerSlots ()
void InitiateExplosion ()
 not exploding itself, rely on attached explosives
override bool IsDeployable ()
override bool IsTakeable ()
override bool IsTimerDetonable ()
override void LockExplosivesSlots ()
override void LockTriggerSlots ()
override void OnActivatedByItem (notnull ItemBase item)
override void OnBeforeDisarm ()
override void OnDisarmed (bool pWithTool)
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
override bool OnStoreLoad (ParamsReadContext ctx, int version)
override void OnStoreSave (ParamsWriteContext ctx)
void OnTriggerAttached (EntityAI entity)
void OnTriggerDetached (EntityAI entity)
override void OnVariablesSynchronized ()
override void PairRemote (notnull EntityAI trigger)
override void SetActions ()
override void UnlockExplosivesSlots ()
override void UnlockTriggerSlots ()
override void UpdateLED (int pState)
void UpdateVisuals (EntityAI entity)

Protected Attributes

const string ANIM_PHASE_TRIGGER_CLOCK = "TriggerClock"
const string ANIM_PHASE_TRIGGER_EMPTY = "TriggerEmpty"
const string ANIM_PHASE_TRIGGER_REMOTE = "TriggerRemote"
const string ANIM_PHASE_TRIGGER_TIMER = "TriggerTimer"
ref RemotelyActivatedItemBehaviour m_RAIB
const int SLOT_EXPLOSIVE_COUNT = 2
const string SLOT_EXPLOSIVES [SLOT_EXPLOSIVE_COUNT]
const string SLOT_TRIGGERS [SLOT_TRIGGERS_COUNT]
const int SLOT_TRIGGERS_COUNT = 3
const float TIME_TRIGGER_DELAY_SECS = 0.3
const float TIME_TRIGGER_INITIAL_DELAY_SECS = 0.1
const float TIME_TRIGGER_TIMER_BASED_DELAY_SECS = 1.0

Static Protected Attributes

static const string SLOT_EXPLOSIVE_A = "IEDExplosiveA"
static const string SLOT_EXPLOSIVE_B = "IEDExplosiveB"
static const string SLOT_TRIGGER_ALARM_CLOCK = "TriggerAlarmClock"
static const string SLOT_TRIGGER_KITCHEN_TIMER = "TriggerKitchenTimer"
static const string SLOT_TRIGGER_REMOTE = "TriggerRemoteDetonator_Receiver"

Detailed Description

Definition at line 1 of file improvisedexplosive.c.

Constructor & Destructor Documentation

◆ ImprovisedExplosive()

void ImprovisedExplosive ( )
inlineprotected

Definition at line 34 of file improvisedexplosive.c.

References m_RAIB.

Member Function Documentation

◆ CanBeArmed()

override bool CanBeArmed ( )
inlineprotected

Definition at line 165 of file improvisedexplosive.c.

References GetArmed(), HasLockedTriggerSlots(), SLOT_EXPLOSIVES, and slotName.

◆ CanBeDisarmed()

override bool CanBeDisarmed ( )
inlineprotected

Definition at line 183 of file improvisedexplosive.c.

◆ CanDisplayAttachmentSlot()

override bool CanDisplayAttachmentSlot ( int slot_id)
inlineprotected

◆ CanReceiveAttachment()

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected

◆ EEHealthLevelChanged()

override void EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprotected

Definition at line 245 of file improvisedexplosive.c.

References g_Game, SetArmed(), SetTakeable(), and GameConstants::STATE_RUINED.

◆ EEItemAttached()

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected

◆ EEItemDetached()

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected

◆ EEItemLocationChanged()

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

Definition at line 140 of file improvisedexplosive.c.

References m_RAIB.

◆ EOnInit()

override void EOnInit ( IEntity other,
int extra )
inlineprotected

Definition at line 42 of file improvisedexplosive.c.

References g_Game, and LockTriggerSlots().

◆ GetArmSoundset()

override string GetArmSoundset ( )
inlineprotected

Definition at line 494 of file improvisedexplosive.c.

◆ GetDeploySoundset()

override string GetDeploySoundset ( )
inlineprotected

Definition at line 484 of file improvisedexplosive.c.

◆ GetDisarmSoundset()

override string GetDisarmSoundset ( )
inlineprotected

Definition at line 499 of file improvisedexplosive.c.

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )
inlineprotected

Definition at line 489 of file improvisedexplosive.c.

◆ GetPairDevice()

override EntityAI GetPairDevice ( )
inlineprotected

Definition at line 160 of file improvisedexplosive.c.

References m_RAIB.

◆ GetRemotelyActivatedItemBehaviour()

override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour ( )
inlineprotected

Definition at line 150 of file improvisedexplosive.c.

References m_RAIB.

◆ HasLockedTriggerSlots()

override bool HasLockedTriggerSlots ( )
inlineprotected

Definition at line 48 of file improvisedexplosive.c.

References InventorySlots::GetSlotIdFromString(), and SLOT_TRIGGERS.

Referenced by CanBeArmed().

◆ InitiateExplosion()

void InitiateExplosion ( )
protected

not exploding itself, rely on attached explosives

◆ IsDeployable()

override bool IsDeployable ( )
inlineprotected

Definition at line 232 of file improvisedexplosive.c.

References GetArmed().

◆ IsTakeable()

override bool IsTakeable ( )
inlineprotected

Definition at line 227 of file improvisedexplosive.c.

References GetArmed().

◆ IsTimerDetonable()

override bool IsTimerDetonable ( )
inlineprotected

Definition at line 222 of file improvisedexplosive.c.

◆ LockExplosivesSlots()

override void LockExplosivesSlots ( )
inlineprotected

Definition at line 68 of file improvisedexplosive.c.

References InventorySlots::GetSlotIdFromString(), and SLOT_EXPLOSIVES.

Referenced by OnTriggerAttached().

◆ LockTriggerSlots()

override void LockTriggerSlots ( )
inlineprotected

◆ OnActivatedByItem()

override void OnActivatedByItem ( notnull ItemBase item)
inlineprotected

attachment special handling on disarm

go through attached explosives

hard-case blocks shells (result of deferred delete)

defer delete to allow ringing

final traverse - attached explosives activation

defer damage to trigger attachments to allow ringing

Definition at line 269 of file improvisedexplosive.c.

References ANIM_PHASE_VISIBILITY, CALL_CATEGORY_SYSTEM, ClockBase(), g_Game, GetArmed(), TIME_TRIGGER_DELAY_SECS, TIME_TRIGGER_INITIAL_DELAY_SECS, and TIME_TRIGGER_TIMER_BASED_DELAY_SECS.

◆ OnBeforeDisarm()

override void OnBeforeDisarm ( )
inlineprotected

Definition at line 373 of file improvisedexplosive.c.

References UnlockExplosivesSlots().

◆ OnDisarmed()

override void OnDisarmed ( bool pWithTool)
inlineprotected

attachment special handling on disarm

Definition at line 378 of file improvisedexplosive.c.

References ClockBase(), LockTriggerSlots(), SetTakeable(), and UnpairRemote().

◆ OnPlacementComplete()

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected

Definition at line 130 of file improvisedexplosive.c.

References g_Game, and vector::Up.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

Definition at line 80 of file improvisedexplosive.c.

References InventorySlots::GetSlotIdFromString(), and SLOT_TRIGGERS.

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

Definition at line 102 of file improvisedexplosive.c.

References LockTriggerSlots().

◆ OnTriggerAttached()

void OnTriggerAttached ( EntityAI entity)
inlineprotected

◆ OnTriggerDetached()

void OnTriggerDetached ( EntityAI entity)
inlineprotected

Definition at line 443 of file improvisedexplosive.c.

References UpdateLED(), and UpdateVisuals().

Referenced by EEItemDetached().

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
inlineprotected

Definition at line 109 of file improvisedexplosive.c.

References m_RAIB, SLOT_TRIGGERS, slotName, and UpdateVisuals().

◆ PairRemote()

override void PairRemote ( notnull EntityAI trigger)
inlineprotected

Definition at line 155 of file improvisedexplosive.c.

References m_RAIB.

◆ SetActions()

override void SetActions ( )
inlineprotected

Definition at line 237 of file improvisedexplosive.c.

References ActionDeployObject(), and AddAction().

◆ UnlockExplosivesSlots()

override void UnlockExplosivesSlots ( )
inlineprotected

Definition at line 74 of file improvisedexplosive.c.

References InventorySlots::GetSlotIdFromString(), and SLOT_EXPLOSIVES.

Referenced by OnBeforeDisarm().

◆ UnlockTriggerSlots()

override void UnlockTriggerSlots ( )
inlineprotected

Definition at line 62 of file improvisedexplosive.c.

References InventorySlots::GetSlotIdFromString(), and SLOT_TRIGGERS.

◆ UpdateLED()

override void UpdateLED ( int pState)
inlineprotected

Definition at line 424 of file improvisedexplosive.c.

References RemoteDetonatorReceiver(), and SLOT_TRIGGER_REMOTE.

Referenced by OnTriggerAttached(), and OnTriggerDetached().

◆ UpdateVisuals()

void UpdateVisuals ( EntityAI entity)
inlineprotected

Field Documentation

◆ ANIM_PHASE_TRIGGER_CLOCK

const string ANIM_PHASE_TRIGGER_CLOCK = "TriggerClock"
protected

Definition at line 29 of file improvisedexplosive.c.

Referenced by UpdateVisuals().

◆ ANIM_PHASE_TRIGGER_EMPTY

const string ANIM_PHASE_TRIGGER_EMPTY = "TriggerEmpty"
protected

Definition at line 27 of file improvisedexplosive.c.

Referenced by UpdateVisuals().

◆ ANIM_PHASE_TRIGGER_REMOTE

const string ANIM_PHASE_TRIGGER_REMOTE = "TriggerRemote"
protected

Definition at line 30 of file improvisedexplosive.c.

Referenced by UpdateVisuals().

◆ ANIM_PHASE_TRIGGER_TIMER

const string ANIM_PHASE_TRIGGER_TIMER = "TriggerTimer"
protected

Definition at line 28 of file improvisedexplosive.c.

Referenced by UpdateVisuals().

◆ m_RAIB

◆ SLOT_EXPLOSIVE_A

const string SLOT_EXPLOSIVE_A = "IEDExplosiveA"
staticprotected

Definition at line 11 of file improvisedexplosive.c.

◆ SLOT_EXPLOSIVE_B

const string SLOT_EXPLOSIVE_B = "IEDExplosiveB"
staticprotected

Definition at line 12 of file improvisedexplosive.c.

◆ SLOT_EXPLOSIVE_COUNT

const int SLOT_EXPLOSIVE_COUNT = 2
protected

Definition at line 14 of file improvisedexplosive.c.

◆ SLOT_EXPLOSIVES

const string SLOT_EXPLOSIVES[SLOT_EXPLOSIVE_COUNT]
protected
Initial value:
= {
}
static const string SLOT_EXPLOSIVE_A
static const string SLOT_EXPLOSIVE_B

Definition at line 15 of file improvisedexplosive.c.

Referenced by CanBeArmed(), LockExplosivesSlots(), and UnlockExplosivesSlots().

◆ SLOT_TRIGGER_ALARM_CLOCK

const string SLOT_TRIGGER_ALARM_CLOCK = "TriggerAlarmClock"
staticprotected

Definition at line 7 of file improvisedexplosive.c.

Referenced by CanDisplayAttachmentSlot(), EEItemAttached(), and EEItemDetached().

◆ SLOT_TRIGGER_KITCHEN_TIMER

const string SLOT_TRIGGER_KITCHEN_TIMER = "TriggerKitchenTimer"
staticprotected

Definition at line 8 of file improvisedexplosive.c.

Referenced by CanDisplayAttachmentSlot(), EEItemAttached(), and EEItemDetached().

◆ SLOT_TRIGGER_REMOTE

const string SLOT_TRIGGER_REMOTE = "TriggerRemoteDetonator_Receiver"
staticprotected

◆ SLOT_TRIGGERS

◆ SLOT_TRIGGERS_COUNT

const int SLOT_TRIGGERS_COUNT = 3
protected

Definition at line 20 of file improvisedexplosive.c.

◆ TIME_TRIGGER_DELAY_SECS

const float TIME_TRIGGER_DELAY_SECS = 0.3
protected

Definition at line 5 of file improvisedexplosive.c.

Referenced by OnActivatedByItem().

◆ TIME_TRIGGER_INITIAL_DELAY_SECS

const float TIME_TRIGGER_INITIAL_DELAY_SECS = 0.1
protected

Definition at line 3 of file improvisedexplosive.c.

Referenced by OnActivatedByItem().

◆ TIME_TRIGGER_TIMER_BASED_DELAY_SECS

const float TIME_TRIGGER_TIMER_BASED_DELAY_SECS = 1.0
protected

Definition at line 4 of file improvisedexplosive.c.

Referenced by OnActivatedByItem().


The documentation for this class was generated from the following file: