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

◆ CheckSurfaceBelowGardenPlot()

void ActionDigGardenPlot::CheckSurfaceBelowGardenPlot ( PlayerBase player,
GardenPlot item_GP,
Hologram hologram )
inlineprivate

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

63 {
64 vector min_max[2];
65 item_GP.GetCollisionBox(min_max);
66 float offset = min_max[1][1] - min_max[0][1];
67 vector pos_adjusted = item_GP.GetPosition();
68 pos_adjusted[1] = pos_adjusted[1] + offset;
69
70 if (item_GP.CanBePlaced(player, /*item_GP.GetPosition()*/pos_adjusted) )
71 {
72 if (item_GP.CanBePlaced(NULL, item_GP.CoordToParent(hologram.GetLeftCloseProjectionVector())))
73 {
74 if (item_GP.CanBePlaced(NULL, item_GP.CoordToParent(hologram.GetRightCloseProjectionVector())))
75 {
76 if (item_GP.CanBePlaced(NULL, item_GP.CoordToParent(hologram.GetLeftFarProjectionVector())))
77 {
78 if (item_GP.CanBePlaced(NULL, item_GP.CoordToParent(hologram.GetRightFarProjectionVector())))
79 {
80 hologram.SetIsCollidingGPlot(false);
81
82 return;
83 }
84 }
85 }
86 }
87 }
88
89 hologram.SetIsCollidingGPlot(true);
90 }
void SetIsCollidingGPlot(bool is_colliding_gplot)
Определения Hologram.c:1360
vector GetLeftFarProjectionVector()
Определения Hologram.c:1107
vector GetRightFarProjectionVector()
Определения Hologram.c:1116
vector GetLeftCloseProjectionVector()
Определения Hologram.c:1089
vector GetRightCloseProjectionVector()
Определения Hologram.c:1097

Перекрестные ссылки Hologram::GetLeftCloseProjectionVector(), Hologram::GetLeftFarProjectionVector(), Hologram::GetRightCloseProjectionVector(), Hologram::GetRightFarProjectionVector() и Hologram::SetIsCollidingGPlot().

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