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

Protected Member Functions

void Plastic_Explosive ()
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 EEKilled (Object killer)
 special behaviour - do not call super from ExplosivesBase
override bool EEOnDamageCalculated (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
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 ()
override bool IsDeployable ()
override bool IsTakeable ()
override void LockTriggerSlots ()
override void OnActivatedByItem (notnull ItemBase item)
override void OnDisarmed (bool pWithTool)
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 OnWasAttached (EntityAI parent, int slot_id)
override void OnWasDetached (EntityAI parent, int slot_id)
override void PairRemote (notnull EntityAI trigger)
override void SetActions ()
override void UnlockTriggerSlots ()
override void UpdateLED (int pState)
void UpdateVisuals (EntityAI entity)

Protected Attributes

const string ANIM_PHASE_TRIGGER_REMOTE = "TriggerRemote"
ref RemotelyActivatedItemBehaviour m_RAIB
bool m_UsedAsCharge
const string SLOT_TRIGGER = "TriggerRemoteDetonator_Receiver"

Detailed Description

Definition at line 1 of file plastic_explosive.c.

Constructor & Destructor Documentation

◆ Plastic_Explosive()

void Plastic_Explosive ( )
inlineprotected

Member Function Documentation

◆ CanBeArmed()

override bool CanBeArmed ( )
inlineprotected

Definition at line 221 of file plastic_explosive.c.

References GetArmed(), and HasLockedTriggerSlots().

◆ CanBeDisarmed()

override bool CanBeDisarmed ( )
inlineprotected

Definition at line 231 of file plastic_explosive.c.

References GetArmed().

◆ CanDisplayAttachmentSlot()

override bool CanDisplayAttachmentSlot ( int slot_id)
inlineprotected

Definition at line 116 of file plastic_explosive.c.

References InventorySlots::GetSlotName(), SLOT_TRIGGER, and slotName.

◆ CanReceiveAttachment()

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected

Definition at line 98 of file plastic_explosive.c.

References ClockBase(), GetArmed(), and InventoryLocation::GetType().

◆ EEHealthLevelChanged()

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

Definition at line 181 of file plastic_explosive.c.

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

◆ EEItemAttached()

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected

Definition at line 295 of file plastic_explosive.c.

References OnTriggerAttached(), and SLOT_TRIGGER.

◆ EEItemDetached()

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected

Definition at line 303 of file plastic_explosive.c.

References OnTriggerDetached(), and SLOT_TRIGGER.

◆ EEItemLocationChanged()

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

Definition at line 88 of file plastic_explosive.c.

References m_RAIB.

◆ EEKilled()

override void EEKilled ( Object killer)
inlineprotected

special behaviour - do not call super from ExplosivesBase

Definition at line 28 of file plastic_explosive.c.

References g_Game.

◆ EEOnDamageCalculated()

override bool EEOnDamageCalculated ( TotalDamageResult damageResult,
int damageType,
EntityAI source,
int component,
string dmgZone,
string ammo,
vector modelPos,
float speedCoef )
inlineprotected

ignores explosion damage from other Plastic_Explosive that are used as charge(like 2 PE fired via IED)

Definition at line 170 of file plastic_explosive.c.

References component, and m_UsedAsCharge.

◆ EOnInit()

override void EOnInit ( IEntity other,
int extra )
inlineprotected

Definition at line 21 of file plastic_explosive.c.

References g_Game, and LockTriggerSlots().

◆ GetArmSoundset()

override string GetArmSoundset ( )
inlineprotected

Definition at line 364 of file plastic_explosive.c.

◆ GetDeploySoundset()

override string GetDeploySoundset ( )
inlineprotected

Definition at line 354 of file plastic_explosive.c.

◆ GetDisarmSoundset()

override string GetDisarmSoundset ( )
inlineprotected

Definition at line 369 of file plastic_explosive.c.

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )
inlineprotected

Definition at line 359 of file plastic_explosive.c.

◆ GetPairDevice()

override EntityAI GetPairDevice ( )
inlineprotected

Definition at line 216 of file plastic_explosive.c.

References m_RAIB.

Referenced by OnActivatedByItem().

◆ GetRemotelyActivatedItemBehaviour()

override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour ( )
inlineprotected

Definition at line 205 of file plastic_explosive.c.

References m_RAIB.

◆ HasLockedTriggerSlots()

override bool HasLockedTriggerSlots ( )
inlineprotected

Definition at line 34 of file plastic_explosive.c.

References InventorySlots::GetSlotIdFromString(), and SLOT_TRIGGER.

Referenced by CanBeArmed().

◆ IsDeployable()

override bool IsDeployable ( )
inlineprotected

Definition at line 135 of file plastic_explosive.c.

References GetArmed().

◆ IsTakeable()

override bool IsTakeable ( )
inlineprotected

Definition at line 130 of file plastic_explosive.c.

References GetArmed().

◆ LockTriggerSlots()

override void LockTriggerSlots ( )
inlineprotected

Definition at line 39 of file plastic_explosive.c.

References InventorySlots::GetSlotIdFromString(), and SLOT_TRIGGER.

Referenced by EOnInit(), OnDisarmed(), and OnStoreSave().

◆ OnActivatedByItem()

override void OnActivatedByItem ( notnull ItemBase item)
inlineprotected

◆ OnDisarmed()

override void OnDisarmed ( bool pWithTool)
inlineprotected

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

Definition at line 49 of file plastic_explosive.c.

References InventorySlots::GetSlotIdFromString(), and SLOT_TRIGGER.

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

Definition at line 68 of file plastic_explosive.c.

References LockTriggerSlots().

◆ OnTriggerAttached()

void OnTriggerAttached ( EntityAI entity)
inlineprotected

Definition at line 320 of file plastic_explosive.c.

References Arm(), UpdateLED(), and UpdateVisuals().

Referenced by EEItemAttached().

◆ OnTriggerDetached()

void OnTriggerDetached ( EntityAI entity)
inlineprotected

Definition at line 336 of file plastic_explosive.c.

References UpdateLED(), and UpdateVisuals().

Referenced by EEItemDetached().

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
inlineprotected

◆ OnWasAttached()

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprotected

Definition at line 148 of file plastic_explosive.c.

References ExplosivesBase(), and m_UsedAsCharge.

◆ OnWasDetached()

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprotected

Definition at line 160 of file plastic_explosive.c.

References ExplosivesBase(), and m_UsedAsCharge.

◆ PairRemote()

override void PairRemote ( notnull EntityAI trigger)
inlineprotected

Definition at line 210 of file plastic_explosive.c.

References m_RAIB.

◆ SetActions()

override void SetActions ( )
inlineprotected

Definition at line 140 of file plastic_explosive.c.

References ActionDeployObject(), and AddAction().

◆ UnlockTriggerSlots()

override void UnlockTriggerSlots ( )
inlineprotected

Definition at line 44 of file plastic_explosive.c.

References InventorySlots::GetSlotIdFromString(), and SLOT_TRIGGER.

◆ UpdateLED()

override void UpdateLED ( int pState)
inlineprotected

Definition at line 311 of file plastic_explosive.c.

References RemoteDetonatorReceiver(), and SLOT_TRIGGER.

Referenced by OnTriggerAttached(), and OnTriggerDetached().

◆ UpdateVisuals()

void UpdateVisuals ( EntityAI entity)
inlineprotected

Definition at line 342 of file plastic_explosive.c.

References ANIM_PHASE_TRIGGER_REMOTE.

Field Documentation

◆ ANIM_PHASE_TRIGGER_REMOTE

const string ANIM_PHASE_TRIGGER_REMOTE = "TriggerRemote"
protected

Definition at line 4 of file plastic_explosive.c.

Referenced by UpdateVisuals().

◆ m_RAIB

◆ m_UsedAsCharge

bool m_UsedAsCharge
protected

Definition at line 6 of file plastic_explosive.c.

Referenced by EEOnDamageCalculated(), OnWasAttached(), and OnWasDetached().

◆ SLOT_TRIGGER

const string SLOT_TRIGGER = "TriggerRemoteDetonator_Receiver"
protected

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