DIFF

class HologramSource

Constructors 2

void ~Hologram()

Constants 20

protected const int SPAWN_FLAGS = ECE_CREATEPHYSICS
Referenced by CreateTrigger()
protected const string SUFFIX_MATERIAL_DEPLOYABLE = "_deployable.rvmat"
protected const string SUFFIX_MATERIAL_UNDEPLOYABLE = "_undeployable.rvmat"
protected const string SUFFIX_MATERIAL_POWERED = "_powered.rvmat"
protected const vector PLACEMENT_RC_START_OFFSET = "0 1 0"
Referenced by IsBaseViable()
protected const vector PLACEMENT_RC_END_OFFSET = "0 -2 0"
Referenced by IsBaseViable()
protected const string ANIMATION_PLACING = "Placing"
Referenced by SetAnimations()
protected const string ANIMATION_INVENTORY = "Inventory"
Referenced by SetAnimations()
protected const string SELECTION_PLACING = "placing"
Referenced by SetAnimations()
protected const string SELECTION_INVENTORY = "inventory"
Referenced by SetAnimations()
protected const float SMALL_PROJECTION_RADIUS = 1
protected const float SMALL_PROJECTION_GROUND = 2
Referenced by SetOnGround()
protected const float DISTANCE_SMALL_PROJECTION = 1

Deprecated

protected const float LARGE_PROJECTION_DISTANCE_LIMIT = 6
protected const float PROJECTION_TRANSITION_MIN = 1
Referenced by SetHologramPosition()
protected const float PROJECTION_TRANSITION_MAX = 0.25
Referenced by SetHologramPosition()
protected const float LOOKING_TO_SKY = 0.75
Referenced by HideWhenClose()
static const float DEFAULT_MAX_PLACEMENT_HEIGHT_DIFF = 1.5
static const protected ref array<string> m_WatchtowerIgnoreComponentNames = new array<string>
static const protected ref array<string> m_WatchtowerBlockedComponentNames = new array<string>
Referenced by Hologram(), and IsObjectStatic()

Members 26

string m_CollisionDetailsDIAG_DEVELOPER
protected ProjectionTrigger m_ProjectionTrigger
Referenced by ~Hologram(), CreateTrigger(), Hologram()
Show 1 more, RefreshTrigger()
protected string m_ProjectionTypename
Referenced by GetProjectionName(), and Hologram()
protected bool m_IsColliding
Referenced by IsColliding(), and SetIsColliding()
protected bool m_IsCollidingGPlot
protected bool m_IsSlope
protected bool m_IsCollidingPlayer
protected bool m_IsFloating
Referenced by IsFloating(), and SetIsFloating()
protected bool m_UpdatePosition
protected bool m_IsHidden
protected vector m_DefaultOrientation
protected vector m_Rotation
protected vector m_y_p_r_previous
protected vector m_ContactDir
protected vector m_FromAdjusted
protected float m_SlopeTolerance
protected bool m_AlignToTerrain
protected vector m_YawPitchRollLimit
protected int m_ContactComponent
protected ref set<string> m_SelectionsToRefresh = new set<string>
protected float m_PitchOverrideDIAG_DEVELOPER
Referenced by DebugConfigValues()
protected float m_RollOverrideDIAG_DEVELOPER
Referenced by DebugConfigValues()

Methods 82

string ProjectionBasedOnParent()
Referenced by Hologram()
static bool DoesHaveProjection(ItemBase item)

DEPRECATED

vector SmoothProjectionMovement(vector y_p_r, float timeslice)
protected void DrawDebugCollisionBox(vector min_max[2], int color)DIAG_DEVELOPER
protected void DestroyDebugCollisionBox()DIAG_DEVELOPER
bool IsCollidingZeroPos()
Referenced by EvaluateCollision()
bool IsBehindObstacle()

DEPRECATED

References ErrorEx()
bool IsBaseStatic(Object objectToCheck)
Referenced by IsBaseViable()
bool IsBaseIntact(Object under_left_close, Object under_right_close, Object under_left_far, Object under_right_far)
Referenced by IsBaseViable()
void DrawArrow(vector from, vector to, bool condition)DIAG_DEVELOPER
Referenced by IsBaseFlat(), and IsClippingRoof()
void DrawSphere(vector pos, bool condition)DIAG_DEVELOPER
Referenced by DrawBaseSpheres()
void DrawDebugArrow(float start, float dist, int color = 0xFF1FFFFF)DIAG_DEVELOPER
bool IsBaseFlat(vector contact_pos_left_close, vector contact_pos_right_close, vector contact_pos_left_far, vector contact_pos_right_far)
Referenced by IsBaseViable()
bool IsPlacementPermitted()

Checks if the item can be legally placed (usually checked by action as well)

Referenced by EvaluateCollision()
bool HeightPlacementCheck()

Checks height relative to player's position

Referenced by EvaluateCollision()
protected vector GetCollisionBoxSize(vector min_max[2])
References Vector()
bool IsSurfaceWater(vector position)
bool IsSurfaceSea(vector position)
protected bool SetHologramPosition(vector startPosition, float minProjectionDistance, float maxProjectionDistance, inout vector contactPosition)

Sets hologram position based on player and projection distance

startPosition
start position
minProjectionDistance
lower distance limit
maxProjectionDistance
higher distance limit
inout
contactPosition is position of the hologram contact with ground/object

Returns: true if hologram is floating (is on the near or far edge)

bool IsFenceOrWatchtowerKit()
vector CorrectForWatchtower(int contactComponent, vector contactPos, PlayerBase player, Object hitObject)
bool IsProjectionTrap()
float GetProjectionDiameter()
Referenced by SetOnGround()
void SetUpdatePosition(bool state)
References m_UpdatePosition
bool GetUpdatePosition()
References m_UpdatePosition
Referenced by UpdateHologram()
void SetProjectionEntity(EntityAI projection)
References m_Projection
Referenced by Hologram()
void SetIsFloating(bool is_floating)
References m_IsFloating
void SetIsColliding(bool is_colliding)
Referenced by EvaluateCollision()
void SetIsHidden(bool is_hidden)
References m_IsHidden
void SetIsCollidingPlayer(bool is_colliding)
void SetIsCollidingGPlot(bool is_colliding_gplot)
bool IsHidden()
References DebugLog(), and m_IsHidden
Referenced by EvaluateCollision()
void SetProjectionPosition(vector position)
References IsFloating(), SetOnGround(), Object.SetPosition()
Show 1 more, m_Projection
void SetProjectionOrientation(vector orientation)
vector GetProjectionRotation()
References m_Rotation
void AddProjectionRotation(float addition)
References m_Rotation
void SubtractProjectionRotation(float subtraction)
References m_Rotation
vector HideWhenClose(vector pos)
Referenced by SetOnGround()
int GetHiddenSelection(string selection)
Referenced by RefreshVisual()