actionminebushbyhand.c 735 B

12345678910111213141516171819202122232425
  1. class ActionMineBushByHand: ActionMineBush
  2. {
  3. void ActionMineBushByHand()
  4. {
  5. m_CallbackClass = ActionMineBushCB;
  6. m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_INTERACT;
  7. m_FullBody = true;
  8. m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
  9. m_SpecialtyWeight = UASoftSkillsWeight.ROUGH_HIGH;
  10. }
  11. override void CreateConditionComponents()
  12. {
  13. m_ConditionTarget = new CCTCursor(UAMaxDistances.DEFAULT);
  14. m_ConditionItem = new CCINone;
  15. }
  16. override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
  17. {
  18. if ( GetGame().IsMultiplayer() && GetGame().IsServer() )
  19. return true;
  20. return (super.ActionCondition(player, target, item) && !item);
  21. }
  22. };