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

◆ OnUpdate()

void InventoryActionHandler::OnUpdate ( )
inlineprivate

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

69 {
70
71 if( !m_isActive ) return;
72
73 if( m_player.IsRaised() || m_player.GetCommand_Melee() )
74 {
76 return;
77 }
78
79 if( GetGame().IsInventoryOpen() )
80 {
82 return;
83 }
84
86 {
87 ItemBase handItem = m_player.GetItemInHands();
88
89 if( handItem != m_mainItem )
90 {
92 return;
93 }
94 }
95
96 if( Math.AbsFloat( vector.Distance(m_actionStartPos, m_player.GetPosition())) > MIN_DISTANCE_TO_INTERRUPT )
97 {
99 return;
100 }
101
102
103 }
class GP5GasMask extends MaskBase ItemBase
bool m_useItemInHands
Определения InventoryActionHandler.c:7
PlayerBase m_player
Определения InventoryActionHandler.c:9
vector m_actionStartPos
Определения InventoryActionHandler.c:12
ItemBase m_mainItem
Определения InventoryActionHandler.c:6
const float MIN_DISTANCE_TO_INTERRUPT
Определения InventoryActionHandler.c:14
void DeactiveAction()
Определения InventoryActionHandler.c:105
proto native CGame GetGame()

Перекрестные ссылки Math::AbsFloat(), DeactiveAction(), vector::Distance(), GetGame(), m_actionStartPos, m_isActive, m_mainItem, m_player, m_useItemInHands и MIN_DISTANCE_TO_INTERRUPT.