DayZ
1.24
Loading...
Searching...
No Matches
CAContinuousMineRock.c
Go to the documentation of this file.
1
class
CAContinuousMineRock
:
CAContinuousMineWood
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
};
ActionData
Definition
ActionBase.c:21
CABase::m_Action
ActionBase m_Action
Definition
CABase.c:3
CAContinuousMineRock
Definition
CAContinuousMineRock.c:2
CAContinuousMineRock::GetMiningData
override bool GetMiningData(ActionData action_data)
Definition
CAContinuousMineRock.c:8
CAContinuousMineRock::CAContinuousMineRock
void CAContinuousMineRock(float time_between_drops)
Definition
CAContinuousMineRock.c:3
CAContinuousMineWood
Definition
CAContinuousMineWood.c:2
CAContinuousMineWood::m_TimeBetweenMaterialDrops
float m_TimeBetweenMaterialDrops
Definition
CAContinuousMineWood.c:6
CAContinuousMineWood::m_AmountOfDrops
int m_AmountOfDrops
Definition
CAContinuousMineWood.c:9
CAContinuousMineWood::m_DamageToMiningItemEachDrop
float m_DamageToMiningItemEachDrop
Definition
CAContinuousMineWood.c:7
CAContinuousMineWood::m_AdjustedDamageToMiningItemEachDrop
float m_AdjustedDamageToMiningItemEachDrop
Definition
CAContinuousMineWood.c:8
CAContinuousMineWood::m_MaterialAndQuantityMap
ref map< string, int > m_MaterialAndQuantityMap
Definition
CAContinuousMineWood.c:11
Class
Super root of all classes in Enforce script.
Definition
EnScript.c:11
Param3
Definition
EntityAI.c:95
RockBase
Definition
RockBase.c:2
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
scripts
4_World
Classes
UserActionsComponent
ActionComponents
CAContinuousMineRock.c
Generated by
1.10.0