DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
TrapBase Class Reference

#include <TrapBase.h>

Inheritance diagram for TrapBase:
ItemBase Trap_Bear Trap_LandMine Trap_TripWire EN5C_BearTrap EN5C_LandMineTrap EN5C_TripwireTrap

Private Member Functions

void  TrapBase ()
 
void  ~TrapBase ()
 
bool  IsActive ()
 
bool  IsInactive ()
 
bool  IsActivable ()
 
bool  IsTakeable ()
 
bool  IsPlaceable ()
 
bool  IsPlaceableAtPosition (vector position)
 
void  AddDamageToVictim (Object victim)
 
void  RefreshState ()
 
void  SetupTrap ()
 
void  SetupTrapPlayer (PlayerBase player, bool set_position=true)
 
protected bool  AddDefect ()
 
void  StartActivate (PlayerBase player)
 
void  SetActive ()
 
void  StartDeactivate (PlayerBase player)
 
void  SetInactive (bool stop_timer=true)
 
void  OnDeactivateWrongManipulation (PlayerBase player)
 
void  CreateTrigger ()
 
protected void  EEItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
protected void  EEItemAttached (EntityAI item, string slot_name)
 
protected void  EEItemDetached (EntityAI item, string slot_name)
 
bool  ConditionIntoInventory (EntityAI parent)
 
bool  ConditionIntoHands (EntityAI item_in)
 
bool  ConditionOutOfHands (EntityAI item_in)
 
void  OnPlacementFinished (PlayerBase player)
 
bool  CanBePlaced (PlayerBase player, vector position)
 
string  CanBePlacedFailMessage (PlayerBase player, vector position)
 

Private Attributes

int  m_InitWaitTime
 
bool  m_NeedActivation
 
float  m_DefectRate
 
float  m_DamagePlayers
 
float  m_DamageOthers
 
float  m_WrongManipulation
 
bool  m_Reactivable
 
bool  m_CustomExplosion
 
string  m_CustomExplosionEvent
 
int  m_Radius
 
bool  m_AddActivationDefect
 
bool  m_AddDeactivationDefect
 
bool  m_WasActivatedOrDeactivated
 
autoptr array< string >  m_SurfaceForSetup
 
string  m_AnimationPhaseGrounded
 
string  m_AnimationPhaseSet
 
string  m_AnimationPhaseTriggered
 
autoptr map< string, string >  m_AnimationPhaseAttachment
 
autoptr map< string, string >  m_AttachmentEvent
 
string  m_InfoSetup
 
string  m_InfoDeactivated
 
string  m_InfoDamageManipulation
 
string  m_InfoDamage
 
string  m_InfoActivationTime
 
autoptr EntityAnimEndEventHandler  m_anim_end_event_handler
 
protected Timer  m_Timer
 
protected TrapTrigger  m_TrapTrigger
 
protected ItemBase  m_ExplosionObject
 
protected bool  m_IsActive
 
protected bool  m_IsInProgress
 

Constructor & Destructor Documentation

void TrapBase::TrapBase ( )
private
void TrapBase::~TrapBase ( )
private

Member Function Documentation

bool TrapBase::IsActive ( )
private
bool TrapBase::IsInactive ( )
private
bool TrapBase::IsActivable ( )
private
bool TrapBase::IsTakeable ( )
private
bool TrapBase::IsPlaceable ( )
private
bool TrapBase::IsPlaceableAtPosition ( vector  position )
private
void TrapBase::AddDamageToVictim ( Object  victim )
private
void TrapBase::RefreshState ( )
private
void TrapBase::SetupTrap ( )
private
void TrapBase::SetupTrapPlayer ( PlayerBase  player,
bool  set_position = true 
)
private
bool TrapBase::AddDefect ( )
private
void TrapBase::StartActivate ( PlayerBase  player )
private
void TrapBase::SetActive ( )
private
void TrapBase::StartDeactivate ( PlayerBase  player )
private
void TrapBase::SetInactive ( bool  stop_timer = true )
private
void TrapBase::OnDeactivateWrongManipulation ( PlayerBase  player )
private
void TrapBase::CreateTrigger ( )
private
void TrapBase::EEItemLocationChanged ( EntityAI  old_owner,
EntityAI  new_owner 
)
private
void TrapBase::EEItemAttached ( EntityAI  item,
string  slot_name 
)
private

References g_Game, and RefreshState().

void TrapBase::EEItemDetached ( EntityAI  item,
string  slot_name 
)
private

References g_Game, and RefreshState().

bool TrapBase::ConditionIntoInventory ( EntityAI  parent )
private

References IsTakeable().

bool TrapBase::ConditionIntoHands ( EntityAI  item_in )
private

References IsTakeable().

bool TrapBase::ConditionOutOfHands ( EntityAI  item_in )
private

References IsTakeable().

void TrapBase::OnPlacementFinished ( PlayerBase  player )
private

References SetupTrapPlayer().

bool TrapBase::CanBePlaced ( PlayerBase  player,
vector  position 
)
private
string TrapBase::CanBePlacedFailMessage ( PlayerBase  player,
vector  position 
)
private

Member Data Documentation

int TrapBase::m_InitWaitTime
private
bool TrapBase::m_NeedActivation
private
float TrapBase::m_DefectRate
private
float TrapBase::m_DamagePlayers
private
float TrapBase::m_DamageOthers
private

Referenced by AddDamageToVictim(), and TrapBase().

float TrapBase::m_WrongManipulation
private
bool TrapBase::m_Reactivable
private
bool TrapBase::m_CustomExplosion
private
string TrapBase::m_CustomExplosionEvent
private
int TrapBase::m_Radius
private

Referenced by TrapBase().

bool TrapBase::m_AddActivationDefect
private

Referenced by SetActive(), and TrapBase().

bool TrapBase::m_AddDeactivationDefect
private
bool TrapBase::m_WasActivatedOrDeactivated
private
autoptr array<string> TrapBase::m_SurfaceForSetup
private
string TrapBase::m_AnimationPhaseGrounded
private
string TrapBase::m_AnimationPhaseSet
private
string TrapBase::m_AnimationPhaseTriggered
private
autoptr map<string, string> TrapBase::m_AnimationPhaseAttachment
private
autoptr map<string, string> TrapBase::m_AttachmentEvent
private
string TrapBase::m_InfoSetup
private

Referenced by SetupTrapPlayer(), and TrapBase().

string TrapBase::m_InfoDeactivated
private
string TrapBase::m_InfoDamageManipulation
private
string TrapBase::m_InfoDamage
private

Referenced by AddDamageToVictim(), and TrapBase().

string TrapBase::m_InfoActivationTime
private
autoptr EntityAnimEndEventHandler TrapBase::m_anim_end_event_handler
private
protected Timer TrapBase::m_Timer
private
protected TrapTrigger TrapBase::m_TrapTrigger
private
protected ItemBase TrapBase::m_ExplosionObject
private
protected bool TrapBase::m_IsActive
private
protected bool TrapBase::m_IsInProgress
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)