DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionMineRock
+ Граф наследования:ActionMineRock:

Закрытые члены

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

Подробное описание

Конструктор(ы)

◆ ActionMineRock()

void ActionMineRock ( )
inlineprivate
14 {
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_MINEROCK;
17 m_FullBody = true;
18 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT;
20 //m_Text = "#mine";
21 }
int m_StanceMask
Definition ActionBase.c:33
bool m_FullBody
Definition ActionBase.c:61
float m_SpecialtyWeight
Definition ActionBase.c:77
Definition ActionMineRock.c:2
int m_CommandUID
Definition AnimatedActionBase.c:143
m_CallbackClass
Definition AnimatedActionBase.c:145
Definition EntityAI.c:95
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CallbackClass, AnimatedActionBase::m_CommandUID, ActionBase::m_FullBody, ActionBase::m_SpecialtyWeight и m_StanceMask.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
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 {
38 return true;
39 }
40 return false;
41 }
eBrokenLegs
Definition EBrokenLegs.c:2
Definition ObjectTyped.c:2

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
24 {
27 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTCursor.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

Перекрестные ссылки UAMaxDistances::DEFAULT, ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

◆ GetSoundCategory()

override string GetSoundCategory ( ActionData action_data)
inlineprivate
44 {
45 ItemBase item = action_data.m_MainItem;
46 if (item.IsKindOf("Hammer"))
47 {
48 return "MinningLight";
49 }
50 else if (item.IsKindOf("MeatTenderizer"))
51 {
52 return "MinningHard";
53 }
54
55 return "";
56 }
Definition InventoryItem.c:731

Объявления и описания членов класса находятся в файле: