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

◆ GetHighestSurfaceYDifference()

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

Returns the largest height difference between the given positions.

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

1193 {
1194 float high = -9999999;
1195 float low = 99999999;
1196
1197 for (int i = 0; i < positions.Count(); i++)
1198 {
1199 vector pos = positions.Get(i);
1200 pos[1] = SurfaceRoadY( pos[0], pos[2]);
1201 float y = pos[1];
1202
1203 if ( y > high )
1204 high = y;
1205
1206 if ( y < low )
1207 low = y;
1208
1209 ;
1210 }
1211
1212 return high - low;
1213 }
Icon y
proto native float SurfaceRoadY(float x, float z, RoadSurfaceDetection rsd=RoadSurfaceDetection.LEGACY)

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