DayZ 1.24
Loading...
Searching...
No Matches
ActionDeCraftRopeBelt.c File Reference

Go to the source code of this file.

Classes

class  ActionDeCraftRopeBeltCB
 

Functions

ActionDeCraftRopeBeltCB ActionContinuousBaseCB ActionDeCraftRopeBelt ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override bool HasTarget ()
 
override void OnFinishProgressServer (ActionData action_data)
 

Variables

const float TIME_TO_CRAFT_CLOTHES = 5.0
 DEPRECATED.
 

Function Documentation

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )

Definition at line 31 of file ActionDeCraftRopeBelt.c.

32 {
33 return item.GetInventory().AttachmentCount() == 0;
34 }

◆ ActionDeCraftRopeBelt()

Definition at line 1 of file ActionDeCraftRopeBelt.c.

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;
21
22 m_Text = "#STR_DeCraftRopeBelt";
23 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
float m_SpecialtyWeight
Definition ActionBase.c:68
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

Referenced by ActionConstructor::RegisterActions(), and RopeBelt::SetActions().

◆ CreateActionComponent()

override void ActionDeCraftRopeBelt::CreateActionComponent ( )

Definition at line 15 of file ActionDeCraftRopeBelt.c.

15 {
16 m_CallbackClass = ActionDeCraftRopeBeltCB;
17 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
18 m_FullBody = true;

References m_FullBody, m_SpecialtyWeight, m_StanceMask, and UASoftSkillsWeight::ROUGH_HIGH.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

Definition at line 25 of file ActionDeCraftRopeBelt.c.

26 {
29 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasTarget()

override bool HasTarget ( )

Definition at line 36 of file ActionDeCraftRopeBelt.c.

37 {
38 return false;
39 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

Definition at line 41 of file ActionDeCraftRopeBelt.c.

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 }

Variable Documentation

◆ TIME_TO_CRAFT_CLOTHES

const float TIME_TO_CRAFT_CLOTHES = 5.0
private

DEPRECATED.

Definition at line 21 of file ActionDeCraftRopeBelt.c.