Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
explosivesbase.c File Reference

Go to the source code of this file.

Data Structures

class  ExplosiveLight
 

Functions

void ExplosivesBase ()
 
override bool IsExplosive ()
 
override void OnExplosionEffects (Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, float energyFactor, float explosionFactor, bool isWater, string ammoType)
 
override void EEDelete (EntityAI parent)
 
override void EEKilled (Object killer)
 
override void OnCEUpdate ()
 
override void UnpairRemote ()
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
protected void CreateLight ()
 
protected void DestroyParticle (Particle p)
 
protected void InitiateExplosion ()
 
protected void OnExplode ()
 
override void SetActions ()
 
override bool IsInventoryVisible ()
 
override bool IsTakeable ()
 
bool IsTimerDetonable ()
 
void Arm ()
 
void OnArmed ()
 
bool CanBeArmed ()
 
void Disarm (bool pWithTool=false)
 
void OnBeforeDisarm ()
 
void OnDisarmed (bool pWithTool)
 
bool CanBeDisarmed ()
 
bool GetArmed ()
 
protected void SetArmed (bool state)
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI parent)
 
override bool CanRemoveFromHands (EntityAI parent)
 
bool GetDefused ()
 
protected void SetDefused (bool state)
 
void SetAmmoType (string pAmmoType)
 
void SetAmmoTypes (array< string > pAmmoTypes)
 
void SetParticleExplosion (int particle)
 
void SetParticlePosition (vector local_pos)
 set position for smoke particle - needs to be in Local Space More...
 
void SetParticleOrientation (vector local_ori)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
void UpdateLED (int pState)
 HELPERS. More...
 
bool HasLockedTriggerSlots ()
 
void LockTriggerSlots ()
 
void UnlockTriggerSlots ()
 
void LockExplosivesSlots ()
 
void UnlockExplosivesSlots ()
 

Variables

ExplosiveLight DEFAULT_AMMO_TYPE = "Explosion_NonLethal"
 
const protected string ANIM_PHASE_VISIBILITY = "Visibility"
 
protected bool m_Armed
 
protected bool m_Defused
 
protected ref array< stringm_AmmoTypes
 
protected ref Timer m_DeleteTimer
 
protected ExplosiveLight m_Light
 light
More...
 
protected Particle m_ParticleExplosion
 particle More...
 
protected ref array< ParticleSourcem_ParticleExplosionArr = {}
 
protected int m_ParticleExplosionId
 
protected vector m_ParticlePosition
 
protected vector m_ParticleOrientation
 

Function Documentation

◆ Arm()

void Arm ( )

Definition at line 207 of file explosivesbase.c.

◆ CanBeArmed()

bool CanBeArmed ( )

Definition at line 216 of file explosivesbase.c.

◆ CanBeDisarmed()

bool CanBeDisarmed ( )

Definition at line 231 of file explosivesbase.c.

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI  parent)

Definition at line 247 of file explosivesbase.c.

◆ CanPutIntoHands()

override bool CanPutIntoHands ( EntityAI  parent)

Definition at line 257 of file explosivesbase.c.

◆ CanRemoveFromHands()

override bool CanRemoveFromHands ( EntityAI  parent)

Definition at line 267 of file explosivesbase.c.

◆ CreateLight()

protected void CreateLight ( )

Definition at line 145 of file explosivesbase.c.

◆ DestroyParticle()

protected void DestroyParticle ( Particle  p)

Definition at line 150 of file explosivesbase.c.

◆ Disarm()

void Disarm ( bool  pWithTool = false)

Definition at line 221 of file explosivesbase.c.

◆ EEDelete()

override void EEDelete ( EntityAI  parent)

Definition at line 80 of file explosivesbase.c.

◆ EEKilled()

override void EEKilled ( Object  killer)

should be called only here to avoid multiple explosion calculations, call SetHealth("","",0.0) instead

Definition at line 93 of file explosivesbase.c.

◆ ExplosivesBase()

void ExplosivesBase ( )

no effect

Definition at line 40 of file explosivesbase.c.

◆ GetArmed()

bool GetArmed ( )

Definition at line 236 of file explosivesbase.c.

◆ GetDefused()

bool GetDefused ( )

Definition at line 272 of file explosivesbase.c.

◆ HasLockedTriggerSlots()

bool HasLockedTriggerSlots ( )

Definition at line 348 of file explosivesbase.c.

◆ InitiateExplosion()

protected void InitiateExplosion ( )

Definition at line 160 of file explosivesbase.c.

◆ IsExplosive()

override bool IsExplosive ( )

Definition at line 55 of file explosivesbase.c.

◆ IsInventoryVisible()

override bool IsInventoryVisible ( )

Definition at line 187 of file explosivesbase.c.

◆ IsTakeable()

override bool IsTakeable ( )

Definition at line 197 of file explosivesbase.c.

◆ IsTimerDetonable()

bool IsTimerDetonable ( )

Definition at line 202 of file explosivesbase.c.

◆ LockExplosivesSlots()

void LockExplosivesSlots ( )

◆ LockTriggerSlots()

void LockTriggerSlots ( )

◆ OnArmed()

void OnArmed ( )

◆ OnBeforeDisarm()

void OnBeforeDisarm ( )

◆ OnCEUpdate()

override void OnCEUpdate ( )

Definition at line 103 of file explosivesbase.c.

◆ OnDisarmed()

void OnDisarmed ( bool  pWithTool)

◆ OnExplode()

protected void OnExplode ( )

Definition at line 171 of file explosivesbase.c.

◆ OnExplosionEffects()

override void OnExplosionEffects ( Object  source,
Object  directHit,
int  componentIndex,
string  surface,
vector  pos,
vector  surfNormal,
float  energyFactor,
float  explosionFactor,
bool  isWater,
string  ammoType 
)

Definition at line 60 of file explosivesbase.c.

◆ OnPlacementComplete()

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

Definition at line 133 of file explosivesbase.c.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)

Definition at line 327 of file explosivesbase.c.

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext  ctx)

Definition at line 320 of file explosivesbase.c.

◆ SetActions()

override void SetActions ( )

Definition at line 179 of file explosivesbase.c.

◆ SetAmmoType()

void SetAmmoType ( string  pAmmoType)

Definition at line 283 of file explosivesbase.c.

◆ SetAmmoTypes()

void SetAmmoTypes ( array< string pAmmoTypes)

Definition at line 288 of file explosivesbase.c.

◆ SetArmed()

protected void SetArmed ( bool  state)

Definition at line 241 of file explosivesbase.c.

◆ SetDefused()

protected void SetDefused ( bool  state)

Definition at line 277 of file explosivesbase.c.

◆ SetParticleExplosion()

void SetParticleExplosion ( int  particle)

Definition at line 294 of file explosivesbase.c.

◆ SetParticleOrientation()

void SetParticleOrientation ( vector  local_ori)

Definition at line 310 of file explosivesbase.c.

◆ SetParticlePosition()

void SetParticlePosition ( vector  local_pos)

set position for smoke particle - needs to be in Local Space

Definition at line 300 of file explosivesbase.c.

◆ UnlockExplosivesSlots()

void UnlockExplosivesSlots ( )

◆ UnlockTriggerSlots()

void UnlockTriggerSlots ( )

◆ UnpairRemote()

override void UnpairRemote ( )

Definition at line 120 of file explosivesbase.c.

◆ UpdateLED()

void UpdateLED ( int  pState)

HELPERS.

Variable Documentation

◆ ANIM_PHASE_VISIBILITY

const protected string ANIM_PHASE_VISIBILITY = "Visibility"

Definition at line 22 of file explosivesbase.c.

◆ DEFAULT_AMMO_TYPE

ExplosiveLight DEFAULT_AMMO_TYPE = "Explosion_NonLethal"

◆ m_AmmoTypes

protected ref array<string> m_AmmoTypes

Definition at line 26 of file explosivesbase.c.

◆ m_Armed

protected bool m_Armed

Definition at line 24 of file explosivesbase.c.

◆ m_Defused

protected bool m_Defused

Definition at line 25 of file explosivesbase.c.

◆ m_DeleteTimer

protected ref Timer m_DeleteTimer

Definition at line 28 of file explosivesbase.c.

◆ m_Light

protected ExplosiveLight m_Light

light

Definition at line 31 of file explosivesbase.c.

◆ m_ParticleExplosion

protected Particle m_ParticleExplosion

particle

Definition at line 34 of file explosivesbase.c.

◆ m_ParticleExplosionArr

protected ref array<ParticleSource> m_ParticleExplosionArr = {}

Definition at line 35 of file explosivesbase.c.

◆ m_ParticleExplosionId

protected int m_ParticleExplosionId

Definition at line 36 of file explosivesbase.c.

◆ m_ParticleOrientation

protected vector m_ParticleOrientation

Definition at line 38 of file explosivesbase.c.

◆ m_ParticlePosition

protected vector m_ParticlePosition

Definition at line 37 of file explosivesbase.c.