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

◆ IsEntityOnWaterSurface()

static bool IsEntityOnWaterSurface ( notnull EntityAI entity_ai)
staticprotected

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

2445 {
2446 vector fireplacePosition = entity_ai.GetPosition();
2447 string surfaceType;
2448 g_Game.SurfaceGetType3D(fireplacePosition[0], fireplacePosition[1] + g_Game.SurfaceGetSeaLevel(), fireplacePosition[2], surfaceType);
2449 if (!surfaceType)
2450 {
2451 float waterLevelDiff = fireplacePosition[1] - g_Game.SurfaceGetSeaLevel();
2452 return waterLevelDiff < 0.5;
2453 }
2454 else if (surfaceType.Contains("water"))
2455 {
2456 return true;
2457 }
2458
2459 return false;
2460 }
DayZGame g_Game
Определения DayZGame.c:4074
Определения EnConvert.c:119
bool Contains(string sample)
Returns true if sample is substring of string.
Определения EnString.c:286

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