DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ HeightPlacementCheck()

bool Hologram::HeightPlacementCheck ( )
inlineprotected

Checks height relative to player's position.

См. определение в файле Hologram.c строка 872

873 {
874 if (CfgGameplayHandler.GetDisableHeightPlacementCheck())
875 return true;
876 if ( GetProjectionEntity() ) //simple height check
877 {
878 vector playerpos = m_Player.GetPosition();
879 vector projectionpos = GetProjectionPosition();
880 float delta1 = playerpos[1] - projectionpos[1];
881
883 {
884 #ifdef DIAG_DEVELOPER
885 DebugLog("HeightPlacementCheck(must be true): ", true, false, " | Height difference between item and player is larger than " + DEFAULT_MAX_PLACEMENT_HEIGHT_DIFF);
886 #endif
887 return false;
888 }
889 }
890 #ifdef DIAG_DEVELOPER
891 DebugLog("HeightPlacementCheck(must be true): ", true, true);
892 #endif
893 return true;
894 }
PlayerBase m_Player
Определения Hologram.c:23
EntityAI GetProjectionEntity()
Определения Hologram.c:1332
static const float DEFAULT_MAX_PLACEMENT_HEIGHT_DIFF
Определения Hologram.c:52
vector GetProjectionPosition()
Определения Hologram.c:1494

Перекрестные ссылки DEFAULT_MAX_PLACEMENT_HEIGHT_DIFF, CfgGameplayHandler::GetDisableHeightPlacementCheck(), GetProjectionEntity(), GetProjectionPosition() и m_Player.

Используется в EvaluateCollision().