class HologramSource
Constructors 2
void Hologram(PlayerBase player, vector pos, ItemBase item)References Class.Cast(), Class.Cast(), CGame.ConfigGetFloat()
Show 42 more
, CGame.ConfigGetInt(), CGame.ConfigGetTextOut(), CGame.ConfigGetVector(), CGame.ConfigIsExisting(), array.Count(), CGame.CreateObjectEx(), CreateTrigger(), ErrorEx(), string.Format(), GetProjectionEntity(), Object.GetType(), Object.GetType(), array.Insert(), array.Insert(), CGame.IsMultiplayer(), CGame.IsServer(), ProjectionBasedOnParent(), RefreshTrigger(), Object.SetAllowDamage(), SetAnimations(), ItemBase.SetIsHologram(), SetProjectionEntity(), int.ToString(), int.ToString(), Watchtower.BASE_VIEW_NAME, Watchtower.BASE_WALL_NAME, m_AlignToTerrain, m_ContactComponent, m_FromAdjusted, m_Parent, m_Player, m_Projection, m_ProjectionTrigger, m_ProjectionTypename, m_Rotation, m_SlopeTolerance, m_UpdatePosition, m_WatchtowerBlockedComponentNames, m_WatchtowerIgnoreComponentNames, m_YawPitchRollLimit, Watchtower.MAX_WATCHTOWER_FLOORS, and Watchtower.MAX_WATCHTOWER_WALLSvoid ~Hologram()References DestroyDebugCollisionBox(), CGame.ObjectDelete(), m_Projection
Show 1 more
, m_ProjectionTriggerConstants 20
protected const int SPAWN_FLAGS = ECE_CREATEPHYSICSReferenced by CreateTrigger()
protected const string SUFFIX_MATERIAL_DEPLOYABLE = "_deployable.rvmat"Referenced by CorrectMaterialPathName()
protected const string SUFFIX_MATERIAL_UNDEPLOYABLE = "_undeployable.rvmat"Referenced by CorrectMaterialPathName()
protected const string SUFFIX_MATERIAL_POWERED = "_powered.rvmat"Referenced by CorrectMaterialPathName()
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 = 1Referenced by GetProjectionEntityPosition()
protected const float SMALL_PROJECTION_GROUND = 2Referenced by SetOnGround()
protected const float DISTANCE_SMALL_PROJECTION = 1Deprecated
protected const float LARGE_PROJECTION_DISTANCE_LIMIT = 6Referenced by GetProjectionEntityPosition()
protected const float PROJECTION_TRANSITION_MIN = 1Referenced by SetHologramPosition()
protected const float PROJECTION_TRANSITION_MAX = 0.25Referenced by SetHologramPosition()
protected const float LOOKING_TO_SKY = 0.75Referenced by HideWhenClose()
static const float DEFAULT_MAX_PLACEMENT_HEIGHT_DIFF = 1.5Referenced by HeightPlacementCheck()
Members 26
string m_CollisionDetailsDIAG_DEVELOPERprotected ItemBase m_Parentprotected EntityAI m_ProjectionReferenced by ~Hologram(), AlignProjectionOnTerrain(), CorrectMaterialPathName()
Show 27 more
, DrawBaseSpheres(), DrawDebugCollisionBox(), EvaluateCollision(), GetHiddenSelection(), GetProjectionCollisionBox(), GetProjectionEntity(), GetProjectionEntityPosition(), GetProjectionOrientation(), GetProjectionPosition(), Hologram(), IsBaseViable(), IsClippingRoof(), IsCollidingAngle(), IsCollidingBBox(), IsCollidingGeometryProxy(), IsInTerrain(), IsProjectionTrap(), IsUnderwater(), PlaceEntity(), RefreshVisual(), SetAnimations(), SetOnGround(), SetProjectionEntity(), SetProjectionOrientation(), SetProjectionPosition(), UpdateHologram(), and UpdateSelections()protected PlayerBase m_Playerprotected ProjectionTrigger m_ProjectionTriggerprotected string m_ProjectionTypenameprotected bool m_IsCollidingprotected bool m_IsCollidingGPlotprotected bool m_IsSlopeprotected bool m_IsCollidingPlayerprotected bool m_IsFloatingprotected bool m_UpdatePositionprotected bool m_IsHiddenprotected vector m_DefaultOrientationReferenced by GetDefaultOrientation()
protected vector m_RotationReferenced by AddProjectionRotation(), GetProjectionRotation(), Hologram()
Show 1 more
, SubtractProjectionRotation()protected vector m_y_p_r_previousReferenced by SmoothProjectionMovement()
protected vector m_ContactDirprotected vector m_FromAdjustedprotected float m_SlopeToleranceprotected bool m_AlignToTerrainprotected vector m_YawPitchRollLimitprotected int m_ContactComponentprotected float m_PitchOverrideDIAG_DEVELOPERReferenced by DebugConfigValues()
protected float m_RollOverrideDIAG_DEVELOPERReferenced by DebugConfigValues()
protected Shape m_CollisionBoxDIAG_DEVELOPERReferenced by DestroyDebugCollisionBox(), DrawDebugCollisionBox(), IsCollidingBBox()
Show 1 more
, IsCollidingGeometryProxy()Methods 82
void SetAnimations()References Object.HasAnimation(), Entity.SetAnimationPhase(), SetSelectionToRefresh()
Show 6 more
, UpdateSelections(), ANIMATION_INVENTORY, ANIMATION_PLACING, m_Projection, SELECTION_INVENTORY, and SELECTION_PLACINGReferenced by Hologram()
void UpdateSelections()References CGame.ConfigGetChildName(), CGame.ConfigGetChildrenCount(), CGame.ConfigIsExisting()
Show 5 more
, Entity.GetAnimationPhase(), Object.GetType(), Entity.SetAnimationPhase(), m_Parent, and m_ProjectionReferenced by SetAnimations()
string ProjectionBasedOnParent()Referenced by Hologram()
References ItemBase.CanMakeGardenplot(), Object.GetType(), EntityAI.IsBasebuildingKit()
Show 2 more
, Class.IsInherited(), and m_ProjectionTypenameReferenced by ProjectionBasedOnParent()
DEPRECATED
void UpdateHologram(float timeslice)References AlignProjectionOnTerrain(), CheckPowerSource(), DebugConfigValues()
Show 14 more
, DestroyDebugCollisionBox(), EvaluateCollision(), GetProjectionEntityPosition(), GetUpdatePosition(), IsRestrictedFromAdvancedPlacing(), EntityAI.OnHologramBeingPlaced(), RefreshTrigger(), RefreshVisual(), SetProjectionOrientation(), SetProjectionPosition(), PlayerBase.TogglePlacingLocal(), m_Parent, m_Player, and m_ProjectionReferenced by MissionGameplay.OnUpdate()
Referenced by UpdateHologram()
Referenced by AlignProjectionOnTerrain()
void CreateTrigger()Referenced by Hologram()
void RefreshTrigger()void DebugLog(string header, bool mustBeTrue = false, bool condition = true, string info = "")DIAG_DEVELOPERReferenced by EvaluateCollision(), HeightPlacementCheck(), IsBaseFlat()
Show 16 more
, IsBaseIntact(), IsBaseStatic(), IsClippingRoof(), IsCollidingAngle(), IsCollidingBBox(), IsCollidingGeometryProxy(), IsCollidingGPlot(), IsCollidingPlayer(), IsCollidingZeroPos(), IsFloating(), IsHidden(), IsInTerrain(), IsPlacementPermitted(), IsUnderwater(), SetHologramPosition(), and SetIsColliding()void DebugConfigValues()DIAG_DEVELOPERReferences DiagMenu.GetBool(), DbgUI.InputFloat(), DbgUI.SameLine()
Show 4 more
, m_PitchOverride, m_RollOverride, m_SlopeTolerance, and m_YawPitchRollLimitReferenced by UpdateHologram()
void EvaluateCollision(ItemBase action_item = null)References PlayerBase.CanPlaceItem(), Class.CastTo(), DebugLog()
Show 22 more
, Object.GetPosition(), HeightPlacementCheck(), IsBaseViable(), IsClippingRoof(), IsCollidingAngle(), IsCollidingBBox(), IsCollidingGeometryProxy(), IsCollidingGPlot(), IsCollidingPlayer(), IsCollidingZeroPos(), IsFloating(), IsHidden(), Class.IsInherited(), IsInTerrain(), TrapBase.IsPlaceableAtPosition(), TrapSpawnBase.IsPlaceableAtPosition(), IsPlacementPermitted(), IsUnderwater(), SetIsColliding(), m_CollisionDetails, m_Player, and m_Projectionbool IsClippingRoof()References DebugLog(), EntityAI.DoPlacingHeightCheck(), DrawArrow()
Show 10 more
, CGame.GetCurrentCameraPosition(), CfgGameplayHandler.GetDisableIsClippingRoofCheck(), Object.GetPosition(), CGame.IsMultiplayer(), CGame.IsServer(), MiscGameplayFunctions.IsUnderRoof(), MiscGameplayFunctions.IsUnderRoofEx(), MiscGameplayFunctions.IsUnderRoofFromToCalculation(), m_Projection, and GameConstants.ROOF_CHECK_RAYCAST_DISTReferenced by EvaluateCollision()
bool IsCollidingAngle()References Math.AbsFloat(), DebugLog(), CfgGameplayHandler.GetDisableIsCollidingAngleCheck()
Show 3 more
, Object.GetOrientation(), m_Projection, and m_YawPitchRollLimitReferenced by EvaluateCollision()
protected void DrawDebugCollisionBox(vector min_max[2], int color)DIAG_DEVELOPERReferences Debug.DrawBox(), IEntity.GetTransform(), Shape.SetMatrix()
Show 2 more
, m_CollisionBox, and m_Projectionprotected void DestroyDebugCollisionBox()DIAG_DEVELOPERReferenced by ~Hologram(), IsCollidingBBox(), IsCollidingGeometryProxy()
Show 1 more
, UpdateHologram()References DebugLog(), DestroyDebugCollisionBox(), DrawDebugCollisionBox()
Show 12 more
, DiagMenu.GetBool(), GetCollisionBoxSize(), Object.GetDebugName(), CfgGameplayHandler.GetDisableIsCollidingBBoxCheck(), Object.GetPosition(), GetProjectionCollisionBox(), GetProjectionOrientation(), array.Insert(), CGame.IsBoxCollidingGeometry(), m_CollisionBox, m_Player, and m_ProjectionReferenced by EvaluateCollision()
References new BoxCollidingParams(), DebugLog(), DestroyDebugCollisionBox()
Show 15 more
, DrawDebugCollisionBox(), DiagMenu.GetBool(), GetCollisionBoxSize(), Object.GetDebugName(), CfgGameplayHandler.GetDisableIsCollidingBBoxCheck(), Object.GetPosition(), GetProjectionCollisionBox(), GetProjectionOrientation(), array.Insert(), CGame.IsBoxCollidingGeometryProxy(), BoxCollidingParams.SetParams(), m_CollisionBox, m_Player, m_Projection, and BoxCollidingResult.objReferenced by EvaluateCollision()
bool IsBaseViable()References IEntity.CoordToParent(), set.Count(), set.Count()
Show 16 more
, set.Count(), set.Count(), CfgGameplayHandler.GetDisableIsBaseViableCheck(), GetLeftCloseProjectionVector(), GetLeftFarProjectionVector(), GetRightCloseProjectionVector(), GetRightFarProjectionVector(), IsBaseFlat(), IsBaseIntact(), IsBaseStatic(), CGame.IsMultiplayer(), CGame.IsServer(), DayZPhysics.RaycastRV(), m_Projection, PLACEMENT_RC_END_OFFSET, and PLACEMENT_RC_START_OFFSETReferenced by EvaluateCollision()
bool IsCollidingGPlot()Referenced by EvaluateCollision()
bool IsCollidingZeroPos()Referenced by EvaluateCollision()
Referenced by IsBaseViable()
Referenced by IsBaseStatic()
bool IsBaseIntact(Object under_left_close, Object under_right_close, Object under_left_far, Object under_right_far)References array.Count(), DebugLog(), DrawBaseSpheres()
Show 2 more
, Object.GetDebugName(), and array.Insert()Referenced by IsBaseViable()
void DrawArrow(vector from, vector to, bool condition)DIAG_DEVELOPERvoid DrawSphere(vector pos, bool condition)DIAG_DEVELOPERReferenced by DrawBaseSpheres()
void DrawBaseSpheres(array<bool> conditions)DIAG_DEVELOPERvoid DrawDebugArrow(float start, float dist, int color = 0xFF1FFFFF)DIAG_DEVELOPERReferences Debug.DrawArrow(), DiagMenu.GetBool(), MiscGameplayFunctions.GetHeadingVector()
Show 2 more
, Object.GetPosition(), and m_PlayerReferenced by GetProjectionEntityPosition()
bool IsBaseFlat(vector contact_pos_left_close, vector contact_pos_right_close, vector contact_pos_left_far, vector contact_pos_right_far)References Math.AbsFloat(), DebugLog(), DrawArrow()
Show 2 more
, GetProjectionPosition(), and m_SlopeToleranceReferenced by IsBaseViable()
bool IsPlacementPermitted()Checks if the item can be legally placed (usually checked by action as well)
References EntityAI.CanBePlaced(), DebugLog(), CfgGameplayHandler.GetDisableIsPlacementPermittedCheck()
Show 3 more
, GetProjectionPosition(), m_Parent, and m_PlayerReferenced by EvaluateCollision()
bool HeightPlacementCheck()Checks height relative to player's position
References DebugLog(), CfgGameplayHandler.GetDisableHeightPlacementCheck(), Object.GetPosition()
Show 4 more
, GetProjectionEntity(), GetProjectionPosition(), DEFAULT_MAX_PLACEMENT_HEIGHT_DIFF, and m_PlayerReferenced by EvaluateCollision()
bool IsUnderwater()References IEntity.CoordToParent(), DebugLog(), DrawBaseSpheres()
Show 9 more
, CfgGameplayHandler.GetDisableIsUnderwaterCheck(), GetLeftCloseProjectionVector(), GetLeftFarProjectionVector(), GetRightCloseProjectionVector(), GetRightFarProjectionVector(), CGame.GetWaterDepth(), CGame.SurfaceGetSeaLevelMax(), CGame.SurfaceUnderObjectCorrectedLiquid(), and m_ProjectionReferenced by EvaluateCollision()
bool IsInTerrain()Referenced by EvaluateCollision()
void CheckPowerSource()protected void GetProjectionCollisionBox(out vector min_max[2])References Object.GetCollisionBox(), Object.GetMemoryPointPos(), Object.MemoryPointExists()
Show 1 more
, m_ProjectionReferences Vector()
Referenced by GetProjectionDiameter(), GetProjectionRadius(), IsCollidingBBox()
Show 1 more
, IsCollidingGeometryProxy()vector GetLeftCloseProjectionVector()References GetProjectionCollisionBox()
Referenced by ActionDigGardenPlot.CheckSurfaceBelowGardenPlot(), DrawBaseSpheres(), IsBaseViable()
Show 2 more
, IsInTerrain(), and IsUnderwater()vector GetRightCloseProjectionVector()References GetProjectionCollisionBox()
Referenced by ActionDigGardenPlot.CheckSurfaceBelowGardenPlot(), DrawBaseSpheres(), IsBaseViable()
Show 2 more
, IsInTerrain(), and IsUnderwater()vector GetLeftFarProjectionVector()References GetProjectionCollisionBox()
Referenced by ActionDigGardenPlot.CheckSurfaceBelowGardenPlot(), DrawBaseSpheres(), IsBaseViable()
Show 2 more
, IsInTerrain(), and IsUnderwater()vector GetRightFarProjectionVector()References GetProjectionCollisionBox()
Referenced by ActionDigGardenPlot.CheckSurfaceBelowGardenPlot(), DrawBaseSpheres(), IsBaseViable()
Show 2 more
, IsInTerrain(), and IsUnderwater()References CGame.SurfaceIsSea()
protected vector GetProjectionEntityPosition(PlayerBase player)References Math.Clamp(), CorrectForWatchtower(), set.Count()
Show 23 more
, vector.Distance(), vector.DistanceSq(), DrawDebugArrow(), Debug.DrawSphere(), DiagMenu.GetBool(), CGame.GetCurrentCameraDirection(), CGame.GetCurrentCameraPosition(), CfgGameplayHandler.GetDisableIsCollidingBBoxCheck(), GetPosition(), Object.GetPosition(), GetProjectionPosition(), GetProjectionRadius(), IsInherited(), DayZPhysics.RaycastRV(), SetHologramPosition(), SetIsFloating(), LARGE_PROJECTION_DISTANCE_LIMIT, m_ContactComponent, m_ContactDir, m_FromAdjusted, m_Projection, SMALL_PROJECTION_RADIUS, and vector.ZeroReferenced by UpdateHologram()
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)
References DebugLog(), vector.Distance(), string.Format()
Show 4 more
, vector.Normalize(), m_IsHidden, PROJECTION_TRANSITION_MAX, and PROJECTION_TRANSITION_MINReferenced by GetProjectionEntityPosition()
bool IsFenceOrWatchtowerKit()vector CorrectForWatchtower(int contactComponent, vector contactPos, PlayerBase player, Object hitObject)References array.Find(), Object.GetActionComponentName(), Object.GetActionComponentPosition()
Show 2 more
, m_WatchtowerIgnoreComponentNames, and LOD.NAME_VIEWReferenced by GetProjectionEntityPosition()
bool IsProjectionTrap()float GetProjectionDiameter()Referenced by SetOnGround()
float GetProjectionRadius()Referenced by GetProjectionEntityPosition()
void SetUpdatePosition(bool state)References m_UpdatePosition
EntityAI GetParentEntity()References m_Parent
Referenced by GetDefaultOrientation(), MissionGameplay.OnUpdate(), and PlayerBase.PlacingCancelServer()
EntityAI GetProjectionEntity()References m_Projection
void SetIsFloating(bool is_floating)References m_IsFloating
Referenced by GetProjectionEntityPosition()
void SetIsColliding(bool is_colliding)Referenced by EvaluateCollision()
void SetIsCollidingPlayer(bool is_colliding)References m_IsCollidingPlayer
void SetIsCollidingGPlot(bool is_colliding_gplot)References m_IsCollidingGPlot
Referenced by ActionDigGardenPlot.CheckSurfaceBelowGardenPlot()
bool IsFloating()bool IsColliding()References m_IsColliding
bool IsCollidingPlayer()References DebugLog(), CfgGameplayHandler.GetDisableIsCollidingPlayerCheck(), and m_IsCollidingPlayer
Referenced by EvaluateCollision()
void SetProjectionPosition(vector position)void SetProjectionOrientation(vector orientation)void AddProjectionRotation(float addition)References m_Rotation
Referenced by MissionGameplay.OnUpdate()
void SubtractProjectionRotation(float subtraction)References m_Rotation
Referenced by MissionGameplay.OnUpdate()
References set.Count(), array.Count(), array.Find()
Show 21 more
, array.Get(), Object.GetActionComponentName(), GetProjectionDiameter(), HideWhenClose(), IsInherited(), Math.Max(), DayZPhysics.RaycastRV(), new RaycastRVParams(), DayZPhysics.RaycastRVProxy(), Vector(), RaycastRVResult.entry, RaycastRVParams.flags, m_FromAdjusted, m_Player, m_Projection, m_WatchtowerIgnoreComponentNames, LOD.NAME_VIEW, RaycastRVResult.obj, RaycastRVResult.parent, RaycastRVResult.pos, and SMALL_PROJECTION_GROUNDReferenced by SetProjectionPosition()
Referenced by SetOnGround()
vector GetProjectionPosition()vector GetProjectionOrientation()Referenced by ActionDeployObject.SetupAction(), CreateTrigger(), IsCollidingBBox()
Show 2 more
, IsCollidingGeometryProxy(), and RefreshTrigger()vector GetDefaultOrientation()References CGame.GetCurrentCameraDirection(), GetParentEntity(), EntityAI.PlacementCanBeRotated()
Show 3 more
, vector.VectorToAngles(), m_DefaultOrientation, and vector.ZeroReferenced by AlignProjectionOnTerrain()
Referenced by RefreshVisual()
void SetSelectionToRefresh(string selection)Referenced by BatteryCharger.OnPlacementStarted(), CableReel.OnPlacementStarted(), SetAnimations()
Show 1 more
, Spotlight.OnPlacementStarted()Referenced by BatteryCharger.OnPlacementStarted(), CableReel.OnPlacementStarted(), SetAnimations()
Show 1 more
, Spotlight.OnPlacementStarted()void RefreshVisual()string CorrectMaterialPathName()Referenced by RefreshVisual()
private bool IsRestrictedFromAdvancedPlacing()References PlayerBase.IsClimbing(), DayZPlayerImplement.IsClimbingLadder(), PlayerBase.IsJumpInProgress()
Referenced by UpdateHologram()