Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actioncraftropebelt.c
Go to the documentation of this file.
1
class
ActionCraftRopeBeltCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.m_ActionComponent =
new
CAContinuousTime
(3);
6
}
7
};
8
9
class
ActionCraftRopeBelt
:
ActionContinuousBase
10
{
11
void
ActionCraftRopeBelt
()
12
{
13
m_CallbackClass
=
ActionCraftRopeBeltCB
;
14
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_CRAFTING;
15
m_FullBody
=
true
;
16
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_CROUCH;
17
m_SpecialtyWeight
= UASoftSkillsWeight.ROUGH_HIGH;
18
m_Text
=
"#STR_CraftRopeBelt"
;
19
}
20
21
override
void
CreateConditionComponents
()
22
{
23
m_ConditionItem
=
new
CCINonRuined
;
24
m_ConditionTarget
=
new
CCTNone
;
25
}
26
27
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
28
{
29
return
true
;
30
}
31
32
override
bool
HasTarget
()
33
{
34
return
false
;
35
}
36
37
override
void
OnFinishProgressServer
(
ActionData
action_data )
38
{
39
EntityAI
item_ingredient = action_data.m_MainItem;
40
EntityAI
belt = action_data.m_Player.SpawnEntityOnGroundRaycastDispersed(
"RopeBelt"
);
41
action_data.m_MainItem.Delete();
42
43
MiscGameplayFunctions.TransferItemProperties(item_ingredient, belt);
44
45
}
46
};
ActionData
ActionBase ActionData
Definition
actionbase.c:30
ActionTarget
class ActionTargets ActionTarget
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
animatedactionbase.c:3
ActionBase::m_FullBody
bool m_FullBody
Definition
actionbase.c:67
ActionBase::m_Text
string m_Text
Definition
actionbase.c:64
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Definition
actionbase.c:70
ActionBase::m_SpecialtyWeight
float m_SpecialtyWeight
Definition
actionbase.c:83
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
actionbase.c:71
ActionBase::m_StanceMask
int m_StanceMask
Definition
actionbase.c:68
ActionContinuousBaseCB
Definition
actioncontinuousbase.c:2
ActionContinuousBase::ActionContinuousBase
void ActionContinuousBase()
Definition
actioncontinuousbase.c:124
ActionCraftRopeBeltCB
Definition
actioncraftropebelt.c:2
ActionCraftRopeBeltCB::CreateActionComponent
override void CreateActionComponent()
Definition
actioncraftropebelt.c:3
ActionCraftRopeBelt::OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Definition
actioncraftropebelt.c:37
ActionCraftRopeBelt::CreateConditionComponents
override void CreateConditionComponents()
Definition
actioncraftropebelt.c:21
ActionCraftRopeBelt::ActionCraftRopeBelt
void ActionCraftRopeBelt()
Definition
actioncraftropebelt.c:11
ActionCraftRopeBelt::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actioncraftropebelt.c:27
ActionCraftRopeBelt::HasTarget
override bool HasTarget()
Definition
actioncraftropebelt.c:32
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
animatedactionbase.c:143
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
animatedactionbase.c:145
CAContinuousTime
Definition
cacontinuoustime.c:2
CCINonRuined
Definition
ccinonruined.c:2
CCTNone
Definition
cctnone.c:2
EntityAI
Definition
inventoryitem.c:2
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
continuous
actioncraftropebelt.c
Generated by
1.17.0