PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
TrapBase Class Reference

Private Member Functions

void BearTrap ()
 
override bool CanBeDisarmed ()
 
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
 
override void CreateTrigger ()
 
override void OnUpdate (EntityAI victim)
 
override void OnSteppedOn (EntityAI victim)
 
override void OnSteppedOut (EntityAI victim)
 
protected void OnServerSteppedOn (Object obj, string damageZone)
 
void CauseVictimToStartLimping (Object obj, string damagedZone)
 
void PlaySoundBiteLeg ()
 
void PlaySoundBiteEmpty ()
 
void PlaySoundOpen ()
 
override void OnActivate ()
 
override void OnDisarm ()
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override bool IsDeployable ()
 
override string GetLoopDeploySoundset ()
 
override void SetActions ()
 

Static Private Attributes

static const int RAYCAST_SOURCES_COUNT = 5
 
static const vector m_RaycastSources [RAYCAST_SOURCES_COUNT]
 

Member Function Documentation

◆ BearTrap()

◆ CanBeDisarmed()

override bool CanBeDisarmed ( )
inlineprivate

◆ CauseVictimToStartLimping()

void CauseVictimToStartLimping ( Object  obj,
string  damagedZone 
)
inlineprivate

References Class::CastTo().

Referenced by OnServerSteppedOn().

◆ CreateTrigger()

override void CreateTrigger ( )
inlineprivate

◆ EEHealthLevelChanged()

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

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )
inlineprivate

◆ IsDeployable()

override bool IsDeployable ( )
inlineprivate

◆ OnActivate()

override void OnActivate ( )
inlineprivate

References PlaySoundOpen().

Referenced by SetActive().

◆ OnDisarm()

override void OnDisarm ( )
inlineprivate

References PlaySoundBiteEmpty().

Referenced by Disarm(), and OnRPC().

◆ OnPlacementComplete()

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

References GetGame(), and StartActivate().

Referenced by OnFinishProgressServer().

◆ OnServerSteppedOn()

protected void OnServerSteppedOn ( Object  obj,
string  damageZone 
)
inlineprivate

◆ OnSteppedOn()

override void OnSteppedOn ( EntityAI  victim)
inlineprivate

CarScript specific reaction on BearTrap

this is also called on client (OnRPC->SnapOn->OnSteppedOn chain)

References RaycastRVParams::flags, GetGame(), m_RaycastSources, m_UpdateTimer, OnServerSteppedOn(), PlaySoundBiteLeg(), RaycastRVParams::radius, DayZPhysics::RaycastRVProxy(), RaycastRVParams::type, and UPDATE_TIMER_INTERVAL.

Referenced by SnapOnObject().

◆ OnSteppedOut()

override void OnSteppedOut ( EntityAI  victim)
inlineprivate

References m_UpdateTimer, and Timer::Stop().

Referenced by RemoveFromObject().

◆ OnUpdate()

override void OnUpdate ( EntityAI  victim)
inlineprivate

◆ PlaySoundBiteEmpty()

void PlaySoundBiteEmpty ( )
inlineprivate

◆ PlaySoundBiteLeg()

void PlaySoundBiteLeg ( )
inlineprivate

◆ PlaySoundOpen()

void PlaySoundOpen ( )
inlineprivate

◆ SetActions()

override void SetActions ( )
inlineprivate

Field Documentation

◆ m_RaycastSources

const vector m_RaycastSources[RAYCAST_SOURCES_COUNT]
staticprivate
Initial value:
= {
"0.0 0.1 0.0",
"0.2 0.1 0.2",
"-.2 0.1 0.2",
"0.2 0.1 -0.2",
"-0.2 0.1 -0.2"
}

Referenced by OnSteppedOn().

◆ RAYCAST_SOURCES_COUNT

const int RAYCAST_SOURCES_COUNT = 5
staticprivate

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