DayZ 1.24
Loading...
Searching...
No Matches
ActionCraftArmband.c
Go to the documentation of this file.
2{
7}
8
10{
12 {
13 m_CallbackClass = ActionCraftArmbandCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_Text = "#STR_craftarmband0";
19 }
20
22 {
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
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
46 {
47 return "ImprovisedCloth_craft";
48 }
49}
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
void CreateConditionComponents()
Definition ActionBase.c:196
bool HasTarget()
Definition ActionBase.c:210
string GetSoundCategory(ActionData action_data)
Definition ActionBase.c:914
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
ActionCraftArmbandCB ActionContinuousBaseCB ActionCraftArmband()
ActionData m_ActionData
void OnFinishProgressServer(ActionData action_data)
override void CreateActionComponent()
ref CABase m_ActionComponent
Definition ActionBase.c:30
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float BANDAGE
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597