DayZ 1.24
Loading...
Searching...
No Matches
ActionMineBush.c
Go to the documentation of this file.
10
12{
14 {
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_HACKBUSH;
17 m_FullBody = true;
18 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
20 }
21
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
38 {
39 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
40 }
41};
bool m_FullBody
Definition ActionBase.c:52
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30
const float TIME_BETWEEN_MATERIAL_DROPS_DEFAULT
override void CreateActionComponent()
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnFinishProgressServer(ActionData action_data)
const float SMALL
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
proto native CGame GetGame()