6 SHumanCommandSwimSettings m_pSettings;
7 bool m_bWasSwimming =
false;
12 m_pSettings = pPlayer.GetDayZPlayerType().CommandSwimSettingsW();
23 float GetCharacterDepth()
31 bool CheckSwimmingStart(out
vector waterLevel)
37 bool HandleSwimming(
int pCurrentCommandID, HumanCommandMove pCMove, HumanMovementState pState)
42 m_bWasSwimming =
false;
48 if (CheckSwimmingStart(wl))
51 m_bWasSwimming =
true;
58 pCMove.SetCurrentWaterLevel(wl[1]);
70 m_bWasSwimming =
true;
83 m_bWasSwimming =
true;
94 if (GetWaterDepth() < m_pSettings.m_fWaterLevelOut)
98 HumanCommandSwim hcs =
m_pPlayer.GetCommand_Swim();
100 m_bWasSwimming =
false;
106 m_bWasSwimming =
true;