Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
cacontinuousminerock.c
Go to the documentation of this file.
2 {
3  void CAContinuousMineRock(float time_between_drops)
4  {
5  m_TimeBetweenMaterialDrops = time_between_drops;
6  }
7 
8  override bool GetMiningData(ActionData action_data )
9  {
10  RockBase ntarget;
11  if ( Class.CastTo(ntarget, action_data.m_Target.GetObject()) )
12  {
13  m_AmountOfDrops = ntarget.GetAmountOfDrops(action_data.m_MainItem);
14  ntarget.GetMaterialAndQuantityMap(action_data.m_MainItem,m_MaterialAndQuantityMap);
15  m_DamageToMiningItemEachDrop = ntarget.GetDamageToMiningItemEachDrop(action_data.m_MainItem);
16  m_AdjustedDamageToMiningItemEachDrop = action_data.m_Player.GetSoftSkillsManager().SubtractSpecialtyBonus( m_DamageToMiningItemEachDrop, m_Action.GetSpecialtyWeight(), true );
17  return true;
18  }
19  return false;
20  }
21 };
CAContinuousMineRock
Definition: cacontinuousminerock.c:1
ActionData
Definition: actionbase.c:20
RockBase
Definition: rockbase.c:1
CAContinuousMineWood
Definition: cacontinuousminewood.c:1
m_Action
enum ActionInputType m_Action
Class
Super root of all classes in Enforce script.
Definition: enscript.c:10