848 {
849 if( ForceActionCheck(player) )
850 {
852 return;
853 }
854
855
857 array<ActionBase_Basic> possible_actions;
858 ActionBase action;
859 int i;
860
862 if ( player )
863 {
864 Mich2001Helmet helmet = Mich2001Helmet.Cast(player.FindAttachmentBySlotName("Headgear"));
865 NVGHeadstrap headstrap = NVGHeadstrap.Cast(player.FindAttachmentBySlotName("Eyewear"));
866 if ( helmet )
867 {
868
871 }
872 else if ( headstrap )
873 {
876 }
877 else
878 ClearForcedTarget();
879 }
880
881 target = m_ForcedTarget;
883
884 if(target && target.GetObject())
885 {
886 target.GetObject().GetActions(this.
Type(), possible_actions);
887 if(possible_actions)
888 {
889 for (i = 0; i < possible_actions.Count(); i++)
890 {
891 action = ActionBase.Cast(possible_actions.Get(i));
892 if ( action.
Can(player, target,
m_MainItem, action_condition_mask) )
893 {
895 return;
896 }
897 }
898 }
899 }
900 }
class ActionTargets ActionTarget
class BaitData m_MainItem
bool Can(PlayerBase player, ActionTarget target, ItemBase item, int condition_mask)