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

◆ ActionPossibilityCheck()

bool ActionPossibilityCheck ( int pCurrentCommandID)
protected

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

245 {
246 if (!m_ActionsEnabled || m_Player.IsSprinting() || m_Player.IsUnconscious() || m_Player.GetCommandModifier_Action() || m_Player.GetCommand_Action() || m_Player.IsEmotePlaying())
247 return false;
248
249 if (m_Player.GetWeaponManager().IsRunning() || m_Player.GetThrowing().IsThrowingAnimationPlaying() || m_Player.GetDayZPlayerInventory().IsProcessing() || m_Player.IsItemsToDelete() || m_Player.IsRolling())
250 return false;
251
252 return (pCurrentCommandID == DayZPlayerConstants.COMMANDID_ACTION || pCurrentCommandID == DayZPlayerConstants.COMMANDID_MOVE || pCurrentCommandID == DayZPlayerConstants.COMMANDID_SWIM || pCurrentCommandID == DayZPlayerConstants.COMMANDID_LADDER || pCurrentCommandID == DayZPlayerConstants.COMMANDID_VEHICLE);
253 }
bool m_ActionsEnabled
Определения ActionManagerBase.c:54
DayZPlayer m_Player
Определения Hand_Events.c:42
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

Перекрестные ссылки m_ActionsEnabled и m_Player.

Используется в ActionManagerClient::ActionStart(), ActionManagerClient::Update() и ActionManagerServer::Update().