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

Go to the source code of this file.

Classes

class  ActionCraftArmbandCB
 

Functions

ActionCraftArmbandCB ActionContinuousBaseCB ActionCraftArmband ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
override string GetSoundCategory (ActionData action_data)
 

Function Documentation

◆ ActionCondition()

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

Definition at line 32 of file ActionCraftArmband.c.

33 {
34 return true;
35 }

◆ ActionCraftArmband()

Definition at line 1 of file ActionCraftArmband.c.

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 }
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 ItemBase::SetActions().

◆ CreateActionComponent()

override void ActionCraftArmband::CreateActionComponent ( )

Definition at line 12 of file ActionCraftArmband.c.

12 {
13 m_CallbackClass = ActionCraftArmbandCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;

References m_FullBody, m_SpecialtyWeight, m_StanceMask, m_Text, and UASoftSkillsWeight::PRECISE_LOW.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

Definition at line 21 of file ActionCraftArmband.c.

22 {
25 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ GetSoundCategory()

override string GetSoundCategory ( ActionData action_data)

Definition at line 45 of file ActionCraftArmband.c.

46 {
47 return "ImprovisedCloth_craft";
48 }

◆ HasTarget()

override bool HasTarget ( )

Definition at line 27 of file ActionCraftArmband.c.

28 {
29 return false;
30 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

Definition at line 37 of file ActionCraftArmband.c.

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 }