Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
Hologram Class Reference

Protected Member Functions

void Hologram (PlayerBase player, vector pos, ItemBase item)
 
void ~Hologram ()
 
void SetAnimations ()
 
void UpdateSelections ()
 
string ProjectionBasedOnParent ()
 
string GetProjectionName (ItemBase item)
 
void UpdateHologram (float timeslice)
 
vector AlignProjectionOnTerrain (float timeslice)
 
vector SmoothProjectionMovement (vector y_p_r, float timeslice)
 
void CreateTrigger ()
 
void RefreshTrigger ()
 
void EvaluateCollision (ItemBase action_item=null)
 
bool IsClippingRoof ()
 
bool IsCollidingAngle ()
 
bool IsCollidingBBox (ItemBase action_item=null)
 
bool IsBaseViable ()
 
bool IsCollidingGPlot ()
 
bool IsCollidingZeroPos ()
 
bool IsBehindObstacle ()
 DEPRECATED.
 
bool IsBaseStatic (Object objectToCheck)
 
bool IsObjectStatic (Object obj)
 
bool IsBaseIntact (Object under_left_close, Object under_right_close, Object under_left_far, Object under_right_far)
 
bool IsBaseFlat (vector contact_pos_left_close, vector contact_pos_right_close, vector contact_pos_left_far, vector contact_pos_right_far)
 
bool IsPlacementPermitted ()
 Checks if the item can be legally placed (usually checked by action as well)
 
bool HeightPlacementCheck ()
 Checks height relative to player's position.
 
bool IsUnderwater ()
 
bool IsInTerrain ()
 
void CheckPowerSource ()
 
EntityAI PlaceEntity (EntityAI entity_for_placing)
 
void GetProjectionCollisionBox (out vector min_max[2])
 
vector GetCollisionBoxSize (vector min_max[2])
 
vector GetLeftCloseProjectionVector ()
 
vector GetRightCloseProjectionVector ()
 
vector GetLeftFarProjectionVector ()
 
vector GetRightFarProjectionVector ()
 
bool IsSurfaceWater (vector position)
 
bool IsSurfaceSea (vector position)
 
vector GetProjectionEntityPosition (PlayerBase player)
 
bool SetHologramPosition (vector startPosition, float minProjectionDistance, float maxProjectionDistance, inout vector contactPosition)
 Sets hologram position based on player and projection distance.
 
bool IsFenceOrWatchtowerKit ()
 
vector CorrectForWatchtower (int contactComponent, vector contactPos, PlayerBase player, Object hitObject)
 
bool IsProjectionTrap ()
 
float GetProjectionDiameter ()
 
float GetProjectionRadius ()
 
void SetUpdatePosition (bool state)
 
bool GetUpdatePosition ()
 
EntityAI GetParentEntity ()
 
void SetProjectionEntity (EntityAI projection)
 
EntityAI GetProjectionEntity ()
 
void SetIsFloating (bool is_floating)
 
void SetIsColliding (bool is_colliding)
 
void SetIsHidden (bool is_hidden)
 
void SetIsCollidingPlayer (bool is_colliding)
 
void SetIsCollidingGPlot (bool is_colliding_gplot)
 
bool IsFloating ()
 
bool IsColliding ()
 
bool IsHidden ()
 
bool IsCollidingPlayer ()
 
void SetProjectionPosition (vector position)
 
void SetProjectionOrientation (vector orientation)
 
vector GetProjectionRotation ()
 
void AddProjectionRotation (float addition)
 
void SubtractProjectionRotation (float subtraction)
 
vector SetOnGround (vector position)
 
vector HideWhenClose (vector pos)
 
vector GetProjectionPosition ()
 
vector GetProjectionOrientation ()
 
vector GetDefaultOrientation ()
 
int GetHiddenSelection (string selection)
 
void SetSelectionToRefresh (string selection)
 
void SetSelectionToRefresh (array< string > selection)
 
void RefreshVisual ()
 
string CorrectMaterialPathName ()
 

Static Protected Member Functions

static bool DoesHaveProjection (ItemBase item)
 DEPRECATED.
 

Protected Attributes

const int SPAWN_FLAGS = ECE_LOCAL
 
const string SUFFIX_MATERIAL_DEPLOYABLE = "_deployable.rvmat"
 
const string SUFFIX_MATERIAL_UNDEPLOYABLE = "_undeployable.rvmat"
 
const string SUFFIX_MATERIAL_POWERED = "_powered.rvmat"
 
const vector PLACEMENT_RC_START_OFFSET = "0 1 0"
 
const vector PLACEMENT_RC_END_OFFSET = "0 -2 0"
 
ItemBase m_Parent
 
EntityAI m_Projection
 
PlayerBase m_Player
 
ProjectionTrigger m_ProjectionTrigger
 
string m_ProjectionTypename
 
bool m_IsColliding
 
bool m_IsCollidingGPlot
 
bool m_IsSlope
 
bool m_IsCollidingPlayer
 
bool m_IsFloating
 
bool m_UpdatePosition
 
bool m_IsHidden
 
vector m_DefaultOrientation
 
vector m_Rotation
 
vector m_y_p_r_previous
 
vector m_ContactDir
 
vector m_FromAdjusted
 
const string ANIMATION_PLACING = "Placing"
 
const string ANIMATION_INVENTORY = "Inventory"
 
const string SELECTION_PLACING = "placing"
 
const string SELECTION_INVENTORY = "inventory"
 
const float SMALL_PROJECTION_RADIUS = 1
 
const float SMALL_PROJECTION_GROUND = 2
 
const float DISTANCE_SMALL_PROJECTION = 1
 
const float LARGE_PROJECTION_DISTANCE_LIMIT = 6
 Deprecated.
 
const float PROJECTION_TRANSITION_MIN = 1
 
const float PROJECTION_TRANSITION_MAX = 0.25
 
const float LOOKING_TO_SKY = 0.75
 
float m_SlopeTolerance
 
bool m_AlignToTerrain
 
vector m_YawPitchRollLimit
 
int m_ContactComponent
 
ref set< stringm_SelectionsToRefresh = new set<string>
 

Static Protected Attributes

static const float DEFAULT_MAX_PLACEMENT_HEIGHT_DIFF = 1.5
 
ref array< stringm_WatchtowerIgnoreComponentNames = new array<string>
 
ref array< stringm_WatchtowerBlockedComponentNames = new array<string>
 

Detailed Description

Definition at line 1 of file hologram.c.

Constructor & Destructor Documentation

◆ Hologram()

void Hologram::Hologram ( PlayerBase player,
vector pos,
ItemBase item )
protected

Definition at line 68 of file hologram.c.

◆ ~Hologram()

void Hologram::~Hologram ( )
protected

Definition at line 158 of file hologram.c.

Member Function Documentation

◆ AddProjectionRotation()

void Hologram::AddProjectionRotation ( float addition)
protected

Definition at line 1367 of file hologram.c.

◆ AlignProjectionOnTerrain()

vector Hologram::AlignProjectionOnTerrain ( float timeslice)
protected

Definition at line 293 of file hologram.c.

◆ CheckPowerSource()

void Hologram::CheckPowerSource ( )
protected

Definition at line 976 of file hologram.c.

◆ CorrectForWatchtower()

vector Hologram::CorrectForWatchtower ( int contactComponent,
vector contactPos,
PlayerBase player,
Object hitObject )
protected

Definition at line 1219 of file hologram.c.

◆ CorrectMaterialPathName()

string Hologram::CorrectMaterialPathName ( )
protected

Definition at line 1521 of file hologram.c.

◆ CreateTrigger()

void Hologram::CreateTrigger ( )
protected

Definition at line 375 of file hologram.c.

◆ DoesHaveProjection()

static bool Hologram::DoesHaveProjection ( ItemBase item)
staticprotected

DEPRECATED.

Definition at line 250 of file hologram.c.

◆ EvaluateCollision()

void Hologram::EvaluateCollision ( ItemBase action_item = null)
protected

Definition at line 432 of file hologram.c.

◆ GetCollisionBoxSize()

vector Hologram::GetCollisionBoxSize ( vector min_max[2])
protected

Definition at line 1027 of file hologram.c.

◆ GetDefaultOrientation()

vector Hologram::GetDefaultOrientation ( )
protected

Definition at line 1461 of file hologram.c.

◆ GetHiddenSelection()

int Hologram::GetHiddenSelection ( string selection)
protected

Definition at line 1474 of file hologram.c.

◆ GetLeftCloseProjectionVector()

vector Hologram::GetLeftCloseProjectionVector ( )
protected

Definition at line 1038 of file hologram.c.

◆ GetLeftFarProjectionVector()

vector Hologram::GetLeftFarProjectionVector ( )
protected

Definition at line 1056 of file hologram.c.

◆ GetParentEntity()

EntityAI Hologram::GetParentEntity ( )
protected

Definition at line 1273 of file hologram.c.

◆ GetProjectionCollisionBox()

void Hologram::GetProjectionCollisionBox ( out vector min_max[2])
protected

Definition at line 1016 of file hologram.c.

◆ GetProjectionDiameter()

float Hologram::GetProjectionDiameter ( )
protected

Definition at line 1234 of file hologram.c.

◆ GetProjectionEntity()

EntityAI Hologram::GetProjectionEntity ( )
protected

Definition at line 1283 of file hologram.c.

◆ GetProjectionEntityPosition()

vector Hologram::GetProjectionEntityPosition ( PlayerBase player)
protected

will not push hologram up when there is direct hit of an item

Definition at line 1087 of file hologram.c.

◆ GetProjectionName()

string Hologram::GetProjectionName ( ItemBase item)
protected

configuration override

Definition at line 222 of file hologram.c.

◆ GetProjectionOrientation()

vector Hologram::GetProjectionOrientation ( )
protected

Definition at line 1453 of file hologram.c.

◆ GetProjectionPosition()

vector Hologram::GetProjectionPosition ( )
protected

Definition at line 1445 of file hologram.c.

◆ GetProjectionRadius()

float Hologram::GetProjectionRadius ( )
protected

Definition at line 1248 of file hologram.c.

◆ GetProjectionRotation()

vector Hologram::GetProjectionRotation ( )
protected

Definition at line 1362 of file hologram.c.

◆ GetRightCloseProjectionVector()

vector Hologram::GetRightCloseProjectionVector ( )
protected

Definition at line 1046 of file hologram.c.

◆ GetRightFarProjectionVector()

vector Hologram::GetRightFarProjectionVector ( )
protected

Definition at line 1065 of file hologram.c.

◆ GetUpdatePosition()

bool Hologram::GetUpdatePosition ( )
protected

Definition at line 1268 of file hologram.c.

◆ HeightPlacementCheck()

bool Hologram::HeightPlacementCheck ( )
protected

Checks height relative to player's position.

Definition at line 821 of file hologram.c.

◆ HideWhenClose()

vector Hologram::HideWhenClose ( vector pos)
protected

Definition at line 1432 of file hologram.c.

◆ IsBaseFlat()

bool Hologram::IsBaseFlat ( vector contact_pos_left_close,
vector contact_pos_right_close,
vector contact_pos_left_far,
vector contact_pos_right_far )
protected

Definition at line 786 of file hologram.c.

◆ IsBaseIntact()

bool Hologram::IsBaseIntact ( Object under_left_close,
Object under_right_close,
Object under_left_far,
Object under_right_far )
protected

Definition at line 700 of file hologram.c.

◆ IsBaseStatic()

bool Hologram::IsBaseStatic ( Object objectToCheck)
protected

Definition at line 682 of file hologram.c.

◆ IsBaseViable()

bool Hologram::IsBaseViable ( )
protected

Definition at line 587 of file hologram.c.

◆ IsBehindObstacle()

bool Hologram::IsBehindObstacle ( )
protected

DEPRECATED.

Definition at line 675 of file hologram.c.

◆ IsClippingRoof()

bool Hologram::IsClippingRoof ( )
protected

Definition at line 475 of file hologram.c.

◆ IsColliding()

bool Hologram::IsColliding ( )
protected

Definition at line 1324 of file hologram.c.

◆ IsCollidingAngle()

bool Hologram::IsCollidingAngle ( )
protected

Definition at line 507 of file hologram.c.

◆ IsCollidingBBox()

bool Hologram::IsCollidingBBox ( ItemBase action_item = null)
protected

Definition at line 540 of file hologram.c.

◆ IsCollidingGPlot()

bool Hologram::IsCollidingGPlot ( )
protected

Definition at line 651 of file hologram.c.

◆ IsCollidingPlayer()

bool Hologram::IsCollidingPlayer ( )
protected

Definition at line 1337 of file hologram.c.

◆ IsCollidingZeroPos()

bool Hologram::IsCollidingZeroPos ( )
protected

Definition at line 663 of file hologram.c.

◆ IsFenceOrWatchtowerKit()

bool Hologram::IsFenceOrWatchtowerKit ( )
protected

Definition at line 1214 of file hologram.c.

◆ IsFloating()

bool Hologram::IsFloating ( )
protected

Definition at line 1316 of file hologram.c.

◆ IsHidden()

bool Hologram::IsHidden ( )
protected

Definition at line 1329 of file hologram.c.

◆ IsInTerrain()

bool Hologram::IsInTerrain ( )
protected

Definition at line 889 of file hologram.c.

◆ IsObjectStatic()

bool Hologram::IsObjectStatic ( Object obj)
protected

Definition at line 695 of file hologram.c.

◆ IsPlacementPermitted()

bool Hologram::IsPlacementPermitted ( )
protected

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

Definition at line 807 of file hologram.c.

◆ IsProjectionTrap()

bool Hologram::IsProjectionTrap ( )
protected

Definition at line 1229 of file hologram.c.

◆ IsSurfaceSea()

bool Hologram::IsSurfaceSea ( vector position)
protected

Definition at line 1081 of file hologram.c.

◆ IsSurfaceWater()

bool Hologram::IsSurfaceWater ( vector position)
protected

Definition at line 1075 of file hologram.c.

◆ IsUnderwater()

bool Hologram::IsUnderwater ( )
protected

Definition at line 845 of file hologram.c.

◆ PlaceEntity()

EntityAI Hologram::PlaceEntity ( EntityAI entity_for_placing)
protected

Definition at line 993 of file hologram.c.

◆ ProjectionBasedOnParent()

string Hologram::ProjectionBasedOnParent ( )
protected

Definition at line 217 of file hologram.c.

◆ RefreshTrigger()

void Hologram::RefreshTrigger ( )
protected

Definition at line 386 of file hologram.c.

◆ RefreshVisual()

void Hologram::RefreshVisual ( )
protected

Definition at line 1497 of file hologram.c.

◆ SetAnimations()

void Hologram::SetAnimations ( )
protected

Definition at line 178 of file hologram.c.

◆ SetHologramPosition()

bool Hologram::SetHologramPosition ( vector startPosition,
float minProjectionDistance,
float maxProjectionDistance,
inout vector contactPosition )
protected

Sets hologram position based on player and projection distance.

Parameters
startPositionstart position
minProjectionDistancelower distance limit
maxProjectionDistancehigher distance limit
inoutcontactPosition is position of the hologram contact with ground/object
Returns
true if hologram is floating (is on the near or far edge)

Definition at line 1165 of file hologram.c.

◆ SetIsColliding()

void Hologram::SetIsColliding ( bool is_colliding)
protected

Definition at line 1293 of file hologram.c.

◆ SetIsCollidingGPlot()

void Hologram::SetIsCollidingGPlot ( bool is_colliding_gplot)
protected

Definition at line 1311 of file hologram.c.

◆ SetIsCollidingPlayer()

void Hologram::SetIsCollidingPlayer ( bool is_colliding)
protected

Definition at line 1306 of file hologram.c.

◆ SetIsFloating()

void Hologram::SetIsFloating ( bool is_floating)
protected

Definition at line 1288 of file hologram.c.

◆ SetIsHidden()

void Hologram::SetIsHidden ( bool is_hidden)
protected

Definition at line 1301 of file hologram.c.

◆ SetOnGround()

vector Hologram::SetOnGround ( vector position)
protected

Definition at line 1377 of file hologram.c.

◆ SetProjectionEntity()

void Hologram::SetProjectionEntity ( EntityAI projection)
protected

Definition at line 1278 of file hologram.c.

◆ SetProjectionOrientation()

void Hologram::SetProjectionOrientation ( vector orientation)
protected

Definition at line 1357 of file hologram.c.

◆ SetProjectionPosition()

void Hologram::SetProjectionPosition ( vector position)
protected

Definition at line 1347 of file hologram.c.

◆ SetSelectionToRefresh() [1/2]

void Hologram::SetSelectionToRefresh ( array< string > selection)
protected

Definition at line 1491 of file hologram.c.

◆ SetSelectionToRefresh() [2/2]

void Hologram::SetSelectionToRefresh ( string selection)
protected

Definition at line 1485 of file hologram.c.

◆ SetUpdatePosition()

void Hologram::SetUpdatePosition ( bool state)
protected

Definition at line 1263 of file hologram.c.

◆ SmoothProjectionMovement()

vector Hologram::SmoothProjectionMovement ( vector y_p_r,
float timeslice )
protected

Definition at line 348 of file hologram.c.

◆ SubtractProjectionRotation()

void Hologram::SubtractProjectionRotation ( float subtraction)
protected

Definition at line 1372 of file hologram.c.

◆ UpdateHologram()

void Hologram::UpdateHologram ( float timeslice)
protected

Definition at line 256 of file hologram.c.

◆ UpdateSelections()

void Hologram::UpdateSelections ( )
protected

Definition at line 198 of file hologram.c.

Member Data Documentation

◆ ANIMATION_INVENTORY

const string Hologram::ANIMATION_INVENTORY = "Inventory"
protected

Definition at line 41 of file hologram.c.

◆ ANIMATION_PLACING

const string Hologram::ANIMATION_PLACING = "Placing"
protected

Definition at line 40 of file hologram.c.

◆ DEFAULT_MAX_PLACEMENT_HEIGHT_DIFF

const float Hologram::DEFAULT_MAX_PLACEMENT_HEIGHT_DIFF = 1.5
staticprotected

Definition at line 52 of file hologram.c.

◆ DISTANCE_SMALL_PROJECTION

const float Hologram::DISTANCE_SMALL_PROJECTION = 1
protected

Definition at line 47 of file hologram.c.

◆ LARGE_PROJECTION_DISTANCE_LIMIT

const float Hologram::LARGE_PROJECTION_DISTANCE_LIMIT = 6
protected

Deprecated.

Definition at line 48 of file hologram.c.

◆ LOOKING_TO_SKY

const float Hologram::LOOKING_TO_SKY = 0.75
protected

Definition at line 51 of file hologram.c.

◆ m_AlignToTerrain

bool Hologram::m_AlignToTerrain
protected

Definition at line 55 of file hologram.c.

◆ m_ContactComponent

int Hologram::m_ContactComponent
protected

Definition at line 57 of file hologram.c.

◆ m_ContactDir

vector Hologram::m_ContactDir
protected

Definition at line 38 of file hologram.c.

◆ m_DefaultOrientation

vector Hologram::m_DefaultOrientation
protected

Definition at line 35 of file hologram.c.

◆ m_FromAdjusted

vector Hologram::m_FromAdjusted
protected

Definition at line 39 of file hologram.c.

◆ m_IsColliding

bool Hologram::m_IsColliding
protected

Definition at line 27 of file hologram.c.

◆ m_IsCollidingGPlot

bool Hologram::m_IsCollidingGPlot
protected

Definition at line 28 of file hologram.c.

◆ m_IsCollidingPlayer

bool Hologram::m_IsCollidingPlayer
protected

Definition at line 30 of file hologram.c.

◆ m_IsFloating

bool Hologram::m_IsFloating
protected

Definition at line 31 of file hologram.c.

◆ m_IsHidden

bool Hologram::m_IsHidden
protected

Definition at line 33 of file hologram.c.

◆ m_IsSlope

bool Hologram::m_IsSlope
protected

Definition at line 29 of file hologram.c.

◆ m_Parent

ItemBase Hologram::m_Parent
protected

Definition at line 21 of file hologram.c.

◆ m_Player

PlayerBase Hologram::m_Player
protected

Definition at line 23 of file hologram.c.

◆ m_Projection

EntityAI Hologram::m_Projection
protected

Definition at line 22 of file hologram.c.

◆ m_ProjectionTrigger

ProjectionTrigger Hologram::m_ProjectionTrigger
protected

Definition at line 24 of file hologram.c.

◆ m_ProjectionTypename

string Hologram::m_ProjectionTypename
protected

Definition at line 25 of file hologram.c.

◆ m_Rotation

vector Hologram::m_Rotation
protected

Definition at line 36 of file hologram.c.

◆ m_SelectionsToRefresh

ref set<string> Hologram::m_SelectionsToRefresh = new set<string>
protected

Definition at line 59 of file hologram.c.

◆ m_SlopeTolerance

float Hologram::m_SlopeTolerance
protected

Definition at line 54 of file hologram.c.

◆ m_UpdatePosition

bool Hologram::m_UpdatePosition
protected

Definition at line 32 of file hologram.c.

◆ m_WatchtowerBlockedComponentNames

ref array<string> Hologram::m_WatchtowerBlockedComponentNames = new array<string>
staticprotected

Definition at line 66 of file hologram.c.

◆ m_WatchtowerIgnoreComponentNames

ref array<string> Hologram::m_WatchtowerIgnoreComponentNames = new array<string>
staticprotected

Definition at line 63 of file hologram.c.

◆ m_y_p_r_previous

vector Hologram::m_y_p_r_previous
protected

Definition at line 37 of file hologram.c.

◆ m_YawPitchRollLimit

vector Hologram::m_YawPitchRollLimit
protected

Definition at line 56 of file hologram.c.

◆ PLACEMENT_RC_END_OFFSET

const vector Hologram::PLACEMENT_RC_END_OFFSET = "0 -2 0"
protected

Definition at line 19 of file hologram.c.

◆ PLACEMENT_RC_START_OFFSET

const vector Hologram::PLACEMENT_RC_START_OFFSET = "0 1 0"
protected

Definition at line 18 of file hologram.c.

◆ PROJECTION_TRANSITION_MAX

const float Hologram::PROJECTION_TRANSITION_MAX = 0.25
protected

Definition at line 50 of file hologram.c.

◆ PROJECTION_TRANSITION_MIN

const float Hologram::PROJECTION_TRANSITION_MIN = 1
protected

Definition at line 49 of file hologram.c.

◆ SELECTION_INVENTORY

const string Hologram::SELECTION_INVENTORY = "inventory"
protected

Definition at line 43 of file hologram.c.

◆ SELECTION_PLACING

const string Hologram::SELECTION_PLACING = "placing"
protected

Definition at line 42 of file hologram.c.

◆ SMALL_PROJECTION_GROUND

const float Hologram::SMALL_PROJECTION_GROUND = 2
protected

Definition at line 46 of file hologram.c.

◆ SMALL_PROJECTION_RADIUS

const float Hologram::SMALL_PROJECTION_RADIUS = 1
protected

Definition at line 45 of file hologram.c.

◆ SPAWN_FLAGS

const int Hologram::SPAWN_FLAGS = ECE_LOCAL
protected

Definition at line 6 of file hologram.c.

◆ SUFFIX_MATERIAL_DEPLOYABLE

const string Hologram::SUFFIX_MATERIAL_DEPLOYABLE = "_deployable.rvmat"
protected

Definition at line 14 of file hologram.c.

◆ SUFFIX_MATERIAL_POWERED

const string Hologram::SUFFIX_MATERIAL_POWERED = "_powered.rvmat"
protected

Definition at line 16 of file hologram.c.

◆ SUFFIX_MATERIAL_UNDEPLOYABLE

const string Hologram::SUFFIX_MATERIAL_UNDEPLOYABLE = "_undeployable.rvmat"
protected

Definition at line 15 of file hologram.c.


The documentation for this class was generated from the following file: