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

◆ GetHighestSurfaceYDifference()

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

Returns the largest height difference between the given positions.

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

1210 {
1211 float high = -9999999;
1212 float low = 99999999;
1213
1214 for (int i = 0; i < positions.Count(); i++)
1215 {
1216 vector pos = positions.Get(i);
1217 pos[1] = SurfaceRoadY( pos[0], pos[2]);
1218 float y = pos[1];
1219
1220 if ( y > high )
1221 high = y;
1222
1223 if ( y < low )
1224 low = y;
1225
1226 ;
1227 }
1228
1229 return high - low;
1230 }
Icon y
proto native float SurfaceRoadY(float x, float z, RoadSurfaceDetection rsd=RoadSurfaceDetection.LEGACY)

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