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

◆ IsEntityOnWaterSurface()

static bool IsEntityOnWaterSurface ( notnull EntityAI entity_ai)
staticprotected

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

2429 {
2430 vector fireplacePosition = entity_ai.GetPosition();
2431 string surfaceType;
2432 g_Game.SurfaceGetType3D(fireplacePosition[0], fireplacePosition[1] + g_Game.SurfaceGetSeaLevel(), fireplacePosition[2], surfaceType);
2433 if (!surfaceType)
2434 {
2435 float waterLevelDiff = fireplacePosition[1] - g_Game.SurfaceGetSeaLevel();
2436 return waterLevelDiff < 0.5;
2437 }
2438 else if (surfaceType.Contains("water"))
2439 {
2440 return true;
2441 }
2442
2443 return false;
2444 }
DayZGame g_Game
Определения DayZGame.c:3942
Определения EnConvert.c:119
bool Contains(string sample)
Returns true if sample is substring of string.
Определения EnString.c:286

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