16 if (
ib && (
ib.IsBeingPlaced() ||
ib.IsHologram()))
59 if (
ib && !
ib.IsTakeable())
152 string res =
"ActionTarget dump = {";
245 if (
res.hierLevel > 0)
248 if (!
res.parent.IsMan())
413 if (
pTarget.GetType() ==
string.Empty)
423 if (
pTarget.CanUseConstruction())
453 if (
c1 <= 0 ||
c2 == 0)
504 if (
object && !parent)
559 DbgUI.
Text(obj.GetDisplayName() +
" :: " + obj +
" | util: " +
util +
" | compIdx: " +
compIdx +
" | compName: " +
compNames[
c] +
"| wPos: " + obj.GetWorldPosition());
562 DbgUI.
Text(obj.GetDisplayName() +
" :: " + obj +
" | util: " +
util +
" | compIdx: " +
compIdx +
" | compName: " +
compName +
"| wPos: " + obj.GetWorldPosition());
582 CleanupDebugShapes(
shapes);
589 w_pos = obj.GetPosition();
611 CleanupDebugShapes(
shapes);
660 string compName =
at.GetObject().GetActionComponentName(
at.GetComponentIndex());
eBleedingSourceType GetType()
void DbgPrintTargetDump()
class ActionTargets ActionTarget
ref map< Object, Object > m_VicinityObjects
void SetCursorHitPos(vector cursor_position)
proto native int GetComponentIndex()
void DayZPlayerUtils()
cannot be instantiated
void IsObjectObstructedCache(vector rayCastStart, int totalObjects)
class PresenceNotifierNoiseEvents windowPosX
dbgUI settings
override bool CanBeActionTarget()
const float c_UtilityMaxDistFromRaySqr
const float c_MaxTargetDistance
const float c_DistanceDelta
int GetTargetsCount()
returns count of founded targets
const string CE_CENTER
p3d
const float HEIGHT_OFFSET
static array< Object > GetVicinityObjects()
const int OBSTRUCTED_COUNT_THRESHOLD
misc
void FilterObstructedObjects(Object cursor_target)
const float c_MaxActionDistance
bool IsObstructedEx(Object object, IsObjectObstructedCache cache)
bool IsObstructed(Object object)
float DistSqrPoint2Line(vector pPoint, vector pL1, vector pL2)
distance between point and line
void StoreTarget(ActionTarget pActionTarget)
inserts action into sorted array based on utility
const float c_RayDistance
searching properties
PlayerBase m_Player
player owner
ActionTarget GetTarget(int index)
returns action target at index
void FilterObstructedObjectsEx(Object cursor_target, array< Object > vicinityObjects)
void ActionTargets(PlayerBase player)
const int GROUPING_COUNT_THRESHOLD
vector CalculateRayStart()
DEPRECATED.
vector m_RayStart
objects in vicinity
ref array< ref ActionTarget > m_Targets
selected & sorted targets by utility function
float ComputeUtility(Object pTarget, vector pRayStart, vector pRayEnd, Object cursorTarget, vector hitPos)
computes utility of target
const float c_UtilityMaxValue
utility constants
int FindIndexForStoring(float value)
binary search algorithm
const float c_ConeHeightMax
const float c_ConeHeightMin
Super root of all classes in Enforce script.
static proto bool RayCastBullet(vector begPos, vector endPos, PhxInteractionLayers layerMask, Object ignoreObj, out Object hitObject, out vector hitPosition, out vector hitNormal, out float hitFraction)
static proto bool RaycastRVProxy(notnull RaycastRVParams in, out notnull array< ref RaycastRVResult > results, array< Object > excluded=null)
static Shape DrawSphere(vector pos, float size=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
static void RemoveShape(out Shape shape)
static Shape DrawLine(vector from, vector to, int color=0xFFFFFFFF, int flags=0)
ref array< Object > Objects
objects in vicinity - extended with secondary object which is parent of that Object
void Remove(Object object)
void Remove(array< Object > objects)
void ClearVicinityObjects()
Object GetObject(int i)
returns VicinityObjects Key
void TransformToVicinityObjects(array< Object > objects)
transform simple array of Objects to VicinityObjects hashmap
ref map< Object, Object > m_VicinityObjects
Object GetParent(int i)
returns VicinityObjects Element
void StoreVicinityObject(Object object, Object parent=null)
stores VicinityObject to Hashmap - for storing of parent/child relationship
array< Object > GetRawVicinityObjects()
return simple array of Objects in Vicinity
array< Object > GetVicinityObjects()
return simple array of Objects in Vicinity
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
static float Dot(vector v1, vector v2)
Returns Dot product of vector v1 and vector v2.
proto string ToString(bool beautify=true)
Vector to string.
class DayZPlayerCameraResult DayZPlayerCamera(DayZPlayer pPlayer, HumanInputController pInput)
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
static proto native void End()
static proto native void Begin(string windowTitle, float x=0, float y=0)
static proto native void Text(string label)
static proto void BeginCleanupScope()
static proto native void EndCleanupScope()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static const float PI_HALF
static proto float Sqrt(float val)
Returns square root.
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static proto float Sin(float angle)
Returns sinus of angle in radians.
static const float DEG2RAD