DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionDeCraftRopeBelt.c
См. документацию.
1
class
ActionDeCraftRopeBeltCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.m_ActionComponent =
new
CAContinuousTime
(
UATimeSpent
.
DEFAULT_DECRAFT
);
6
}
7
9
private
const
float
TIME_TO_CRAFT_CLOTHES
= 5.0;
10
}
11
12
class
ActionDeCraftRopeBelt
:
ActionContinuousBase
13
{
14
void
ActionDeCraftRopeBelt
()
15
{
16
m_CallbackClass =
ActionDeCraftRopeBeltCB
;
17
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_CRAFTING;
18
m_FullBody =
true
;
19
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_CROUCH |
DayZPlayerConstants
.STANCEMASK_ERECT;
20
m_SpecialtyWeight = UASoftSkillsWeight.ROUGH_HIGH;
21
22
m_Text =
"#STR_DeCraftRopeBelt"
;
23
}
24
25
override
void
CreateConditionComponents
()
26
{
27
m_ConditionItem =
new
CCINonRuined
();
28
m_ConditionTarget =
new
CCTNone
();
29
}
30
31
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item)
32
{
33
return
item.GetInventory().AttachmentCount() == 0;
34
}
35
36
override
bool
HasTarget
()
37
{
38
return
false
;
39
}
40
41
override
void
OnFinishProgressServer
(
ActionData
action_data)
42
{
43
EntityAI
ropebelt = action_data.m_MainItem;
44
EntityAI
rope = action_data.m_Player.SpawnEntityOnGroundRaycastDispersed(
"Rope"
);
45
action_data.m_MainItem.Delete();
46
47
MiscGameplayFunctions.TransferItemProperties(ropebelt, rope);
48
}
49
}
m_CommandUID
int m_CommandUID
Определения
ActionBase.c:31
m_StanceMask
int m_StanceMask
Определения
ActionBase.c:33
ActionData
ActionBase ActionData
Определения
ActionBase.c:30
ActionDeCraftRopeBelt
ActionDeCraftRopeBeltCB ActionContinuousBaseCB ActionDeCraftRopeBelt()
Определения
ActionDeCraftRopeBelt.c:14
ActionTarget
class ActionTargets ActionTarget
ActionBase::HasTarget
bool HasTarget()
Определения
ActionBase.c:244
ActionBase::CreateConditionComponents
void CreateConditionComponents()
Определения
ActionBase.c:230
ActionBaseCB::m_ActionData
ActionData m_ActionData
Определения
AnimatedActionBase.c:3
ActionContinuousBase::OnFinishProgressServer
void OnFinishProgressServer(ActionData action_data)
Определения
ActionContinuousBase.c:283
ActionContinuousBaseCB
Определения
ActionContinuousBase.c:2
ActionContinuousBase
Определения
ActionContinuousBase.c:121
ActionDeCraftRopeBeltCB::TIME_TO_CRAFT_CLOTHES
const float TIME_TO_CRAFT_CLOTHES
DEPRECATED.
Определения
ActionDeCraftRopeBelt.c:9
ActionDeCraftRopeBeltCB::CreateActionComponent
override void CreateActionComponent()
Определения
ActionDeCraftRopeBelt.c:3
ActionDeCraftRopeBeltCB
Определения
ActionDeCraftRopeBelt.c:2
AnimatedActionBase::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения
AnimatedActionBase.c:240
CAContinuousTime
Определения
CAContinuousTime.c:2
CCINonRuined
Определения
CCINonRuined.c:2
CCTNone
Определения
CCTNone.c:2
EntityAI
Определения
Building.c:6
ItemBase
Определения
InventoryItem.c:731
PlayerBase
Определения
PlayerBaseClient.c:2
UATimeSpent::DEFAULT_DECRAFT
const float DEFAULT_DECRAFT
Определения
ActionConstants.c:40
UATimeSpent
Определения
ActionConstants.c:28
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Определения
dayzplayer.c:602
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
ActionDeCraftRopeBelt.c
Создано системой
1.13.2