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

◆ IsEntityOnWaterSurface()

static bool IsEntityOnWaterSurface ( notnull EntityAI entity_ai)
staticprotected

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

2420 {
2421 vector fireplacePosition = entity_ai.GetPosition();
2422 string surfaceType;
2423 g_Game.SurfaceGetType3D(fireplacePosition[0], fireplacePosition[1] + g_Game.SurfaceGetSeaLevel(), fireplacePosition[2], surfaceType);
2424 if (!surfaceType)
2425 {
2426 float waterLevelDiff = fireplacePosition[1] - g_Game.SurfaceGetSeaLevel();
2427 return waterLevelDiff < 0.5;
2428 }
2429 else if (surfaceType.Contains("water"))
2430 {
2431 return true;
2432 }
2433
2434 return false;
2435 }
DayZGame g_Game
Определения DayZGame.c:3868
Определения EnConvert.c:106
bool Contains(string sample)
Returns true if sample is substring of string.
Определения EnString.c:286

Перекрестные ссылки string::Contains() и g_Game.