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

◆ ComputeConditionMask()

static int ActionBase::ComputeConditionMask ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlinestaticprotected

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

808 {
809 int mask = 0;
810 if ( player.GetCommand_Vehicle() )
811 {
812 mask |= ActionConditionMask.ACM_IN_VEHICLE;
813 }
814
815 if ( player.GetCommand_Ladder() )
816 {
817 mask |= ActionConditionMask.ACM_ON_LADDER;
818 }
819
820 if ( player.IsRestrained() )
821 {
822 mask |= ActionConditionMask.ACM_RESTRAIN;
823 }
824
825 if ( player.GetCommand_Swim() )
826 {
827 mask |= ActionConditionMask.ACM_SWIMMING;
828 }
829
830 if ( player.IsRaised() )
831 {
832 mask |= ActionConditionMask.ACM_RAISED;
833 }
834
835 if ( player.GetCommand_Move() && player.GetCommand_Move().IsOnBack() )
836 {
837 mask |= ActionConditionMask.ACM_ON_BACK;
838 }
839
840 if ( player.GetThrowing().IsThrowingModeEnabled())
841 {
842 mask |= ActionConditionMask.ACM_THROWING;
843 }
844
845 if (player.IsLeaning())
846 {
847 mask |= ActionConditionMask.ACM_LEANING;
848 }
849
850 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
851 {
852 mask |= ActionConditionMask.ACM_BROKEN_LEGS;
853 }
854
855 if (player.GetInputController() && player.GetInputController().CameraIsFreeLook())
856 mask |= ActionConditionMask.ACM_IN_FREELOOK;
857
858 return mask;
859 }
ActionConditionMask
Определения ActionBase.c:2
eBrokenLegs
Определения EBrokenLegs.c:2

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

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