DayZ 1.24
Loading...
Searching...
No Matches
ActionDeCraftRopeBelt.c
Go to the documentation of this file.
2{
7
9 private const float TIME_TO_CRAFT_CLOTHES = 5.0;
10}
11
13{
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;
22 m_Text = "#STR_DeCraftRopeBelt";
23 }
24
26 {
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
42 {
43 EntityAI ropebelt = action_data.m_MainItem;
44
45 EntityAI rope = action_data.m_Player.SpawnEntityOnGroundPos("Rope", action_data.m_Player.GetPosition());
46 action_data.m_MainItem.Delete();
47
48 MiscGameplayFunctions.TransferItemProperties(ropebelt, rope);
49 }
50}
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
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
ActionDeCraftRopeBeltCB ActionContinuousBaseCB ActionDeCraftRopeBelt()
ActionData m_ActionData
void OnFinishProgressServer(ActionData action_data)
ref CABase m_ActionComponent
Definition ActionBase.c:30
const float TIME_TO_CRAFT_CLOTHES
DEPRECATED.
override void CreateActionComponent()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float DEFAULT_DECRAFT
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597