12345678910111213141516171819202122232425 |
- class ActionMineBushByHand: ActionMineBush
- {
- void ActionMineBushByHand()
- {
- m_CallbackClass = ActionMineBushCB;
- m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_INTERACT;
- m_FullBody = true;
- m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
- m_SpecialtyWeight = UASoftSkillsWeight.ROUGH_HIGH;
- }
-
- override void CreateConditionComponents()
- {
- m_ConditionTarget = new CCTCursor(UAMaxDistances.DEFAULT);
- m_ConditionItem = new CCINone;
- }
-
- override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
- {
- if ( GetGame().IsMultiplayer() && GetGame().IsServer() )
- return true;
-
- return (super.ActionCondition(player, target, item) && !item);
- }
- };
|