DayZ 1.24
|
Static Protected Member Functions | |
static bool | DoesHaveProjection (ItemBase item) |
DEPRECATED. | |
Static Protected Attributes | |
static const float | DEFAULT_MAX_PLACEMENT_HEIGHT_DIFF = 1.5 |
ref array< string > | m_WatchtowerIgnoreComponentNames = new array<string> |
ref array< string > | m_WatchtowerBlockedComponentNames = new array<string> |
Private Member Functions | |
bool | IsRestrictedFromAdvancedPlacing () |
Definition at line 1 of file Hologram.c.
|
inlineprotected |
Definition at line 65 of file Hologram.c.
References CreateTrigger(), ECE_LOCAL, ECE_PLACE_ON_SURFACE, ECE_TRACE, ErrorEx, GetGame(), GetProjectionEntity(), GetType(), 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, ProjectionBasedOnParent(), RefreshTrigger(), SetAnimations(), and SetProjectionEntity().
|
inlineprotected |
Definition at line 145 of file Hologram.c.
References DestroyDebugCollisionBox(), GetGame(), m_Projection, and m_ProjectionTrigger.
Definition at line 1322 of file Hologram.c.
References m_Rotation.
Definition at line 266 of file Hologram.c.
References Math::Clamp(), GetDefaultOrientation(), GetGame(), GetProjectionRotation(), vector::Length(), m_AlignToTerrain, m_ContactDir, m_Projection, Math3D::MatrixMultiply3(), Math3D::MatrixToAngles(), SmoothProjectionMovement(), and Math3D::YawPitchRollMatrix().
Referenced by UpdateHologram().
|
inlineprotected |
Definition at line 930 of file Hologram.c.
References GetGame(), m_Parent, and m_Player.
Referenced by UpdateHologram().
|
inlineprotected |
Definition at line 1176 of file Hologram.c.
References m_WatchtowerIgnoreComponentNames, and LOD::NAME_VIEW.
Referenced by GetProjectionEntityPosition().
|
inlineprotected |
Definition at line 1470 of file Hologram.c.
References GetProjectionPosition(), IsColliding(), IsFloating(), m_Parent, m_Projection, ItemBase::SEL_CORD_FOLDED, ItemBase::SEL_CORD_PLUGGED, SUFFIX_MATERIAL_DEPLOYABLE, SUFFIX_MATERIAL_POWERED, and SUFFIX_MATERIAL_UNDEPLOYABLE.
Referenced by RefreshVisual().
|
inlineprotected |
Definition at line 336 of file Hologram.c.
References Class::CastTo(), g_Game, GetProjectionOrientation(), GetProjectionPosition(), m_Player, m_ProjectionTrigger, RefreshVisual(), and SPAWN_FLAGS.
Referenced by Hologram().
Definition at line 393 of file Hologram.c.
References Class::CastTo(), HeightPlacementCheck(), IsBaseViable(), IsClippingRoof(), IsCollidingAngle(), IsCollidingBBox(), IsCollidingGPlot(), IsCollidingPlayer(), IsCollidingZeroPos(), IsFloating(), IsHidden(), IsInTerrain(), IsPlacementPermitted(), IsUnderwater(), m_Player, m_Projection, and SetIsColliding().
Referenced by UpdateHologram().
Definition at line 977 of file Hologram.c.
References Vector().
Referenced by GetProjectionDiameter(), GetProjectionRadius(), and IsCollidingBBox().
|
inlineprotected |
Definition at line 1412 of file Hologram.c.
References GetGame(), GetParentEntity(), m_DefaultOrientation, and vector::Zero.
Referenced by AlignProjectionOnTerrain().
Definition at line 1423 of file Hologram.c.
References m_Projection.
Referenced by RefreshVisual().
|
inlineprotected |
Definition at line 988 of file Hologram.c.
References GetProjectionCollisionBox().
Referenced by IsBaseViable(), IsInTerrain(), and IsUnderwater().
|
inlineprotected |
Definition at line 1006 of file Hologram.c.
References GetProjectionCollisionBox().
Referenced by IsBaseViable(), IsInTerrain(), and IsUnderwater().
|
inlineprotected |
Definition at line 1230 of file Hologram.c.
References m_Parent.
Referenced by GetDefaultOrientation().
Definition at line 966 of file Hologram.c.
References m_Projection.
Referenced by GetLeftCloseProjectionVector(), GetLeftFarProjectionVector(), GetProjectionDiameter(), GetProjectionRadius(), GetRightCloseProjectionVector(), GetRightFarProjectionVector(), IsCollidingBBox(), and RefreshTrigger().
|
inlineprotected |
Definition at line 1191 of file Hologram.c.
References GetCollisionBoxSize(), and GetProjectionCollisionBox().
Referenced by SetOnGround().
|
inlineprotected |
Definition at line 1240 of file Hologram.c.
References m_Projection.
Referenced by HeightPlacementCheck(), Hologram(), and PlaceEntity().
|
inlineprotected |
will not push hologram up when there is direct hit of an item
Definition at line 1037 of file Hologram.c.
References Math::Clamp(), CorrectForWatchtower(), DayZPlayerCamera3rdPerson(), vector::Distance(), vector::DistanceSq(), Debug::DrawSphere(), DiagMenu::GetBool(), CfgGameplayHandler::GetDisableIsCollidingBBoxCheck(), GetGame(), GetProjectionPosition(), GetProjectionRadius(), LARGE_PROJECTION_DISTANCE_LIMIT, m_ContactComponent, m_ContactDir, m_FromAdjusted, m_Projection, DayZPhysics::RaycastRV(), SetHologramPosition(), SetIsFloating(), SMALL_PROJECTION_RADIUS, and vector::Zero.
Referenced by UpdateHologram().
configuration override
Definition at line 203 of file Hologram.c.
References m_ProjectionTypename.
Referenced by ProjectionBasedOnParent().
|
inlineprotected |
Definition at line 1404 of file Hologram.c.
References m_Projection, and vector::Zero.
Referenced by CreateTrigger(), IsCollidingBBox(), and RefreshTrigger().
|
inlineprotected |
Definition at line 1396 of file Hologram.c.
References m_Projection, and vector::Zero.
Referenced by CorrectMaterialPathName(), CreateTrigger(), GetProjectionEntityPosition(), HeightPlacementCheck(), IsBaseFlat(), IsCollidingZeroPos(), IsPlacementPermitted(), and RefreshTrigger().
|
inlineprotected |
Definition at line 1205 of file Hologram.c.
References GetCollisionBoxSize(), and GetProjectionCollisionBox().
Referenced by GetProjectionEntityPosition().
|
inlineprotected |
Definition at line 1317 of file Hologram.c.
References m_Rotation.
Referenced by AlignProjectionOnTerrain().
|
inlineprotected |
Definition at line 996 of file Hologram.c.
References GetProjectionCollisionBox().
Referenced by IsBaseViable(), IsInTerrain(), and IsUnderwater().
|
inlineprotected |
Definition at line 1015 of file Hologram.c.
References GetProjectionCollisionBox().
Referenced by IsBaseViable(), IsInTerrain(), and IsUnderwater().
|
inlineprotected |
Definition at line 1225 of file Hologram.c.
References m_UpdatePosition.
Referenced by UpdateHologram().
|
inlineprotected |
Checks height relative to player's position.
Definition at line 776 of file Hologram.c.
References DEFAULT_MAX_PLACEMENT_HEIGHT_DIFF, CfgGameplayHandler::GetDisableHeightPlacementCheck(), GetProjectionEntity(), GetProjectionPosition(), and m_Player.
Referenced by EvaluateCollision().
Definition at line 1385 of file Hologram.c.
References GetGame(), and LOOKING_TO_SKY.
Referenced by SetOnGround().
|
inlineprotected |
Definition at line 741 of file Hologram.c.
References Math::AbsFloat(), GetProjectionPosition(), and m_SlopeTolerance.
Referenced by IsBaseViable().
|
inlineprotected |
Definition at line 655 of file Hologram.c.
Referenced by IsBaseViable().
Definition at line 637 of file Hologram.c.
References IsObjectStatic().
Referenced by IsBaseViable().
|
inlineprotected |
Definition at line 544 of file Hologram.c.
References CfgGameplayHandler::GetDisableIsBaseViableCheck(), GetGame(), GetLeftCloseProjectionVector(), GetLeftFarProjectionVector(), GetRightCloseProjectionVector(), GetRightFarProjectionVector(), IsBaseFlat(), IsBaseIntact(), IsBaseStatic(), m_Projection, and DayZPhysics::RaycastRV().
Referenced by EvaluateCollision().
|
inlineprotected |
DEPRECATED.
Definition at line 630 of file Hologram.c.
References ErrorEx.
|
inlineprotected |
Definition at line 432 of file Hologram.c.
References CfgGameplayHandler::GetDisableIsClippingRoofCheck(), GetGame(), m_Projection, and GameConstants::ROOF_CHECK_RAYCAST_DIST.
Referenced by EvaluateCollision().
|
inlineprotected |
Definition at line 1281 of file Hologram.c.
References m_IsColliding.
Referenced by CorrectMaterialPathName().
|
inlineprotected |
Definition at line 464 of file Hologram.c.
References Math::AbsFloat(), CfgGameplayHandler::GetDisableIsCollidingAngleCheck(), m_Projection, and m_YawPitchRollLimit.
Referenced by EvaluateCollision().
Definition at line 497 of file Hologram.c.
References DrawDebugCollisionBox(), DiagMenu::GetBool(), GetCollisionBoxSize(), CfgGameplayHandler::GetDisableIsCollidingBBoxCheck(), GetGame(), GetProjectionCollisionBox(), GetProjectionOrientation(), m_Player, and m_Projection.
Referenced by EvaluateCollision().
|
inlineprotected |
Definition at line 606 of file Hologram.c.
References CfgGameplayHandler::GetDisableIsCollidingGPlotCheck(), and m_IsCollidingGPlot.
Referenced by EvaluateCollision().
|
inlineprotected |
Definition at line 1294 of file Hologram.c.
References CfgGameplayHandler::GetDisableIsCollidingPlayerCheck(), and m_IsCollidingPlayer.
Referenced by EvaluateCollision().
|
inlineprotected |
Definition at line 618 of file Hologram.c.
References GetProjectionPosition(), and Vector().
Referenced by EvaluateCollision().
|
inlineprotected |
Definition at line 1171 of file Hologram.c.
References ItemBase::IsBasebuildingKit(), and m_Parent.
|
inlineprotected |
Definition at line 1273 of file Hologram.c.
References m_IsFloating.
Referenced by CorrectMaterialPathName(), EvaluateCollision(), and SetProjectionPosition().
|
inlineprotected |
Definition at line 1286 of file Hologram.c.
References m_IsHidden.
Referenced by EvaluateCollision().
|
inlineprotected |
Definition at line 843 of file Hologram.c.
References CfgGameplayHandler::GetDisableIsInTerrainCheck(), GetLeftCloseProjectionVector(), GetLeftFarProjectionVector(), GetRightCloseProjectionVector(), GetRightFarProjectionVector(), m_Projection, and DayZPhysics::RaycastRV().
Referenced by EvaluateCollision().
Definition at line 650 of file Hologram.c.
References m_ContactComponent, m_Parent, m_WatchtowerBlockedComponentNames, and LOD::NAME_VIEW.
Referenced by IsBaseStatic().
|
inlineprotected |
Checks if the item can be legally placed (usually checked by action as well)
Definition at line 762 of file Hologram.c.
References ItemBase::CanBePlaced(), CfgGameplayHandler::GetDisableIsPlacementPermittedCheck(), GetProjectionPosition(), m_Parent, and m_Player.
Referenced by EvaluateCollision().
|
inlineprotected |
|
inlineprivate |
Definition at line 1496 of file Hologram.c.
References m_Player.
Referenced by UpdateHologram().
Definition at line 1031 of file Hologram.c.
References GetGame().
Referenced by IsUnderwater().
|
inlineprotected |
Definition at line 800 of file Hologram.c.
References g_Game, CfgGameplayHandler::GetDisableIsUnderwaterCheck(), GetLeftCloseProjectionVector(), GetLeftFarProjectionVector(), GetRightCloseProjectionVector(), GetRightFarProjectionVector(), IsSurfaceSea(), LIQUID_WATER, and m_Projection.
Referenced by EvaluateCollision().
Definition at line 947 of file Hologram.c.
References Class::CastTo(), ECE_OBJECT_SWAP, GetGame(), GetProjectionEntity(), m_Parent, and m_Projection.
|
inlineprotected |
Definition at line 198 of file Hologram.c.
References GetProjectionName(), and m_Parent.
Referenced by Hologram().
|
inlineprotected |
Definition at line 347 of file Hologram.c.
References GetProjectionCollisionBox(), GetProjectionOrientation(), GetProjectionPosition(), and m_ProjectionTrigger.
Referenced by Hologram(), and UpdateHologram().
|
inlineprotected |
Definition at line 1446 of file Hologram.c.
References CorrectMaterialPathName(), GetGame(), GetHiddenSelection(), m_Projection, and m_SelectionsToRefresh.
Referenced by CreateTrigger(), and UpdateHologram().
|
inlineprotected |
Definition at line 161 of file Hologram.c.
References ANIMATION_INVENTORY, ANIMATION_PLACING, m_Projection, SELECTION_INVENTORY, SELECTION_PLACING, SetSelectionToRefresh(), and UpdateSelections().
Referenced by Hologram().
|
inlineprotected |
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 |
Definition at line 1122 of file Hologram.c.
References vector::Distance(), m_IsHidden, PROJECTION_TRANSITION_MAX, and PROJECTION_TRANSITION_MIN.
Referenced by GetProjectionEntityPosition().
Definition at line 1250 of file Hologram.c.
References m_IsColliding.
Referenced by EvaluateCollision().
Definition at line 1268 of file Hologram.c.
References m_IsCollidingGPlot.
Definition at line 1263 of file Hologram.c.
References m_IsCollidingPlayer.
Definition at line 1245 of file Hologram.c.
References m_IsFloating.
Referenced by GetProjectionEntityPosition().
Definition at line 1258 of file Hologram.c.
References m_IsHidden.
Definition at line 1332 of file Hologram.c.
References GetProjectionDiameter(), HideWhenClose(), m_FromAdjusted, m_Player, m_Projection, m_WatchtowerIgnoreComponentNames, Math::Max(), LOD::NAME_VIEW, DayZPhysics::RaycastRV(), DayZPhysics::RaycastRVProxy(), SMALL_PROJECTION_GROUND, and Vector().
Referenced by SetProjectionPosition().
Definition at line 1312 of file Hologram.c.
References m_Projection.
Referenced by UpdateHologram().
Definition at line 1304 of file Hologram.c.
References IsFloating(), m_Projection, and SetOnGround().
Referenced by UpdateHologram().
Definition at line 1440 of file Hologram.c.
References m_SelectionsToRefresh.
Definition at line 1434 of file Hologram.c.
References m_SelectionsToRefresh.
Referenced by SetAnimations().
Definition at line 1220 of file Hologram.c.
References m_UpdatePosition.
Definition at line 313 of file Hologram.c.
References Math::AbsFloat(), Math::Lerp(), and m_y_p_r_previous.
Referenced by AlignProjectionOnTerrain().
Definition at line 1327 of file Hologram.c.
References m_Rotation.
Definition at line 229 of file Hologram.c.
References AlignProjectionOnTerrain(), CheckPowerSource(), DestroyDebugCollisionBox(), EvaluateCollision(), GetProjectionEntityPosition(), GetUpdatePosition(), IsRestrictedFromAdvancedPlacing(), m_Parent, m_Player, m_Projection, RefreshTrigger(), RefreshVisual(), SetProjectionOrientation(), and SetProjectionPosition().
|
inlineprotected |
Definition at line 179 of file Hologram.c.
References g_Game, GetGame(), m_Parent, and m_Projection.
Referenced by SetAnimations().
Definition at line 38 of file Hologram.c.
Referenced by SetAnimations().
Definition at line 37 of file Hologram.c.
Referenced by SetAnimations().
Definition at line 49 of file Hologram.c.
Referenced by HeightPlacementCheck().
Definition at line 44 of file Hologram.c.
Definition at line 48 of file Hologram.c.
Referenced by HideWhenClose().
|
protected |
Definition at line 52 of file Hologram.c.
Referenced by AlignProjectionOnTerrain(), and Hologram().
|
protected |
Definition at line 54 of file Hologram.c.
Referenced by GetProjectionEntityPosition(), Hologram(), and IsObjectStatic().
|
protected |
Definition at line 35 of file Hologram.c.
Referenced by AlignProjectionOnTerrain(), and GetProjectionEntityPosition().
|
protected |
Definition at line 32 of file Hologram.c.
Referenced by GetDefaultOrientation().
|
protected |
Definition at line 36 of file Hologram.c.
Referenced by GetProjectionEntityPosition(), Hologram(), and SetOnGround().
|
protected |
Definition at line 24 of file Hologram.c.
Referenced by IsColliding(), and SetIsColliding().
|
protected |
Definition at line 25 of file Hologram.c.
Referenced by IsCollidingGPlot(), and SetIsCollidingGPlot().
|
protected |
Definition at line 27 of file Hologram.c.
Referenced by IsCollidingPlayer(), and SetIsCollidingPlayer().
|
protected |
Definition at line 28 of file Hologram.c.
Referenced by IsFloating(), and SetIsFloating().
|
protected |
Definition at line 30 of file Hologram.c.
Referenced by IsHidden(), SetHologramPosition(), and SetIsHidden().
|
protected |
Definition at line 26 of file Hologram.c.
|
protected |
Definition at line 18 of file Hologram.c.
Referenced by CheckPowerSource(), CorrectMaterialPathName(), GetParentEntity(), Hologram(), IsFenceOrWatchtowerKit(), IsObjectStatic(), IsPlacementPermitted(), PlaceEntity(), ProjectionBasedOnParent(), UpdateHologram(), and UpdateSelections().
|
protected |
Definition at line 20 of file Hologram.c.
Referenced by CheckPowerSource(), CreateTrigger(), EvaluateCollision(), HeightPlacementCheck(), Hologram(), IsCollidingBBox(), IsPlacementPermitted(), IsRestrictedFromAdvancedPlacing(), SetOnGround(), and UpdateHologram().
|
protected |
Definition at line 19 of file Hologram.c.
Referenced by AlignProjectionOnTerrain(), CorrectMaterialPathName(), EvaluateCollision(), GetHiddenSelection(), GetProjectionCollisionBox(), GetProjectionEntity(), GetProjectionEntityPosition(), GetProjectionOrientation(), GetProjectionPosition(), Hologram(), IsBaseViable(), IsClippingRoof(), IsCollidingAngle(), IsCollidingBBox(), IsInTerrain(), IsProjectionTrap(), IsUnderwater(), PlaceEntity(), RefreshVisual(), SetAnimations(), SetOnGround(), SetProjectionEntity(), SetProjectionOrientation(), SetProjectionPosition(), UpdateHologram(), UpdateSelections(), and ~Hologram().
|
protected |
Definition at line 21 of file Hologram.c.
Referenced by CreateTrigger(), Hologram(), RefreshTrigger(), and ~Hologram().
|
protected |
Definition at line 22 of file Hologram.c.
Referenced by GetProjectionName(), and Hologram().
|
protected |
Definition at line 33 of file Hologram.c.
Referenced by AddProjectionRotation(), GetProjectionRotation(), Hologram(), and SubtractProjectionRotation().
Definition at line 56 of file Hologram.c.
Referenced by RefreshVisual(), SetSelectionToRefresh(), and SetSelectionToRefresh().
|
protected |
Definition at line 51 of file Hologram.c.
Referenced by Hologram(), and IsBaseFlat().
|
protected |
Definition at line 29 of file Hologram.c.
Referenced by GetUpdatePosition(), Hologram(), and SetUpdatePosition().
Definition at line 63 of file Hologram.c.
Referenced by Hologram(), and IsObjectStatic().
Definition at line 60 of file Hologram.c.
Referenced by CorrectForWatchtower(), Hologram(), and SetOnGround().
|
protected |
Definition at line 34 of file Hologram.c.
Referenced by SmoothProjectionMovement().
|
protected |
Definition at line 53 of file Hologram.c.
Referenced by Hologram(), and IsCollidingAngle().
Definition at line 47 of file Hologram.c.
Referenced by SetHologramPosition().
Definition at line 46 of file Hologram.c.
Referenced by SetHologramPosition().
Definition at line 40 of file Hologram.c.
Referenced by SetAnimations().
Definition at line 39 of file Hologram.c.
Referenced by SetAnimations().
Definition at line 43 of file Hologram.c.
Referenced by SetOnGround().
Definition at line 42 of file Hologram.c.
Referenced by GetProjectionEntityPosition().
Definition at line 6 of file Hologram.c.
Referenced by CreateTrigger().
Definition at line 14 of file Hologram.c.
Referenced by CorrectMaterialPathName().
Definition at line 16 of file Hologram.c.
Referenced by CorrectMaterialPathName().
Definition at line 15 of file Hologram.c.
Referenced by CorrectMaterialPathName().