DayZ 1.24
|
Static Private Member Functions | |
static VicinityItemManager | GetInstance () |
Private Attributes | |
const float | UPDATE_FREQUENCY = 0.25 |
const float | VICINITY_DISTANCE = 0.5 |
const float | VICINITY_ACTOR_DISTANCE = 2.0 |
const float | VICINITY_LARGE_ACTOR_DISTANCE = 3.0 |
const float | VICINITY_CONE_DISTANCE = 2.0 |
const float | VICINITY_CONE_REACH_DISTANCE = 2.0 |
const float | VICINITY_CONE_ANGLE = 30 |
const float | VICINITY_CONE_RADIANS = 0.5 |
const string | CE_CENTER = "ce_center" |
const float | HEIGHT_OFFSET = 0.2 |
const int | OBJECT_OBSTRUCTION_WEIGHT = 10000 |
const float | CONE_HEIGHT_MIN = -0.5 |
const float | CONE_HEIGHT_MAX = 3.0 |
ref array< EntityAI > | m_VicinityItems = new array<EntityAI>() |
ref array< CargoBase > | m_VicinityCargos = new array<CargoBase>() |
float | m_RefreshCounter |
Static Private Attributes | |
static ref VicinityItemManager | s_Instance |
Definition at line 1 of file VicinityItemManager.c.
Definition at line 62 of file VicinityItemManager.c.
References INDEX_NOT_FOUND, and m_VicinityCargos.
Referenced by RefreshVicinityItems().
Definition at line 39 of file VicinityItemManager.c.
References GameInventory::CheckManipulatedObjectsDistances(), GetGame(), GetPlayer(), INDEX_NOT_FOUND, m_VicinityItems, and VICINITY_CONE_REACH_DISTANCE.
Referenced by RefreshVicinityItems().
Definition at line 193 of file VicinityItemManager.c.
Referenced by RefreshVicinityItems().
If in free camera, allow viewing of inventory
Definition at line 84 of file VicinityItemManager.c.
References Class::CastTo(), vector::Dot(), GetGame(), and GetPlayer().
Referenced by RefreshVicinityItems().
Definition at line 139 of file VicinityItemManager.c.
References Class::CastTo(), GetGame(), and GetPlayer().
Referenced by RefreshVicinityItems().
Definition at line 165 of file VicinityItemManager.c.
References Class::CastTo(), GetGame(), and GetPlayer().
Referenced by RefreshVicinityItems().
|
inlinestaticprivate |
Definition at line 22 of file VicinityItemManager.c.
References s_Instance.
Referenced by MissionBase::HideInventory(), OnShow(), and VicinityContainer::UpdateInterval().
Definition at line 57 of file VicinityItemManager.c.
References m_VicinityCargos.
Definition at line 34 of file VicinityItemManager.c.
References m_VicinityItems.
|
inlineprivate |
Definition at line 30 of file VicinityItemManager.c.
Definition at line 386 of file VicinityItemManager.c.
Referenced by RefreshVicinityItems().
|
inlineprivate |
If in free camera, override the position that the inventory gets generated from
If in free camera, don't worry about obstructed objects if there are any
Definition at line 199 of file VicinityItemManager.c.
References AddVicinityCargos(), AddVicinityItems(), CanIgnoreDistanceCheck(), Class::CastTo(), CONE_HEIGHT_MAX, CONE_HEIGHT_MIN, Math::Cos(), DayZPlayerUtils(), Math::DEG2RAD, vector::DistanceSq(), ExcludeFromContainer_Phase1(), ExcludeFromContainer_Phase2(), ExcludeFromContainer_Phase3(), GetGame(), GetPlayer(), INDEX_NOT_FOUND, IsObstructed(), m_VicinityCargos, m_VicinityItems, DayZPhysics::RaycastRVProxy(), Math::Sin(), VICINITY_ACTOR_DISTANCE, VICINITY_CONE_ANGLE, VICINITY_CONE_DISTANCE, VICINITY_CONE_REACH_DISTANCE, VICINITY_DISTANCE, and VICINITY_LARGE_ACTOR_DISTANCE.
Referenced by Update().
|
inlineprivate |
Definition at line 68 of file VicinityItemManager.c.
References m_RefreshCounter.
Definition at line 73 of file VicinityItemManager.c.
References m_RefreshCounter, RefreshVicinityItems(), and UPDATE_FREQUENCY.
Definition at line 11 of file VicinityItemManager.c.
Definition at line 15 of file VicinityItemManager.c.
Referenced by RefreshVicinityItems().
Definition at line 14 of file VicinityItemManager.c.
Referenced by RefreshVicinityItems().
Definition at line 12 of file VicinityItemManager.c.
|
private |
Definition at line 19 of file VicinityItemManager.c.
Referenced by ResetRefreshCounter(), and Update().
Definition at line 18 of file VicinityItemManager.c.
Referenced by AddVicinityCargos(), GetVicinityCargos(), and RefreshVicinityItems().
Definition at line 17 of file VicinityItemManager.c.
Referenced by AddVicinityItems(), GetVicinityItems(), and RefreshVicinityItems().
Definition at line 13 of file VicinityItemManager.c.
|
staticprivate |
Definition at line 20 of file VicinityItemManager.c.
Referenced by GetInstance().
Definition at line 3 of file VicinityItemManager.c.
Referenced by Update().
Definition at line 5 of file VicinityItemManager.c.
Referenced by RefreshVicinityItems().
Definition at line 9 of file VicinityItemManager.c.
Referenced by RefreshVicinityItems().
Definition at line 7 of file VicinityItemManager.c.
Referenced by RefreshVicinityItems().
Definition at line 10 of file VicinityItemManager.c.
Definition at line 8 of file VicinityItemManager.c.
Referenced by AddVicinityItems(), and RefreshVicinityItems().
Definition at line 4 of file VicinityItemManager.c.
Referenced by RefreshVicinityItems().
Definition at line 6 of file VicinityItemManager.c.
Referenced by RefreshVicinityItems().