no valid surface under character
sync info about water contact to player
update active surface
См. определение в файле Environment.c строка 359
360 {
361 string surfType;
362 int liquidType;
363
365
367 return;
368
370 {
371 g_Game.SurfaceUnderObjectByBoneCorrectedLiquid(
m_Player, SurfaceAnimationBone.RightFrontLimb, surfType, liquidType);
374
377
378 HumanMovementState hms = new HumanMovementState();
380
384
385 return;
386 }
387
390 {
392 return;
393 }
394
395 string impact;
396 g_Game.SurfaceUnderObjectExCorrectedLiquid(
m_Player, surfType, impact, liquidType);
397
398 switch (liquidType)
399 {
406 pWaterLevel =
m_Player.GetCurrentWaterLevel();
408 break;
409 }
410
413
417
418 }
bool IsChildOfType(array< typename > typenames)
const float WATER_LEVEL_HIGH
bool IsUnderRoofBuilding()
const float WATER_LEVEL_MID
int m_iMovement
current stance (DayZPlayerConstants.STANCEIDX_ERECT, ...), only if the command has a stance
DayZPlayerConstants
defined in C++
const int LIQUID_STILLWATER
const int LIQUID_HOTWATER
const int LIQUID_FRESHWATER
const int LIQUID_RIVERWATER
const int LIQUID_SALTWATER
Перекрестные ссылки g_Game, IsChildOfType(), IsUnderRoofBuilding(), LIQUID_FRESHWATER, LIQUID_HOTWATER, LIQUID_RIVERWATER, LIQUID_SALTWATER, LIQUID_STILLWATER, LIQUID_WATER, HumanMovementState::m_iMovement, m_IsInWater, m_LiquidType, m_Player, m_SurfaceType, WATER_LEVEL_HIGH и WATER_LEVEL_MID.
Используется в Update().