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

◆ ComputeConditionMask()

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

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

844 {
845 int mask = 0;
846 if ( player.GetCommand_Vehicle() )
847 {
848 mask |= ActionConditionMask.ACM_IN_VEHICLE;
849 }
850
851 if ( player.GetCommand_Ladder() )
852 {
853 mask |= ActionConditionMask.ACM_ON_LADDER;
854 }
855
856 if ( player.IsRestrained() )
857 {
858 mask |= ActionConditionMask.ACM_RESTRAIN;
859 }
860
861 if ( player.GetCommand_Swim() )
862 {
863 mask |= ActionConditionMask.ACM_SWIMMING;
864 }
865
866 if ( player.IsRaised() )
867 {
868 mask |= ActionConditionMask.ACM_RAISED;
869 }
870
871 if ( player.GetCommand_Move() && player.GetCommand_Move().IsOnBack() )
872 {
873 mask |= ActionConditionMask.ACM_ON_BACK;
874 }
875
876 if ( player.GetThrowing().IsThrowingModeEnabled())
877 {
878 mask |= ActionConditionMask.ACM_THROWING;
879 }
880
881 if (player.IsLeaning())
882 {
883 mask |= ActionConditionMask.ACM_LEANING;
884 }
885
886 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
887 {
888 mask |= ActionConditionMask.ACM_BROKEN_LEGS;
889 }
890
891 if (player.GetInputController() && player.GetInputController().CameraIsFreeLook())
892 mask |= ActionConditionMask.ACM_IN_FREELOOK;
893
894 return mask;
895 }
ActionConditionMask
Определения ActionBase.c:2
eBrokenLegs
Определения EBrokenLegs.c:2

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

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