Checks player's contanct with water.
- Аргументы
-
| [out] | pWaterLevel | water level height |
- Возвращает
- Nothing
no valid surface under character
sync info about water contact to player
update active surface
См. определение в файле Environment.c строка 421
422 {
423 string surfType;
424 int liquidType;
425
427
429 {
431 return;
432 }
433
435 {
436 g_Game.SurfaceUnderObjectByBoneCorrectedLiquid(
m_Player, SurfaceAnimationBone.RightFrontLimb, surfType, liquidType);
439
442
445
449
450 return;
451 }
452
455 {
457 return;
458 }
459
460 string impact;
461 g_Game.SurfaceUnderObjectExCorrectedLiquid(
m_Player, surfType, impact, liquidType);
462
463 switch (liquidType)
464 {
471 pWaterLevel =
m_Player.GetCurrentWaterLevel();
473 break;
474 }
475
478
482
483 }
bool IsChildOfType(array< typename > typenames)
Returns true if character is child of given parent type(s)
const float WATER_LEVEL_MID
const float WATER_LEVEL_HIGH
bool IsUnderRoofBuilding()
Is character under building's roof (periodically checked - GameConstants.ENVIRO_TICK_ROOF_RC_CHECK)....
int m_iMovement
current stance (DayZPlayerConstants.STANCEIDX_ERECT, ...), only if the command has a stance
Native class for boats - handles physics simulation.
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_SurfaceType, WATER_LEVEL_HIGH и WATER_LEVEL_MID.
Используется в Update().