Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionminebush.c
Go to the documentation of this file.
2 {
3  protected const float TIME_BETWEEN_MATERIAL_DROPS_DEFAULT = 3;
4 
5  override void CreateActionComponent()
6  {
7  m_ActionData.m_ActionComponent = new CAContinuousMineWood(TIME_BETWEEN_MATERIAL_DROPS_DEFAULT);
8  }
9 };
10 
12 {
13  void ActionMineBush()
14  {
15  m_CallbackClass = ActionMineBushCB;
16  m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_HACKBUSH;
17  m_FullBody = true;
18  m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
20  }
21 
22  override void CreateConditionComponents()
23  {
26  }
27 
28  override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
29  {
30  if ( GetGame().IsMultiplayer() && GetGame().IsServer() )
31  return true;
32 
33  Object targetObject = target.GetObject();
34  return targetObject.IsBush() && targetObject.IsCuttable();
35  }
36 
37  override void OnFinishProgressServer( ActionData action_data )
38  {
39  action_data.m_Player.GetSoftSkillsManager().AddSpecialty( m_SpecialtyWeight );
40  }
41 };
ItemBase
Definition: inventoryitem.c:730
GetGame
proto native CGame GetGame()
UASoftSkillsWeight
Definition: actionconstants.c:118
ActionMineBase
Definition: actionminetree.c:16
UAMaxDistances
Definition: actionconstants.c:104
m_FullBody
protected bool m_FullBody
Definition: actionbase.c:52
PlayerBase
Definition: playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition: actionbase.c:20
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:601
Object
Definition: objecttyped.c:1
TIME_BETWEEN_MATERIAL_DROPS_DEFAULT
MineActionData TIME_BETWEEN_MATERIAL_DROPS_DEFAULT
CCTCursor
Definition: cctcursor.c:1
ActionContinuousBaseCB
Definition: actioncontinuousbase.c:1
m_ConditionItem
ref CCIBase m_ConditionItem
Definition: actionbase.c:55
ActionMineBush
Definition: actionminebush.c:11
CCINonRuined
Definition: ccinonruined.c:1
ActionMineBushCB
Definition: actionminebush.c:1
CAContinuousMineWood
Definition: cacontinuousminewood.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition: actionbase.c:56
m_SpecialtyWeight
protected float m_SpecialtyWeight
Definition: actionbase.c:68
m_StanceMask
protected int m_StanceMask
Definition: actionbase.c:53