DayZ 1.26
DayZ Explorer by KGB
|
Закрытые члены | |
void | ActionTargets (PlayerBase player) |
void | Clear () |
void | Update () |
bool | IsObstructed (Object object) |
bool | IsObstructedEx (Object object, IsObjectObstructedCache cache) |
int | GetTargetsCount () |
returns count of founded targets | |
ActionTarget | GetTarget (int index) |
returns action target at index | |
void | StoreTarget (ActionTarget pActionTarget) |
inserts action into sorted array based on utility | |
int | FindIndexForStoring (float value) |
binary search algorithm | |
float | ComputeUtility (Object pTarget, vector pRayStart, vector pRayEnd, Object cursorTarget, vector hitPos) |
computes utility of target | |
float | DistSqrPoint2Line (vector pPoint, vector pL1, vector pL2) |
distance between point and line | |
void | FilterObstructedObjectsEx (Object cursor_target, array< Object > vicinityObjects) |
void | FilterObstructedObjects (Object cursor_target) |
vector | CalculateRayStart () |
DEPRECATED. | |
Закрытые статические члены | |
static array< Object > | GetVicinityObjects () |
Закрытые данные | |
PlayerBase | m_Player |
player owner | |
ref array< ref ActionTarget > | m_Targets |
selected & sorted targets by utility function | |
vector | m_RayEnd |
vector | m_HitPos |
const float | c_RayDistance = 5.0 |
searching properties | |
const float | c_MaxTargetDistance = 3.0 |
const float | c_MaxActionDistance = UAMaxDistances.DEFAULT |
const float | c_ConeAngle = 30.0 |
const float | c_ConeHeightMin = -0.5 |
const float | c_ConeHeightMax = 2.0 |
const float | c_DistanceDelta = 0.3 |
const float | c_UtilityMaxValue = 10000 |
utility constants | |
const float | c_UtilityMaxDistFromRaySqr = 0.8 * 0.8 |
const string | CE_CENTER = "ce_center" |
p3d | |
const float | HEIGHT_OFFSET = 0.2 |
const int | OBSTRUCTED_COUNT_THRESHOLD = 3 |
misc | |
const int | GROUPING_COUNT_THRESHOLD = 10 |
Закрытые статические данные | |
vector | m_RayStart |
objects in vicinity | |
|
inlineprivate |
Перекрестные ссылки m_Player, m_VicinityObjects и VicinityObjects().
|
private |
DEPRECATED.
|
inlineprivate |
computes utility of target
out of reach
ground and static objects
basebuilding objects
Перекрестные ссылки c_MaxTargetDistance, c_UtilityMaxDistFromRaySqr, c_UtilityMaxValue, vector::DistanceSq(), DistSqrPoint2Line() и m_Player.
distance between point and line
Перекрестные ссылки vector::DistanceSq() и vector::Dot().
Используется в ComputeUtility().
check if targets are not obstructed (eg.: wall)
check for object obstruction(if the object is not a proxy - has no parent)
when the number of obstructed items is higher than OBSTRUCTED_COUNT_THRESHOLD remove do no run obstruction check and skip these items
obstruction check
Перекрестные ссылки IsObjectObstructedCache(), IsObstructedEx(), m_RayStart, m_VicinityObjects и OBSTRUCTED_COUNT_THRESHOLD.
Используется в FilterObstructedObjectsEx().
|
inlineprivate |
Перекрестные ссылки c_DistanceDelta, c_MaxTargetDistance, FilterObstructedObjects(), g_Game, DiagMenu::GetBool(), GROUPING_COUNT_THRESHOLD, m_RayStart и m_VicinityObjects.
binary search algorithm
Перекрестные ссылки m_Targets.
Используется в StoreTarget().
|
inlineprivate |
|
inlineprivate |
Перекрестные ссылки m_VicinityObjects.
Перекрестные ссылки IsObjectObstructedCache(), IsObstructedEx() и m_RayStart.
|
inlineprivate |
Используется в FilterObstructedObjects() и IsObstructed().
|
inlineprivate |
inserts action into sorted array based on utility
Перекрестные ссылки FindIndexForStoring() и m_Targets.
|
inlineprivate |
clear state
camera & ray properties
if the cursor target is a proxy
ignores attachments on player
spacial search
removes player from the vicinity
transformation of array of Objects to hashmap (VicinityObjects)
removes Vicinity objects that are not directly visible from player position
select & sort targets based on utility function
action target for surface actions (lowest utility)
Используется в FilterObstructedObjectsEx().
|
private |
Используется в ComputeUtility() и FilterObstructedObjectsEx().
Используется в ComputeUtility().
utility constants
Используется в ComputeUtility().
Используется в FilterObstructedObjectsEx().
|
private |
|
private |
player owner
Используется в ActionTargets() и ComputeUtility().
|
private |
|
staticprivate |
objects in vicinity
Используется в FilterObstructedObjects(), FilterObstructedObjectsEx() и IsObstructed().
|
private |
selected & sorted targets by utility function
Используется в FindIndexForStoring(), GetTarget(), GetTargetsCount() и StoreTarget().
misc
Используется в FilterObstructedObjects().