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

◆ ComputeConditionMask()

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

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

820 {
821 int mask = 0;
822 if ( player.GetCommand_Vehicle() )
823 {
824 mask |= ActionConditionMask.ACM_IN_VEHICLE;
825 }
826
827 if ( player.GetCommand_Ladder() )
828 {
829 mask |= ActionConditionMask.ACM_ON_LADDER;
830 }
831
832 if ( player.IsRestrained() )
833 {
834 mask |= ActionConditionMask.ACM_RESTRAIN;
835 }
836
837 if ( player.GetCommand_Swim() )
838 {
839 mask |= ActionConditionMask.ACM_SWIMMING;
840 }
841
842 if ( player.IsRaised() )
843 {
844 mask |= ActionConditionMask.ACM_RAISED;
845 }
846
847 if ( player.GetCommand_Move() && player.GetCommand_Move().IsOnBack() )
848 {
849 mask |= ActionConditionMask.ACM_ON_BACK;
850 }
851
852 if ( player.GetThrowing().IsThrowingModeEnabled())
853 {
854 mask |= ActionConditionMask.ACM_THROWING;
855 }
856
857 if (player.IsLeaning())
858 {
859 mask |= ActionConditionMask.ACM_LEANING;
860 }
861
862 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
863 {
864 mask |= ActionConditionMask.ACM_BROKEN_LEGS;
865 }
866
867 if (player.GetInputController() && player.GetInputController().CameraIsFreeLook())
868 mask |= ActionConditionMask.ACM_IN_FREELOOK;
869
870 return mask;
871 }
ActionConditionMask
Определения ActionBase.c:2
eBrokenLegs
Определения EBrokenLegs.c:2

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

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