![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
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< CargoBase > | GetVicinityCargos () |
| array< EntityAI > | GetVicinityItems () |
| 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< CargoBase > | m_VicinityCargos = new array<CargoBase>() |
| ref array< EntityAI > | m_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 |
Definition at line 1 of file vicinityitemmanager.c.
|
inlineprivate |
Definition at line 68 of file vicinityitemmanager.c.
References INDEX_NOT_FOUND, and m_VicinityCargos.
Referenced by RefreshVicinityItems().
|
inlineprivate |
Definition at line 39 of file vicinityitemmanager.c.
References GameInventory::CheckManipulatedObjectsDistances(), g_Game, INDEX_NOT_FOUND, m_VicinityItems, and VICINITY_CONE_REACH_DISTANCE.
Referenced by RefreshVicinityItems().
Definition at line 203 of file vicinityitemmanager.c.
Referenced by RefreshVicinityItems().
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().
Definition at line 153 of file vicinityitemmanager.c.
References Class::CastTo(), and g_Game.
Referenced by RefreshVicinityItems().
Definition at line 177 of file vicinityitemmanager.c.
References Class::CastTo(), and g_Game.
Referenced by RefreshVicinityItems().
|
inlineprotected |
Definition at line 413 of file vicinityitemmanager.c.
References PlayerConstants::HEAD_HEIGHT_CROUCH, PlayerConstants::HEAD_HEIGHT_ERECT, and PlayerConstants::HEAD_HEIGHT_PRONE.
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 63 of file vicinityitemmanager.c.
References m_VicinityCargos.
Referenced by VicinityContainer::UpdateInterval().
Definition at line 34 of file vicinityitemmanager.c.
References m_VicinityItems.
Referenced by VicinityContainer::UpdateInterval().
|
inlineprivate |
Definition at line 30 of file vicinityitemmanager.c.
Definition at line 425 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 209 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(), RaycastRVParams::flags, g_Game, GetFixedHeadHeightAdjustment(), INDEX_NOT_FOUND, IsObstructed(), m_VicinityCargos, m_VicinityItems, vector::Normalize(), RaycastRVParams::radius, DayZPhysics::RaycastRVProxy(), BoxCollidingParams::SetParams(), Math::Sin(), RaycastRVParams::type, vector::VectorToAngles(), VICINITY_ACTOR_DISTANCE, VICINITY_CONE_ANGLE, VICINITY_CONE_DISTANCE, VICINITY_CONE_REACH_DISTANCE, VICINITY_DISTANCE, and VICINITY_LARGE_ACTOR_DISTANCE.
|
inlineprivate |
Definition at line 76 of file vicinityitemmanager.c.
References m_RefreshCounter.
Referenced by MissionBase::HideInventory().
|
inlineprivate |
Definition at line 81 of file vicinityitemmanager.c.
References m_RefreshCounter, RefreshVicinityItems(), and UPDATE_FREQUENCY.
Referenced by VicinityContainer::UpdateInterval().
|
private |
Definition at line 11 of file vicinityitemmanager.c.
|
private |
Definition at line 15 of file vicinityitemmanager.c.
Referenced by RefreshVicinityItems().
|
private |
Definition at line 14 of file vicinityitemmanager.c.
Referenced by RefreshVicinityItems().
|
private |
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().
|
private |
Definition at line 13 of file vicinityitemmanager.c.
|
staticprivate |
Definition at line 20 of file vicinityitemmanager.c.
Referenced by GetInstance().
|
private |
Definition at line 3 of file vicinityitemmanager.c.
Referenced by Update().
|
private |
Definition at line 5 of file vicinityitemmanager.c.
Referenced by RefreshVicinityItems().
|
private |
Definition at line 9 of file vicinityitemmanager.c.
Referenced by RefreshVicinityItems().
|
private |
Definition at line 7 of file vicinityitemmanager.c.
Referenced by RefreshVicinityItems().
|
private |
Definition at line 10 of file vicinityitemmanager.c.
|
private |
Definition at line 8 of file vicinityitemmanager.c.
Referenced by AddVicinityItems(), and RefreshVicinityItems().
|
private |
Definition at line 4 of file vicinityitemmanager.c.
Referenced by RefreshVicinityItems().
|
private |
Definition at line 6 of file vicinityitemmanager.c.
Referenced by RefreshVicinityItems().