DayZ 1.24
Loading...
Searching...
No Matches
CAContinuousMineRock.c
Go to the documentation of this file.
2{
7
9 {
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};
ActionBase m_Action
Definition CABase.c:3
override bool GetMiningData(ActionData action_data)
void CAContinuousMineRock(float time_between_drops)
ref map< string, int > m_MaterialAndQuantityMap
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.