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

◆ ActionCondition()

override bool ActionDismantlePart::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

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

75 {
76 #ifdef DIAG_DEVELOPER
77 if (player.GetConstructionActionData().GetFastConstructionMode() == EConstructionDebugModes.INSTANT)
78 return false;
79 #endif
80
81 if ( player.IsPlacingLocal() )
82 return false;
83
84 //Action not allowed if player has broken legs
85 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
86 return false;
87
88 return DismantleCondition( player, target, item, true ) && player.m_MovementState.m_iStanceIdx != DayZPlayerConstants.STANCEIDX_PRONE;
89 }
eBrokenLegs
Определения EBrokenLegs.c:2
bool DismantleCondition(PlayerBase player, ActionTarget target, ItemBase item, bool camera_check)
Определения ActionDismantlePart.c:147
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

Перекрестные ссылки ActionTarget() и DismantleCondition().