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

◆ GetHighestSurfaceYDifference()

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

Returns the largest height difference between the given positions.

См. определение в файле Global/game.c строка 1174

1175 {
1176 float high = -9999999;
1177 float low = 99999999;
1178
1179 for (int i = 0; i < positions.Count(); i++)
1180 {
1181 vector pos = positions.Get(i);
1182 pos[1] = SurfaceRoadY( pos[0], pos[2]);
1183 float y = pos[1];
1184
1185 if ( y > high )
1186 high = y;
1187
1188 if ( y < low )
1189 low = y;
1190
1191 ;
1192 }
1193
1194 return high - low;
1195 }
Icon y
proto native float SurfaceRoadY(float x, float z, RoadSurfaceDetection rsd=RoadSurfaceDetection.LEGACY)

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

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