actionattachontentproxy.c 617 B

123456789101112131415161718192021
  1. class ActionAttachOnTentProxy: ActionAttachOnProxy
  2. {
  3. void ActionAttachOnTentProxy() {};
  4. override void CreateConditionComponents()
  5. {
  6. m_ConditionItem = new CCINonRuined;
  7. m_ConditionTarget = new CCTCursorParent;
  8. m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_ATTACHITEM;
  9. m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
  10. }
  11. override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
  12. {
  13. TentBase tent = TentBase.Cast(target.GetParent());
  14. if ( !tent )
  15. return false;
  16. return super.ActionCondition(player,target,item);
  17. }
  18. }