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

◆ GetHighestSurfaceYDifference()

float CGame::GetHighestSurfaceYDifference ( array< vector > positions)
inlineprotected

Returns the largest height difference between the given positions.

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

1120 {
1121 float high = -9999999;
1122 float low = 99999999;
1123
1124 for (int i = 0; i < positions.Count(); i++)
1125 {
1126 vector pos = positions.Get(i);
1127 pos[1] = SurfaceRoadY( pos[0], pos[2]);
1128 float y = pos[1];
1129
1130 if ( y > high )
1131 high = y;
1132
1133 if ( y < low )
1134 low = y;
1135
1136 ;
1137 }
1138
1139 return high - low;
1140 }
Icon y
proto native float SurfaceRoadY(float x, float z, RoadSurfaceDetection rsd=RoadSurfaceDetection.LEGACY)

Перекрестные ссылки SurfaceRoadY() и y.

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