Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
VicinityItemManager Class Reference

Protected Member Functions

float GetFixedHeadHeightAdjustment (PlayerBase player)
bool IsObstructed (Object filtered_object)

Private Member Functions

void AddVicinityCargos (CargoBase object)
void AddVicinityItems (Object object)
bool CanIgnoreDistanceCheck (EntityAI entity_ai)
bool ExcludeFromContainer_Phase1 (Object actor_in_radius)
bool ExcludeFromContainer_Phase2 (Object object_in_radius)
bool ExcludeFromContainer_Phase3 (Object object_in_cone)
array< CargoBaseGetVicinityCargos ()
array< EntityAIGetVicinityItems ()
void Init ()
void RefreshVicinityItems ()
void ResetRefreshCounter ()
void Update (float delta_time)

Static Private Member Functions

static VicinityItemManager GetInstance ()

Private Attributes

const string CE_CENTER = "ce_center"
const float CONE_HEIGHT_MAX = 3.0
const float CONE_HEIGHT_MIN = -0.5
const float HEIGHT_OFFSET = 0.2
float m_RefreshCounter
ref array< CargoBasem_VicinityCargos = new array<CargoBase>()
ref array< EntityAIm_VicinityItems = new array<EntityAI>()
const int OBJECT_OBSTRUCTION_WEIGHT = 10000
const float UPDATE_FREQUENCY = 0.25
const float VICINITY_ACTOR_DISTANCE = 2.0
const float VICINITY_CONE_ANGLE = 30
const float VICINITY_CONE_DISTANCE = 2.0
const float VICINITY_CONE_RADIANS = 0.5
const float VICINITY_CONE_REACH_DISTANCE = 2.0
const float VICINITY_DISTANCE = 0.5
const float VICINITY_LARGE_ACTOR_DISTANCE = 3.0

Static Private Attributes

static ref VicinityItemManager s_Instance

Detailed Description

Definition at line 1 of file vicinityitemmanager.c.

Member Function Documentation

◆ AddVicinityCargos()

void AddVicinityCargos ( CargoBase object)
inlineprivate

Definition at line 68 of file vicinityitemmanager.c.

References INDEX_NOT_FOUND, and m_VicinityCargos.

Referenced by RefreshVicinityItems().

◆ AddVicinityItems()

void AddVicinityItems ( Object object)
inlineprivate

◆ CanIgnoreDistanceCheck()

bool CanIgnoreDistanceCheck ( EntityAI entity_ai)
inlineprivate

Definition at line 203 of file vicinityitemmanager.c.

Referenced by RefreshVicinityItems().

◆ ExcludeFromContainer_Phase1()

bool ExcludeFromContainer_Phase1 ( Object actor_in_radius)
inlineprivate

If in free camera, allow viewing of inventory

Definition at line 92 of file vicinityitemmanager.c.

References Class::CastTo(), vector::Dot(), g_Game, EntityAI::IsMan(), and vector::Normalize().

Referenced by RefreshVicinityItems().

◆ ExcludeFromContainer_Phase2()

bool ExcludeFromContainer_Phase2 ( Object object_in_radius)
inlineprivate

Definition at line 153 of file vicinityitemmanager.c.

References Class::CastTo(), and g_Game.

Referenced by RefreshVicinityItems().

◆ ExcludeFromContainer_Phase3()

bool ExcludeFromContainer_Phase3 ( Object object_in_cone)
inlineprivate

Definition at line 177 of file vicinityitemmanager.c.

References Class::CastTo(), and g_Game.

Referenced by RefreshVicinityItems().

◆ GetFixedHeadHeightAdjustment()

float GetFixedHeadHeightAdjustment ( PlayerBase player)
inlineprotected

◆ GetInstance()

VicinityItemManager GetInstance ( )
inlinestaticprivate

◆ GetVicinityCargos()

array< CargoBase > GetVicinityCargos ( )
inlineprivate

Definition at line 63 of file vicinityitemmanager.c.

References m_VicinityCargos.

Referenced by VicinityContainer::UpdateInterval().

◆ GetVicinityItems()

array< EntityAI > GetVicinityItems ( )
inlineprivate

Definition at line 34 of file vicinityitemmanager.c.

References m_VicinityItems.

Referenced by VicinityContainer::UpdateInterval().

◆ Init()

void Init ( )
inlineprivate

Definition at line 30 of file vicinityitemmanager.c.

◆ IsObstructed()

bool IsObstructed ( Object filtered_object)
inlineprotected

Definition at line 425 of file vicinityitemmanager.c.

Referenced by RefreshVicinityItems().

◆ RefreshVicinityItems()

◆ ResetRefreshCounter()

void ResetRefreshCounter ( )
inlineprivate

Definition at line 76 of file vicinityitemmanager.c.

References m_RefreshCounter.

Referenced by MissionBase::HideInventory().

◆ Update()

void Update ( float delta_time)
inlineprivate

Field Documentation

◆ CE_CENTER

const string CE_CENTER = "ce_center"
private

Definition at line 11 of file vicinityitemmanager.c.

◆ CONE_HEIGHT_MAX

const float CONE_HEIGHT_MAX = 3.0
private

Definition at line 15 of file vicinityitemmanager.c.

Referenced by RefreshVicinityItems().

◆ CONE_HEIGHT_MIN

const float CONE_HEIGHT_MIN = -0.5
private

Definition at line 14 of file vicinityitemmanager.c.

Referenced by RefreshVicinityItems().

◆ HEIGHT_OFFSET

const float HEIGHT_OFFSET = 0.2
private

Definition at line 12 of file vicinityitemmanager.c.

◆ m_RefreshCounter

float m_RefreshCounter
private

Definition at line 19 of file vicinityitemmanager.c.

Referenced by ResetRefreshCounter(), and Update().

◆ m_VicinityCargos

ref array<CargoBase> m_VicinityCargos = new array<CargoBase>()
private

◆ m_VicinityItems

ref array<EntityAI> m_VicinityItems = new array<EntityAI>()
private

Definition at line 17 of file vicinityitemmanager.c.

Referenced by AddVicinityItems(), GetVicinityItems(), and RefreshVicinityItems().

◆ OBJECT_OBSTRUCTION_WEIGHT

const int OBJECT_OBSTRUCTION_WEIGHT = 10000
private

Definition at line 13 of file vicinityitemmanager.c.

◆ s_Instance

ref VicinityItemManager s_Instance
staticprivate

Definition at line 20 of file vicinityitemmanager.c.

Referenced by GetInstance().

◆ UPDATE_FREQUENCY

const float UPDATE_FREQUENCY = 0.25
private

Definition at line 3 of file vicinityitemmanager.c.

Referenced by Update().

◆ VICINITY_ACTOR_DISTANCE

const float VICINITY_ACTOR_DISTANCE = 2.0
private

Definition at line 5 of file vicinityitemmanager.c.

Referenced by RefreshVicinityItems().

◆ VICINITY_CONE_ANGLE

const float VICINITY_CONE_ANGLE = 30
private

Definition at line 9 of file vicinityitemmanager.c.

Referenced by RefreshVicinityItems().

◆ VICINITY_CONE_DISTANCE

const float VICINITY_CONE_DISTANCE = 2.0
private

Definition at line 7 of file vicinityitemmanager.c.

Referenced by RefreshVicinityItems().

◆ VICINITY_CONE_RADIANS

const float VICINITY_CONE_RADIANS = 0.5
private

Definition at line 10 of file vicinityitemmanager.c.

◆ VICINITY_CONE_REACH_DISTANCE

const float VICINITY_CONE_REACH_DISTANCE = 2.0
private

Definition at line 8 of file vicinityitemmanager.c.

Referenced by AddVicinityItems(), and RefreshVicinityItems().

◆ VICINITY_DISTANCE

const float VICINITY_DISTANCE = 0.5
private

Definition at line 4 of file vicinityitemmanager.c.

Referenced by RefreshVicinityItems().

◆ VICINITY_LARGE_ACTOR_DISTANCE

const float VICINITY_LARGE_ACTOR_DISTANCE = 3.0
private

Definition at line 6 of file vicinityitemmanager.c.

Referenced by RefreshVicinityItems().


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