Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actioncraftarmband.c
Go to the documentation of this file.
1
class
ActionCraftArmbandCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent()
4
{
5
m_ActionData.m_ActionComponent =
new
CAContinuousTime
(
UATimeSpent
.BANDAGE);
6
}
7
}
8
9
class
ActionCraftArmband
:
ActionContinuousBase
10
{
11
void
ActionCraftArmband
()
12
{
13
m_CallbackClass =
ActionCraftArmbandCB
;
14
m_CommandUID =
DayZPlayerConstants
.CMD_ACTIONFB_CRAFTING;
15
m_FullBody
=
true
;
16
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_CROUCH;
17
m_SpecialtyWeight
=
UASoftSkillsWeight
.PRECISE_LOW;
18
m_Text
=
"#STR_craftarmband0"
;
19
}
20
21
override
void
CreateConditionComponents
()
22
{
23
m_ConditionItem
=
new
CCINonRuined
();
24
m_ConditionTarget
=
new
CCTSelf
();
25
}
26
27
override
bool
HasTarget
()
28
{
29
return
false
;
30
}
31
32
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item)
33
{
34
return
true
;
35
}
36
37
override
void
OnFinishProgressServer
(
ActionData
action_data)
38
{
39
EntityAI
armband = action_data.m_Player.SpawnEntityOnGroundPos(
"Armband_White"
, action_data.m_Player.GetPosition());
40
action_data.m_MainItem.AddQuantity(-1);
41
42
MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem, armband);
43
}
44
45
override
string
GetSoundCategory
(
ActionData
action_data)
46
{
47
return
"ImprovisedCloth_craft"
;
48
}
49
}
ItemBase
Definition:
inventoryitem.c:730
CAContinuousTime
Definition:
cacontinuoustime.c:1
HasTarget
override bool HasTarget()
Definition:
actioncraftarmband.c:27
UASoftSkillsWeight
Definition:
actionconstants.c:118
m_FullBody
protected bool m_FullBody
Definition:
actionbase.c:52
PlayerBase
Definition:
playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition:
actionbase.c:20
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition:
dayzplayer.c:601
CCTSelf
Definition:
cctself.c:1
ActionCraftArmband
ActionCraftArmbandCB ActionContinuousBaseCB ActionCraftArmband()
Definition:
actioncraftarmband.c:11
OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Definition:
actioncraftarmband.c:37
UATimeSpent
Definition:
actionconstants.c:26
ActionContinuousBaseCB
Definition:
actioncontinuousbase.c:1
m_Text
protected string m_Text
Definition:
actionbase.c:49
GetSoundCategory
override string GetSoundCategory(ActionData action_data)
Definition:
actioncraftarmband.c:45
m_ConditionItem
ref CCIBase m_ConditionItem
Definition:
actionbase.c:55
CreateConditionComponents
override void CreateConditionComponents()
Definition:
actioncraftarmband.c:21
ActionContinuousBase
Definition:
actioncontinuousbase.c:132
ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition:
actioncraftarmband.c:32
CCINonRuined
Definition:
ccinonruined.c:1
ActionCraftArmbandCB
Definition:
actioncraftarmband.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition:
actionbase.c:56
m_SpecialtyWeight
protected float m_SpecialtyWeight
Definition:
actionbase.c:68
m_StanceMask
protected int m_StanceMask
Definition:
actionbase.c:53
EntityAI
Definition:
building.c:5
DAYZ
scripts_v1.24.157551
scripts
world
classes
useractionscomponent
actions
continuous
actioncraftarmband.c
Generated by
1.8.17