DayZ 1.24
Loading...
Searching...
No Matches
ActionMineRock Class Reference
Inheritance diagram for ActionMineRock:
[legend]
Collaboration diagram for ActionMineRock:
[legend]

Private Member Functions

void ActionMineRock ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
override string GetSoundCategory (ActionData action_data)
 

Detailed Description

Definition at line 11 of file ActionMineRock.c.

Constructor & Destructor Documentation

◆ ActionMineRock()

void ActionMineRock::ActionMineRock ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

override bool ActionMineRock::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 29 of file ActionMineRock.c.

30 {
31 //Action not allowed if player has broken legs
32 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
33 return false;
34
35 Object targetObject = target.GetObject();
36 if (targetObject.IsRock())
37 return true;
38 return false;
39 }
eBrokenLegs
Definition EBrokenLegs.c:2

◆ CreateConditionComponents()

override void ActionMineRock::CreateConditionComponents ( )
inlineprivate

Definition at line 23 of file ActionMineRock.c.

24 {
27 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
const float DEFAULT

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.

◆ GetSoundCategory()

override string ActionMineRock::GetSoundCategory ( ActionData action_data)
inlineprivate

Definition at line 46 of file ActionMineRock.c.

47 {
48 ItemBase item = action_data.m_MainItem;
49 if (item.IsKindOf("Hammer"))
50 return "MinningLight";
51 else if (item.IsKindOf("MeatTenderizer"))
52 return "MinningHard";
53
54 return "";
55 }

◆ OnFinishProgressServer()

override void ActionMineRock::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 41 of file ActionMineRock.c.

42 {
43 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
44 }

References m_SpecialtyWeight.


The documentation for this class was generated from the following file: